DocumentRun() and printing to a specific printer
DocumentRun() and printing to a specific printer
Using documentrun() I can succesfully print as I want (email, pdf, printer) until I try to specify which printer to print to.
DocumentRun("REP_ReminderPrintForms_PDF","Printer","") works fine, to the default printer
DocumentRun("REP_ReminderPrintForms_PDF","Printer","\\waprinters\receptioninvoices") still only prints to the default printer.
I have tried other printers, including a local printer, but it only prints to default.
Suggestions?
Re:DocumentRun() and printing to a specific printer
Yes, you are correct. We have forwarded the bug to the development team.
In the meantime you can use a workaround to set the default printer and re-set it after the print.
SetVar("DefaultPrinter",Getcurrent("@DefaultPrinter"))+SetCurrent("@DefaultPrinter",GetCurrent("@printer1"))+DocumentRun("SomeDataDQL","printer","")+SetCurrent("@DefaultPrinter",GetVar("DefaultPrinter"))
We appreciate that it is a little cumbersome but it will work at least.