473,803 Members | 3,428 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

jasperreport print problem

1 New Member
> 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**
Jul 7 '08 #1
4 3184
Curtis Rutland
3,256 Recognized Expert Specialist
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
2,364 Recognized Expert Top Contributor
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
2,364 Recognized Expert Top Contributor
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
2,364 Recognized Expert Top Contributor
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

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

Similar topics

1
1486
by: nick | last post by:
I want to print something without a '\n' automatically added at the end, I know print 1, print 2, print 3, can partially solve the problem. But it added an space behind each variable. So the statements above will print out:
3
9462
by: Marcus Bjorke | last post by:
I use a print link that causes a problem with Opera 7. The link looks like this <a href="javascript:parent.frames.mainFrame.print()">Print this page</a> I also used <a href="javascript:print()">Print this page</a> and it also worked with most browsers. I realize that it only works if you have Microsoft Windows versions for PC but that is what most of out customers have anyway. I have also noticed that there is a problem
3
7023
by: Sonya | last post by:
Dear list; I am a css newbie, and hope you can help. I am trying to make my page print out horizontal when user hits a print button in my page. the print button invokes javascript print.window() function, equivalent to selecting "print" on the browser menu. From what I understand, I should be able to force horizontal printing, regardless of browser default. I tried with: <HEAD> <style type="text/css" media=print> {size: landscape}
2
2072
by: Balamurali C | last post by:
Hi All I'm having one problem, since im debuging this last one week I'm not able to do. Problem: In my webage I have two Frames(top & bottom) in the top frame I'm displaying some images(logo...etc) and bottom frame I'm displaying some document(excel,word,ppt,pdf etc...)which are working fine. when I take print, using IE-File-menu (IE->File->print) when excel document
4
3122
by: zz | last post by:
Sorry for posting this here but unfortunatly I couldn't find any appropriate newsgroup for this and since I've been active here with .net question I figured you guys might be able to help. This is a link to a very simple page that contains 2 DIV statements: http://xsinx.no-ip.com:8880/TestEmbedDiv.html One of them is embeded in the other. There is some clipping involved (the red layer is smaller than the yellow one). If you look at...
8
4073
by: makunag | last post by:
Didn't get answer with google and in my regular forum. Came across this site and posting here. Your help will be highly appreciated ! Our application have frames - MainNav, TaskNave and Content. When print button is clicked, it prints only the Content (obviously top.Content.focus() is in the code before window.print()). We were using windows 2000 & IE6 for years. Recently, our installation updated users machines with XP SP2. Now when print...
1
1416
by: jasone | last post by:
I have various print buttons that allow the database users to print reports, the database has been created so none of the normal access background is showing, just the form. currently when the user click the 'print' function it prints the report without showing the 'print proerties' dialog box. is there any thing i can do about this, so the 'print properties' box is shown? here is the sample of my print code:...
4
2460
by: foal11 | last post by:
Hi all, My problem is that I have generated a text file on unix which I want to print on a neoware(Neolinux) box. The problem is that the line length is 2 big so when I print it the text is wrapped around.In windows we have the option of reducing font and printing.Is there any such option available on Unix..? The files to be printed will be placed on a Neoware machine ( a thin linux client ) which does not support any Unix print...
3
1255
by: Hutch | last post by:
PythonWin has been a very good ide from early version thru 2.4. All work ok on THREE of my computers with THREE different HP printers. Now comes 2.5. Every thing seems to work the same except when I want to print out a copy of the source code of my project (about 38 pages) Version 2.5 acts like it is going to print out the source code but instead prints from several 100 to over 2000 BLANK PAGES pages and no source.
0
9700
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9564
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10310
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10292
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10068
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9121
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7603
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4275
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.