Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

POWERBUILDER PRINTING - Is it possible to print to another printer without changing the default printer in printer manager?

Posted on 2008-06-11
4
Medium Priority
?
2,475 Views
Last Modified: 2013-12-20
Is it possible to print to another printer without changing the default printer in printer manager? I am using Powerbuilder. or I need to call the PRINTER MANAGER? How do I achieve that? Below is the script I am using to print but it only prints into the default printer.

      tabpage.tabpage_frame.dw_poRRDTLt2.print()
      messagebox('Finished','Press any key to continue')

Thank you very much.


0
Comment
Question by:rommel_natividad
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 18

Accepted Solution

by:
diasroshan earned 1200 total points
ID: 21766567
Hi,

Look onto PB Help for PrintSetPrinter function and other related functions.

This example sets the printer to the first printer in the list retrieved by the PrintGetPrinters function:
long ll_place
string ls_setprn
string ls_prntrs = PrintGetPrinters ( )
ll_place=pos (ls_prntrs, "~n")
mle_1.text = PrintGetPrinters ( )
ls_setprn = Left (ls_prntrs, ll_place - 1)
PrintSetPrinter (ls_setprn)

Cheers,
Rosh
0
 

Assisted Solution

by:jane_harrison
jane_harrison earned 800 total points
ID: 21774793
Hi,

look up the print() method in PB help and you should see that there are 2 optional arguments to the print() method, one of which gives you the option to display the print dialog box.

integer dwcontrol.Print ( { boolean canceldialog {, showprintdialog } } )

The print dilog box gives you the option to change the printer you want to print to

hope that helps
Jane
0
 

Author Comment

by:rommel_natividad
ID: 21819148
Hi,

I am here at the Pacific Rim and sad to say I am still stucked with PB ver. 5.0 and 6.0, the methods are not available on the said version. Is there any other work around?

Thanks.

Rommel
0
 

Author Closing Comment

by:rommel_natividad
ID: 31466426
Thank you very much guys
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Printers have changed substantially in the last 30 or so years, not just in technical capabilities but in cost and usage as well.  Printers were originally used for interfacing with the operator, not necessarily for printing copy or pictures. In …
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question