Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print Setup Dialog box - does not show option to select a certain page

Status
Not open for further replies.

kaul125

Programmer
Jan 29, 2002
87
US
I'm using the PrintSetup() function in PB6.5. However, when the dialog box appears and I select my printer and go to options, it does not allow to choose tha page I want to print. For example, in Excel, the 'Print' dialog box allows for the 'Print Range' (page(s) from:.... to:....).

This option does not appear when I use the PrintSetup() in PB. Is there an external function call I can make to get this option? What is the declaration for it?

Thanks,

Keith

 
You might want to have a look at the

1. the PowerPrinter utily at sourceforge
2. Powerwhizz printing utily for PB apps, check them out at

HTH


----
Teach what you know , learn what you don't ...
 
or better yet code a response window of your own....

string ls_pages
dw_1.Object.DataWindow.Print.Page.Range = ls_pages



Example data: ls_pages='1-4'
ls_pages='2,3,4'
ls_pages='1-5,7,10'


so throw some controls on and go wild. =)
 
Hi,

Display of this value on the Print dialog depends on your printer and its driver. However, you can implement your own printer driver using PowerScript. You can use a SingleLineEdit control on the window to specify your own page-range values that are to be printed. When the user enters the range values in the sle, assign the values to the dw as:

dw.Object.DataWindow.Print.Page.Range = sle.Text


Regards,


Scott
----------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top