Report displays correctly in report designer, but displays no data when presented through the web viewer - crystal-reports

My report is written in Crystal Reports for VS 2010 using c#.net. Its using the CR web viewer.
It displays everything correctly in VS and whilst testing it on IIS7 (locally) using the web viewer.
When I print or export the report (from the web viewer) all the 'fixed' fields (labels, text fields, images etc.) are printed but all the 'data' fields are not printed, just blank.
Have I missed a setting somewhere that allows the data in the report to persist?

Sounds like you might need to select Save Data with Report, which is on the File menu in Report Designer.

Looks like the reportdocument wasn't being saved to the session and restored correctly on a postback event. Modified a few bits and pieces and now its working like a charm.

Related

Printing the contents of a Form

I have a form with some comboboxes, a datagrid and an image. My ultimate goal here is: When the user clicks the save button on a menustrip, it will send this data to a printer (preferably to a PDF one) and print the file ready to be mailed to our clients. I tried the code provided by:
http://msdn.microsoft.com/en-us/library/aa287529%28VS.71%29.aspx
But it sent me to OneNote which then showed me an empty file. I also tried Printform and PrintDialog which didn't bring me much luck either. Any suggestions?
edit: I configured it to print to pdf although it now prints only half the form (cuts it in half of width), and if the datagrid is Scrollable it only prints the data that is showing on the screen. Like this:
You cannot print scrolled data using graphics object. even you cannot create your own design using graphics object. Also, you will get some problem in creating PDF and managing multiple pages. So, don't make it more complicated just use reporting library. You have two choices to print form data into pdf file.
Microsoft Reporinting
Crystal Report
But, I would like to prefer to use Crystal Report to Print any document. It is more flexible than Microsoft Reporting. You can export that document into PDF, WORD, EXCEL or Direct to Printer.

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

SSRS Footer not exporting to excel [duplicate]

I am using SQL Server Reporting Services 2008 for reporting. When we export the report to Excel, the footer image or textbox is not exported. Header image is getting exported successfully.
Does anybody know a solution for this?
Jon is correct they are exported but on opening the file you wont automatically see them as they are not displayed in "Normal" view, in 2007 switch to "Page Layout" view. not sure what its called in other versions of excel.
Note: You also might want to read this as it relates to the use of Headers/Footers in RDLC and exporting them to Excel.
Footers in Reporting Services are exported in Excel.
To see them, you need to click View -> Headers and Footers (in Excel)

Export button in Crystal Report - no action happens when clicked

I have a web application that uses Crystal Reports 12 to view reports. Reports view successfully, but when I try to export the report to any format (PDF, Excel, etc.), the export button does nothing.
When I copy the report url and enter it in the browser I get a JavaScript error object expected in allinone.js.
Although you did not provide any code, Crystal reports has gotten issues in exporting reports. So I personally recommend getting the latest version.

Crystal reports - PUSH blob data, image doesn't display

I've a crystal report that I'm trying to get a dynamic image displayed. This is the CRBasic 2008 version that comes with VS 2008, so i can't use the method where we link out to the file, it has to come from the data source.
I'm pushing a strongly typed dataset to the report, which contains a byte[] field. This dataset is being populated correctly and the BLOB data in the DB is actually an image (verified it by getting it to display in a picture box in a windows form).
I've a BLOBField dragged onto my crystal design surface, but when I view the report, nothing gets displayed. Anybody have any idea why this might be happening?
Seems to have been a mismatch between the built dataset and what crystal was expecting. Surprised there was no error, but there you go..