jasperreport print problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • solanki
    New Member
    • Jul 2008
    • 1

    #1

    jasperreport print problem

    > 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(reportfra me)
    >
    > {
    >
    > reportframe.foc us();
    >
    > reportframe.pri nt();
    >
    > }
    >
    > And hear is the Jsp code used to render the html report generated by
    > jasper inside an iframe
    >
    > <TR>
    >
    > <td>
    >
    > <div><iframe id = "reportfram e"
    >
    > 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**
  • Curtis Rutland
    Recognized Expert Specialist
    • Apr 2008
    • 3264

    #2
    I don't have your answer, but I feel compelled to ask: Why did you start every line with a > symbol?

    Comment

    • Dököll
      Recognized Expert Top Contributor
      • Nov 2006
      • 2379

      #3
      Originally posted by insertAlias
      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...

      Comment

      • Dököll
        Recognized Expert Top Contributor
        • Nov 2006
        • 2379

        #4
        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!

        Comment

        • Dököll
          Recognized Expert Top Contributor
          • Nov 2006
          • 2379

          #5
          Originally posted by Dököll
          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!

          Comment

          Working...