By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,231 Members | 1,707 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,231 IT Pros & Developers. It's quick & easy.

jasperreport print problem

P: 1
> Hi Folks,
>
> I am finding a small trouble while printing the entire contents of an
> Iframe which carries an html report which is in turn generated by
> jasper reports.s
>
> Hear is the javascript code used to print the contents of the Iframe
>
> function Print(reportframe)
>
> {
>
> reportframe.focus();
>
> reportframe.print();
>
> }
>
> And hear is the Jsp code used to render the html report generated by
> jasper inside an iframe
>
> <TR>
>
> <td>
>
> <div><iframe id = "reportframe"
>
> src="<%=request.getContextPath() %> /report.html”
>
> WIDTH=1200
>
> HEIGHT=320>
>
> </iframe>
>
> </div>
>
> </TD>
>
> </TR>
>
> When I invoke the print option using javascript this is what I got
>
> Problem:
>
> The printed page carried only one half of the page contents compared
> to what was shown on the browser, but the actual content is more than
> a page.
>
> For example if the browser page was carrying10 columns on it, the
> printed page carried just 5 columns on the page.
>
> What’s expected?
>
> The first 5 columns must be printed on the 1^st page and the rest 5
> must be followed up on page 2.
>
> It would be more favorable if you could tell me how jasper reports are
> being printed on client server architecture is using a small example
> or code snippet.
>
> Thanks and Regards,
>
> **Ritesh Solanki**
Jul 7 '08 #1
Share this Question
Share on Google+
4 Replies


Curtis Rutland
Expert 2.5K+
P: 3,256
I don't have your answer, but I feel compelled to ask: Why did you start every line with a > symbol?
Jul 7 '08 #2

Dököll
Expert 100+
P: 2,364
I don't have your answer, but I feel compelled to ask: Why did you start every line with a > symbol?
The code was probably copied from a different system, perhaps html based...
Jul 12 '08 #3

Dököll
Expert 100+
P: 2,364
My colleague had the same issue quite recently actually, give me a moment to shoot him an email, I believe it is a bug, I will get the last word form him but when he searched to find out! he realized it is a bug, but he did get it working though...

In a bit, and do feel free to Google this, I am a parent, I am lose my head and forget:-)

In a bit!
Jul 12 '08 #4

Dököll
Expert 100+
P: 2,364
My colleague had the same issue quite recently actually, give me a moment to shoot him an email, I believe it is a bug, I will get the last word form him but when he searched to find out! he realized it is a bug, but he did get it working though...

In a bit, and do feel free to Google this, I am a parent, I am lose my head and forget:-)

In a bit!
Actually, I have to wait, until Monday, forgot what day it was.. See what'd I tell you, only took a minute:-)

Please Google this week-end, see fixes are there for this bug.

Have a great week-end!
Jul 12 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.