Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing to PRN file from Word97
Message
 
To
19/10/2000 14:45:54
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00431408
Message ID:
00431710
Views:
16
John,

I think I have found the answer:


I just found that there is an "OutputFileName" parameter that I can pass.

I recorded a macro, looked at it, found the parameter and then tested it. It worked!

******************
Macro Routine:
Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
Collate:=True, Background:=True, PrintToFile:=True, OutputFileName:="test.prn", _
Append:=False

******************

I hope this helps anyone else looking for this answer!

Thanks again John!

Dave :-)



>George Tasker and I are burning up the Private messages discussing this just >now :-).

>You'd think it'd be as simple as setting Word.ActivePrinter to "PrinterDriver >on C:\Program Files\Adobe\PDF output\*.PDF" which is what ActivePrinter >returns >after you have manually set it, but it's apparently not.

>Have you tried setting the PrintToFile parm to .T. in Word.Printout()?


>Thanks for the quick response. However, I think that I ommitted the fact that >I want to be able to send the print job to a specific filename without user >intervention. Is this possible?
>
>Dave :-)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform