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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only