Hi all,
In a query I generate a pdf with PDFInclude and at the end it prints the file (stored in cFilename) with ShellExecuteA.
Before that the user has the possibility to choose the a printer to print to.
SYSTEM-DIALOG PRINTER-SETUP UPDATE OKpressed.
IF OKpressed THEN
strPrinter = SESSION
RINTER-NAME.
RUN ShellExecuteA (0,"print":u,cFileName,"","",1,output tInt).
Obviously Acrobat Reader prints the pdf file to the default windows printer.
So...
- Is there any way to insert the value of strPrinter in the parameters of ShellExecuteA ?
or
- Is there any way to temporary set the windows default printer to the value of strPrinter and at the end put it back to the original setting?
In a query I generate a pdf with PDFInclude and at the end it prints the file (stored in cFilename) with ShellExecuteA.
Before that the user has the possibility to choose the a printer to print to.
SYSTEM-DIALOG PRINTER-SETUP UPDATE OKpressed.
IF OKpressed THEN
strPrinter = SESSION

RUN ShellExecuteA (0,"print":u,cFileName,"","",1,output tInt).
Obviously Acrobat Reader prints the pdf file to the default windows printer.
So...
- Is there any way to insert the value of strPrinter in the parameters of ShellExecuteA ?
or
- Is there any way to temporary set the windows default printer to the value of strPrinter and at the end put it back to the original setting?