This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Help with PrintPreview Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Help with PrintPreview " Watch "Help with PrintPreview " New topic
Author

Help with PrintPreview

L Sankaranarayanan
Greenhorn

Joined: Dec 13, 2012
Posts: 11
I have one printpreview program taken from net . It actually takes one printable object and shows the preview one or multiple pages. My printable class is nothing but displaying text in more than one pages. But preview shows empty pages .
PrintPreview Code goes here



My Printable class is given here It works fine with any printers. But preview is not possible in this case. Other page wise preview program shows the output. Why this printpreview does not show the preview?









Cany any one provide solution for this? I dont want Page wise printpreview but what i want is globlal preview ie all pages at one time

L.Sankaranarayanan. Srivilliputtur
L Sankaranarayanan
Greenhorn

Joined: Dec 13, 2012
Posts: 11

I have found it! there is color code missing in printable. is missing . When added, it works ! Thank you all guys!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help with PrintPreview
 
Similar Threads
Second Posting JComponent Paint
Second Posting JComponent print
Print Preview in Java swing
Printing and Preview of Nested JTable not working and performance is slow....
JComponent Print and Print Priview