Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Print PDF/PS File Directly from VFP to printer
Message
De
07/01/2013 13:12:47
 
 
À
07/01/2013 08:17:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01561574
Message ID:
01561609
Vues:
81
>>>>>You may have to send an email to Michel (mfournier@levelextreme.com) so that he changes your name, I am not quite sure about that. But please promise to do so, it feels so impersonal to talk to a "box".
>>>>>
>>>>>To print a PS, I am pretty sure that you can do it this way:
>>>>>lcOldPrinter = set('printer')
>>>>>lcPrinter = getprinter()
>>>>>if !empty(lcPrinter)
>>>>>   set printer to name lcPrinter
>>>>>Endif
>>>>>copy file (fullpath(yourfile.ps)) to printer
>>>>>set printer to name (lcOldPrinter)
>>>>>This code will printer to the default Windows printer. See here how you change this printer: http://www.berezniker.com/content/pages/visual-foxpro/changing-windows-default-printer. In your case you may have to save the current printer (Set('printer',1)) first, so that you can restore it afterwards.
>>>>
>>>>Don't think you can print a pdf file directly to a printer - needs to be passed thru a reader ?
>>>
>>>Please read my follow up message.
>>
>>And that works ?
>
>Yes, my code in message#1561584 works. It calls the default PDF reader, and and makes it print the file.

Ah. Sorry - just a drive-by thread read on my part. Didn't read that part of the post properly....
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform