Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: fgl_report_setSVGPrinterName set the Printername from a windows print server  (Read 12891 times)
ORGA-SOFT B.
Posts: 34


« on: May 18, 2017, 10:58:25 am »

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.
Four Js
Posts: 148


« Reply #1 on: May 18, 2017, 11:34:08 am »

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.
Posts: 34


« Reply #2 on: May 18, 2017, 01:22:53 pm »

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.



* FourJs_Drucker.JPG (99.43 KB, 1099x724 - viewed 1856 times.)
Alex G.
Four Js
Posts: 148


« Reply #3 on: May 18, 2017, 01:30:02 pm »

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.
Posts: 34


« Reply #4 on: May 18, 2017, 02:40:20 pm »

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.
Four Js
Posts: 148


« Reply #5 on: May 18, 2017, 02:48:00 pm »

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.
Posts: 34


« Reply #6 on: May 18, 2017, 03:05:31 pm »

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.
Four Js
Posts: 148


« Reply #7 on: May 18, 2017, 04:06:35 pm »

Hi Martin,
Thanks for the feedback!

Glad I could help.
Regards,
Alex
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines