![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Mar 2005
Location: different places. constantly on the run.
Posts: 57
Rep Power: 4
![]() |
how do i get rid of that annoying 9999 pages that will be printed once i hit print? i also want to print 2 or so pages of stuff, but it's still putting everything on one page and then it doesn't fit. does it have something to do with PageFormat? i've taken a stroll through the web in search of a cure, but haven't found one (that i understand) yet.
anyone want to give me clues? i don't want the code, i just want to know what to use and so on. i want to sort of figure most of it out myself. thanks guys. ps : if you don't know what i'm nattering on about, then there is a screenshot attached where i circled the 9999 bit.
__________________
There's got to be more to life than being really, really ridiculously good looking |
|
|
|
|
|
#2 |
|
Professional Programmer
|
where are you hitting print from?
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Jun 2005
Posts: 28
Rep Power: 0
![]() |
Are you just trying to print like normal? Just change the (9999) to (2) or whatever you would like. If I completely missed what you're asking for, forgive me
![]() |
|
|
|
|
|
#4 |
|
Programmer
Join Date: Mar 2005
Location: different places. constantly on the run.
Posts: 57
Rep Power: 4
![]() |
i do the whole
if ( pj.printDialog() )// javax.print.attribute.standard.PageRanges( 1, pages )) )
{
pj.print();
}thing, but as soon as i have more than a page to print, then it doesn't want to do the next bit on the second page. i was told that users are losers and if there are 9999 pages selected, then odds are good that they will ignore it and then have a hernia when the printer prints a page and then spits out 9998 blank pages. if you can have 60 lines of data, and only 40 fit on a page, how will you change the 9999 to a 2 and also, how do you get those last 20 lines on the second page?
__________________
There's got to be more to life than being really, really ridiculously good looking |
|
|
|
|
|
#5 |
|
Newbie
Join Date: Jun 2005
Posts: 11
Rep Power: 0
![]() |
Ok, here are two resources I found on printing in Java.
The first is a multi-step tutorial on printing in Java. http://www.javaworld.com/javaworld/j...020-print.html The second is a page from Sun about advanced printing. It includes printing in multiple pages and if your data is larger than one page. http://java.sun.com/developer/online.../advprint.html I hope these are somewhat helpful to you. If I find more info, I'll let you know. |
|
|
|
|
|
#6 |
|
Programmer
Join Date: Mar 2005
Location: different places. constantly on the run.
Posts: 57
Rep Power: 4
![]() |
thanks dude. will check it out when i'm on lunch(assuming the customres let me have lunch). will let you know if i got it.
thanks again. ![]()
__________________
There's got to be more to life than being really, really ridiculously good looking |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|