Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing to PRN file from Word97
Message
From
19/10/2000 15:01:52
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00431408
Message ID:
00431714
Views:
10
No sweat. But I'm *still* looking for a way to go straight to PDF without the PRN via setting the port to a PDF file like you can do manually.

>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 :-)
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform