fgl_report_setSVGPrinterName set the Printername from a windows print server

Started by ORGA-SOFT B., May 18, 2017, 10:58:25 AM

Previous topic - Next topic

ORGA-SOFT B.

Hello,

we try to print on a windows client to a mapped networkprinter.
so if we set fgl_report_setSVGPrinterName("\\printserver\printer") in the code the print job is not send to the printer.
When we send the Job to a lokal installed printer (not mapped over a printserver) this works perfectly.

Please tell us how we can use the mapped printers from our Printserver.

Thank you

Alex G.

Hi,
in this API call you can't use UNC paths. As stated in the documentation, you have to use the printer names as they are returned by the command line utility $GDCDIR/bin/printerinfo.
This command lists all local printers. If you want to print to a remote printer then install it first locally thereby referring to the UNC network path. Then printing to such a "local" printer will result in printing to the remote printer.
Have you considered using server side silent printing for this case (fgl_report_selectDevice("Printer"))? This can simplify things since the remote printers are defined only once on the server and it works also for other display clients (not only GDC).
Regards,
Alex

ORGA-SOFT B.

Hello Alex,

okay our printers are installed as local network printers. They are distributed by the active directory group policies. So the windowsname is the unc-path by default.
I started the printerinfo and the names of the printer are "\\printserver\Printer"

you see in my attached picture the Printer is displayed as "Printer08 an PrintServer" and the internalname is "\\Printserver\Printer08"

We thought about this option. But in a special environment we have to use the local printers there is no possibilty to do it with serverside printing.


Alex G.

Hi,
if printerinfo lists it as an UNC path, then is should work or otherwise it is a bug.
Be sure to escape the backslashes. In your program you should then have "CALL fgl_report_setSVGPrinterName("\\\\????\\\PRINTER08").
Regards,
Alex

ORGA-SOFT B.

Hello Alex,

this is my code ...
CALL fgl_report_setSVGPrinterName("\\\\Printserver\\\printer08")
CALL fgl_report_configureSVGPreview("PrintOnNamedPrinter")

But no luck.
so if i didn't make a mistake it seems to be a bug....

Best regards
Martin

Alex G.

Hi,

>this is my code ...
>CALL fgl_report_setSVGPrinterName("\\\\Printserver\\\printer08")

I think it contains an extra backslash. It should read:
CALL fgl_report_setSVGPrinterName("\\\\Printserver\\printer08")
Regards,
Alex

ORGA-SOFT B.

Hello Alex,

you made my day!

with "\\\\Servername\\Printername" the printing works.

also very important the names are case sensitiv.

Thank you sooooo much
Greetings Martin

Alex G.

Hi Martin,
Thanks for the feedback!

Glad I could help.
Regards,
Alex