Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing to PRN file from Word97
Message
 
À
19/10/2000 14:45:54
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00431408
Message ID:
00431710
Vues:
22
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 :-)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform