I searched a lot, and tried so many examples from the internet, but I haven't found a suitable example. My problem is, I am having a jscrollpane
, it contains JEditorPane
, and the content of JEditorPane
is dynamic, when I prints jscrollpane
, it prints first page only, but it has 5 to 6 pages. So please help me how can I print all pages from jscrollpane
. Please help me
Asked
Active
Viewed 115 times
-2
Pramod Yadav
- 225
- 2
- 20
-
2By "print" do you mean printing to paper? If so, you *don't* print the JScrollPane but rather you print the JEditorPane. Or perhaps better -- use a Java library for printing out data such as JasperReports. – Hovercraft Full Of Eels Sep 22 '15 at 11:28
-
i also tried on jeditorpane, but its also printing only first page – Pramod Yadav Sep 22 '15 at 11:34
1 Answers
0
@Hovercraft Full Of Eels comment. Here I found an article to Printing/Previewing of the JEditorPane
content. May be use full.
SatyaTNV
- 4,053
- 3
- 13
- 30
-
1Whilst this may theoretically answer the question, [it would be preferable](//meta.stackoverflow.com/q/8259) to include the essential parts of the answer here, and provide the link for reference. – Jacob Raihle Sep 22 '15 at 11:51