A
Ahmad
hi!
I have problem while Opening and closing another Word Application when
there is already a Word Application Running. I have created a toolbar
using VBA to do some stuf. Toobar has a button named "Print to PS" to
convert the current document to PostScript. The steps i follow are as
under.
1. Open Word document Test.doc.
2. Edit it and save.
3. Click "Print to PS" button.
Now "Print to PS" does following things:
Create a Copy of Test.doc on some other location like "C:\Documents And
Settings\Administrator\LocalSettings\Temp\Temp.doc".
Create an other process in which it Initializes the Word application
using Word's Object Model. Open Temp.doc in Invisible Mode, and Print
Temp.doc to PostScript.
Close Document and then Quit the Word Application and return control.
That's the whole scenario. Now the Problem is that when "Print to PS"
try to close the Word after Printing.It gives a message box that "The
file is in use by another application or user C:\Documents and
Settings\...\Normal.dot". when i press Ok it shows a save as dialog box
to save Normal.dot. I don't want this to be shown to the user.
Any Suggestions.
Regards,
Ahmad Jalil Qarshi
I have problem while Opening and closing another Word Application when
there is already a Word Application Running. I have created a toolbar
using VBA to do some stuf. Toobar has a button named "Print to PS" to
convert the current document to PostScript. The steps i follow are as
under.
1. Open Word document Test.doc.
2. Edit it and save.
3. Click "Print to PS" button.
Now "Print to PS" does following things:
Create a Copy of Test.doc on some other location like "C:\Documents And
Settings\Administrator\LocalSettings\Temp\Temp.doc".
Create an other process in which it Initializes the Word application
using Word's Object Model. Open Temp.doc in Invisible Mode, and Print
Temp.doc to PostScript.
Close Document and then Quit the Word Application and return control.
That's the whole scenario. Now the Problem is that when "Print to PS"
try to close the Word after Printing.It gives a message box that "The
file is in use by another application or user C:\Documents and
Settings\...\Normal.dot". when i press Ok it shows a save as dialog box
to save Normal.dot. I don't want this to be shown to the user.
Any Suggestions.
Regards,
Ahmad Jalil Qarshi