How To Show Jasper Report in Web Page Without Embedding Java Applet Along With Exporting Options of Several File Formats [ pdf , xls etc ] - jasper-reports

I am developing an web application where i need to show a report to users. I am using jasper report for reporting. Now what i want to do is to show the jasper report in my web page along with option to export report in pdf/excel file format according to user preference. I don't want to embed java applet on my web page to show report. I have searched over internet and found sample of showing report in browser pdf reader. It solves my purpose of showing report in web page without using applet but by this i can only export report in pdf format. But i need to give user option of exporting in excel format too. So my question is what way i can achieve my goal as i mentioned above?

Finally i found solution of my question. First, I exported jasper report in a html file & then showed the html file in my web page within a iframe which meet my purpose of showing report within web page. And exporting report is done by several exporter class like JRXlsExporter, JRPdfExporter etc. of jasper report.

Related

On demand sub reports in crystal reports

I have a report where I am using an on-demand sub-report. But my user is viewing this report from a java application. So whenever he run the report he will view this report in PDF.
Report format:
country name location sales
<on-demand subreport>
Now once he run the report he will get all the above fields data in PDF format.
So now if clicked on location field data in PDF will he get the sub-report's data.
PDF isn't intended to generate dynamic content. As such, you'll need to find an approach that will render the desire content in a static manner.
I would suggest that you parameterize your report to display one of these options:
main only
main + subreport
The PDF will either contain the main report's content or the main and subreport's content.
** edit **
If you are using BusinessObjects Enterprise (BOE), you could use the openDocument API to generate a new report instance or the most-recently-generated instance. I don't know if Crystal Reports Server supports this feature for certain.
If you are rendering reports in a Java application, then you will need to a way to intercept the hyperlinks--a server, most likely. By in large, you'd be reinventing Crystal Reports Server/BOE.
Basically I understand as you need two thing.
you need to generate a report and export/generate in pdf.
in you need to attach link or something like editable field pdf.
For First answer, you can easily hide/show of sub-report in crystal report side. but not after report generate in pdf.
So for second answer, you need to pdf professional or editable allow version. after you get that you simply use itextsharp.dll (to generate pdf from asp.net-see below link).
So finally I think, does not needed crystal report.
please check this link.
How to create an editable pdf in asp.net?
Pdf's fields should remain editable using itextsharp in asp.net
Creating a fillable PDF form with ITextSharp

what are different preview report using excel preview and excel preview(using J ExcelApi) in iReports 2.0.2?

i'm still new in Jasper reports.i still confuse what the different preview report using excel preview and excel preview(using J ExcelApi) in iReports 2.0.2.Which is more common that people use?. is there any effect when we generate the report?. Can anybody tell me?
Jasperreports supports multiple export formats (xls, pdf, csv, etc...). After developing a report using iReport, you can generate a report in any of those export formats. The best way to view those reports is using an external appliction that you can map. For example, xls report is tied with Excel and pdf reports are tied with Adobe Reader. The new version of iReport supports generation of these reports using the application itself (preview). However, what happens in the background is the same whether you view it with external viewer or internaly using iReport "preview". Personaly, I prefer to use external viewer. The exported reports are cached in the compilation directory.

Report generation in web applications

As part of my web application, i am using iReport tool to generate reports and its working fine but my doubt is, is it possible to generate xls type report in browser like pdf (we can show the pdf file in the browser)? Means I need to show reports in xls file or word document in the client machine, is it possible? Can anybody clear my doubt?
Although it is a bit late, I'll try to give a generic answer
you can fetch your data to your local Jasper Reports server via JSON.
There is a sample of JsonDataSource in the 4.5.0 version of jasperreports at *\demo\samples\jsondatasource
to run report and receive output pdf, etc. you can use REST API for Jasper Server
then you send output to end user

smart way to design crystal report

I want to create a crystal report that will match a pdf file. The info in the pdf file is a combination of form fields and instructions layed out in a table format. The crystal report should exactly match the pdf file because I will export the report to pdf later.
is there a smart way of quickly designing the rpt file? like converting the pdf file to an rpt file?
You're better off just building the rpt file from the ground up -- there are no utilities I'm aware of that can covert the PDF to a RPT file.
I agree with LittleBobbyTables in that I don't know of a pdf to Crystal Reports converter so you'll have to build the report on your own from scratch, but you may look into other options instead of Crystal Reports if possible.
Of course it's hard for me to give a good solution since I don't know the drivers behind the decision to use Crystal Reports, but if you are looking to display the data in a web page, Adobe has a pdf to HTML converter here that you may be able to start off with. You put the url to the pdf form and it converts it to HTML or Text. I tried it and thought it did work, it wasn't really close in the look and feel of the original pdf form so you can use it to get you part of the way and then you can wire up the data portion to display your data. Just throwing out another option instead of wedding yourself to Crystal Reports. Hope it helps.

How to show SQL reports in a web application without Reportviewer control in asp.net

I want to know if there is any way to show reports without reportviewer control...
My reports are deployed on the report server. Now I want to show these reports in a web application. Please let me know if there's any other way to show reports. I do not want to use report viewer control.
using code all reports can be "exported" to all supported formats like pdf, wrod, excel etc. By export i mean as you show the reports in report viewer and click the export button on the viewer Then you can show the genereted with somekind of viewer for that format.
Best Regards,
Iordan
P.S. You will need to use the report Viewer to achive this but the use will be internal and the user won't see the report viewer as visualization control. There is no way to show report without the use of report viewer control