Printing word document

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
 
D

Doug Robbins - Word MVP

Dim doc as Document
Set doc = ActiveDocument
doc.PrintOut

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top