Skip to main content

[archive] printer1 -q sharename brings up page setup dialog

  • September 29, 2006
  • 2 replies
  • 0 views

[Migrated content. Thread originally posted on 27 September 2006]

Here's my scenario: label printing application running on 6.2. locally attached usb label printer. cblconfi has printer1 -q sharename;direct=on. works peachy. If the cblconfi has printer1 -q \\\\uncname\\sharename;direct=on then the page setup dialog box comes up every time. Pages setup also comes up if the printer I need to print to is on another PC and the cblconfi is set for that unc and sharename, which is the scenario I really need to operate under. I know that if I do a net use lpt1 \\\\unc\\share and set printer1=prn it will work but the lpt1 port is already is use by another printer/application.

Is there a way to print to a shared printer without bringing up the page setup dialog box?

Thanks,
-Tony

2 replies

[Migrated content. Thread originally posted on 27 September 2006]

Here's my scenario: label printing application running on 6.2. locally attached usb label printer. cblconfi has printer1 -q sharename;direct=on. works peachy. If the cblconfi has printer1 -q \\\\uncname\\sharename;direct=on then the page setup dialog box comes up every time. Pages setup also comes up if the printer I need to print to is on another PC and the cblconfi is set for that unc and sharename, which is the scenario I really need to operate under. I know that if I do a net use lpt1 \\\\unc\\share and set printer1=prn it will work but the lpt1 port is already is use by another printer/application.

Is there a way to print to a shared printer without bringing up the page setup dialog box?

Thanks,
-Tony
If you are getting the Printer Setup Dialogue window when using the -Q option it means that you have not used a valid printer name after the -Q flag.

You should be aware that it is NOT the \\\\UNC\\Printername that you use - it is the shared name that is in the Printers list.

The best way to find the name to use is to run the prndemox.cbl sample program that comes with the Development System. It shows the how the printer name should be specified for the -Q flag in the combo-box.

I have attached a JPEG that shows the execution of the prndemox program. You can see that if I want to use the -Q flag with the printer in the combo-box I would specify:

-Q \\\\zeus\\HP Laserjet 6P [ other options like DIRECT, etc.]

You can find the prndemox.cbl source in the directory C:\\Acucorp\\Acucblnnn\\AcuGT\\sample where nnn equals the version of Acu that you are using.

[Migrated content. Thread originally posted on 27 September 2006]

Here's my scenario: label printing application running on 6.2. locally attached usb label printer. cblconfi has printer1 -q sharename;direct=on. works peachy. If the cblconfi has printer1 -q \\\\uncname\\sharename;direct=on then the page setup dialog box comes up every time. Pages setup also comes up if the printer I need to print to is on another PC and the cblconfi is set for that unc and sharename, which is the scenario I really need to operate under. I know that if I do a net use lpt1 \\\\unc\\share and set printer1=prn it will work but the lpt1 port is already is use by another printer/application.

Is there a way to print to a shared printer without bringing up the page setup dialog box?

Thanks,
-Tony
Excellent. I'm headed out of town but will give that a try. Thanks much.