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:00:34
 
 
À
07/01/2013 12:56:07
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:
01561606
Vues:
56
Sorry, use
lcOldPrinter = set('printer',3)
NB! Why don't you check Help? Most of us help you from memory, sometimes our answer isn't necessarily perfect.

>I was using this Code
>
>lcOldPrinter = set('printer')
>lcPrinter = getprinter()
>if !empty(lcPrinter)
> set printer to NAME (lcPrinter)
>Endif
>
>copy file (fullpath("E:\Bills\lap\1010461602.ps")) to printer
>
>
>set printer TO Name(lcOldPrinter)
>=messagebox(m.lcOldPrinter)
>
>=messagebox(m.lcOldPrinter) is Giving message as "OFF"
>
>
>>>Using your Earlier suggested code, i.e copy copy file (fullpath("E:\Bills\lap\1010461602.ps")) to printer, a file named printer is created in the working directory and no output is generated in printer.
>>>
>>>Second, set printer TO Name(lcOldPrinter) i.e Last Line is also giving the same spool Error
>>>
>>>Regards
>>>Harsh
>>>
>>>
>>What is lcOldPrinter ? Can you post
>>=messagebox(m.lcOldPrinter)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform