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!

How to set amount of pages when printing (from[] - to[])

Status
Not open for further replies.

Haishen

Programmer
Dec 2, 2002
4
SE
Hi!

I have a somewhat irritating problem. I´ve implemented Printable on a class that i wish to print, it can print the amount of pages that is interresting by render the graphics with an offset depending on pageIndex in the print() function (in other words I dont implement Pageable).

But how do I set the print range in in the "Print" window that is being shown when you call the myPrinterJob.print();
???

(below is a ;) pic of what I mean)
______________________________________
print X
______________________________________

printer [ (ex Canon BJC) ]

[] print to file

Pages to print:

x All
x pages [1] - [HERE!!!]

[CANCEL] [OK]
______________________________________

Anyone. plz? // Haishen
 
Hi Haishen:

I recommend you to research about the printDialog method of PrintJob class. See also the pageDialog method.

Hope it helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top