Quantcast
Channel: SCN : Discussion List - SAP PowerBuilder
Viewing all articles
Browse latest Browse all 286

PowerBuilder Network Printer

$
0
0

I need to print to a printer on the network. I added the printer (COWORKERDSKTP) to my printers on my PC - it is not set as the default.

I went to notepad and was able to print a sample to this printer.

Sample Code:

String ls_printer

ls_printer = 'HP LaserJet 1022 on COWORKERDSKTP'

ls_ret = dw_print.modify(datawindow.print.printername = "' + ls_printer +"'")

//ls_ret returns "" appears OK

ls_ret = dw_print.describe("datawindow.printer.printername")

//ls_ret returns "!"

If I add this here:

ls_ret = dw_print.Describe("Datawindow.Printer")

//ls_ret = EPSON WF-2650 - this is my locally connected default printer

dw_print() will print to the EPSON

 

I just can't seem to get the syntax to print to the network printer.


Viewing all articles
Browse latest Browse all 286

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>