S
sachavdk
Hi,
I'm making a small class that creates a word document based on the
parameters, and when the PrintDoc sub is called, it should print the document.
When I save the document as a .doc file and open it in Word, it looks good.
But when I call the printout sub, it asks where to save the file (using pdf
printer and office image writer), he calls the save dialog box, and when I
press save, the file is compiled under the respective fileformat, but when I
look in the folder, the file doesn't exist. Though a shortcut to it is made
in the Recent Opened folder.
Also sending the doc to the printer works fine, but it doesn't print.
Should I do anything else except calling PrintOut() ?
Dim doc As Word.Document = Me.MyDoc ' also a word.document instance
doc.PrintOut();
Thanks
I'm making a small class that creates a word document based on the
parameters, and when the PrintDoc sub is called, it should print the document.
When I save the document as a .doc file and open it in Word, it looks good.
But when I call the printout sub, it asks where to save the file (using pdf
printer and office image writer), he calls the save dialog box, and when I
press save, the file is compiled under the respective fileformat, but when I
look in the folder, the file doesn't exist. Though a shortcut to it is made
in the Recent Opened folder.
Also sending the doc to the printer works fine, but it doesn't print.
Should I do anything else except calling PrintOut() ?
Dim doc As Word.Document = Me.MyDoc ' also a word.document instance
doc.PrintOut();
Thanks