I personnally use 2 methods:
1- If the document is created from PVX, instead of creating a PDF, I write to the printer channel via "*WINPRT*"
2- If the printer is already built and just want to print it, I use a little program installed on the client machine or on the server (in your case your are printing from the server directly) called PDFtoPrinter and would call it from command line:
invoke hide "[lcl]c:\pathtoprogram\PDFtoPrinter.exe "+quo+FileName$+quo+" "+quo+PrinterInfo$+quo
Obviously, for either methods I need a database to keep the printers configuration for each workstations. For example, you could need to print to printer1 for invoices, but print to printer2 for purchase orders.
1- If the document is created from PVX, instead of creating a PDF, I write to the printer channel via "*WINPRT*"
2- If the printer is already built and just want to print it, I use a little program installed on the client machine or on the server (in your case your are printing from the server directly) called PDFtoPrinter and would call it from command line:
invoke hide "[lcl]c:\pathtoprogram\PDFtoPrinter.exe "+quo+FileName$+quo+" "+quo+PrinterInfo$+quo
Obviously, for either methods I need a database to keep the printers configuration for each workstations. For example, you could need to print to printer1 for invoices, but print to printer2 for purchase orders.