Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PDF Printing
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01292505
Message ID:
01292641
Views:
23
Since you aren't generating them, just want to print them, can't you just do a SHELL EXECUTE (via the Windows API) to call the printing of the file, but you'll probably have to lookup another API for actually changing the active printer for the output command... You can get a list of installed printers from VFP via APrinters(), then loop through...

for X = 1 to length of the printers list
Windows API Call to set to the given printer

Call ShellExecute API to print the document
end loop of printers

Not having done this myself, its the direction I would go to...

>Hi,
>
>i have a problem with printing pdf's.
>I do not create the pdf's but I want to print them on severeal printers automatically.
>
>I tried to use the adobe.ocx but this ocx prints always on the default printer. Ifound no way to change the printer.
>
>The workaround is to change the dafult printer by program before printing. But this is not really what I want.
>
>I also tried frx2any nut it seems to have the same problems. It seems to use the adobe control.
>
>Is there any idea how to print a pdf to several printers and set the printer programmatically ?
>
>Thanks in advance
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform