Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2007

Tip: Looking for answers? Try searching our database.

Printing word document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sachavdk - 06 Jan 2007 23:44 GMT
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
Doug Robbins - Word MVP - 07 Jan 2007 07:24 GMT
Dim doc as Document
Set doc = ActiveDocument
doc.PrintOut

Signature

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

> Hi,
>
[quoted text clipped - 20 lines]
>
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.