473,396 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Jasper Report,need help!!!

58
Hi all,
I am working jasper reports,i have got partial result for the code below.

jasperReport = JasperCompileManager.compileReport(
"c:\\Jreport.jrxml");
jasperPrint = JasperFillManager.fillReport(
jasperReport, new HashMap(), new JREmptyDataSource());
JasperExportManager.exportReportToPdfFile(jasperPr int, "sample.pdf");
// JasperViewer.viewReport(jasperPrint);

My Doubts are

* Where should i locate the jrxml file in a web application???
*I am getting
"java.lang.NoClassDefFoundError: com/lowagie/text/pdf/FontMapper" for
JasperExportManager.exportReportToPdfFile(jasperPr int, "sample.pdf");
But i can able to generate html,xml and view report successfuly.

Kindly let me know what should i add further to my code???


regards,
sundar.
Sep 25 '07 #1
1 7317
gsuns82
58
Hi all,
I am working jasper reports,i have got partial result for the code below.

jasperReport = JasperCompileManager.compileReport(
"c:\\Jreport.jrxml");
jasperPrint = JasperFillManager.fillReport(
jasperReport, new HashMap(), new JREmptyDataSource());
JasperExportManager.exportReportToPdfFile(jasperPr int, "sample.pdf");
// JasperViewer.viewReport(jasperPrint);

My Doubts are

* Where should i locate the jrxml file in a web application???
*I am getting
"java.lang.NoClassDefFoundError: com/lowagie/text/pdf/FontMapper" for
JasperExportManager.exportReportToPdfFile(jasperPr int, "sample.pdf");
But i can able to generate html,xml and view report successfuly.

Kindly let me know what should i add further to my code???


regards,
sundar.
hi guys,
i got the result as follows:

JasperCompileManager.compileReportToFile("reports/DataBaseReport.jrxml", "reports/DataBaseReport.jasper");

File reportFile = new File("reports/DataBaseReport.jasper");

JasperRunManager.runReportToPdfFile(reportFile.get Path(), new HashMap(),
new JRResultSetDataSource(resultSet));

regards,
sundar
Sep 25 '07 #2

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

Similar topics

0
by: Learner | last post by:
Hi there, I am just trying to populate crystal report with customers data from Northwind database. The below is the code. It doesn't return any error and i can see the report in the front but...
0
by: Crash | last post by:
Hello everyone, I need help creating an asp page to view a crystal report, which requires that that I change the database connection dynamically. I thought I had this problem licked in CR7 (the...
3
by: Amy Smith | last post by:
Hello there, I am having a small problem which been challenging me for few days and need help or advice. I am trying to calculate the day-shift for employees based on the time they started and...
4
by: richierich | last post by:
First what I need help with is in a report that I have that I have hauled multiple truck loads with a particular truck on a particular day and I want on the report to show me on the footer of the...
2
by: kenmasters675 | last post by:
I need help with the following code. I am trying to extract two reports at the same time, but I want the viewer to see the report first before exporting it. The reason is in case the report is null....
7
by: rohitsripathi | last post by:
i need help writing this program... i am in college and i do not have time do this right now as i need to study for another test....but this is due tonight...i will pay $5 if you accept to do it and...
3
by: suryavanshi | last post by:
how i call the jasper report file from the jsp
0
by: techuse | last post by:
how to set no data when no data from db in jasper report? i got no data in report when even there is no data in db.but it displays with static fields.how to display with out static field?
0
by: mdsamiuddin | last post by:
hey am new to jasper report....will u guide me how to get started with it.....i have an application..it is an yearly based application..if i select any year the web page should display...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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...

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.