So, I am trying to export a crystal report in pdf without opening the report in the runtime viewer of my web application using
ExportToHttpResponse
method. Everything seems to work correctly when it comes to loading parameters, getting the file / path to load the report. But when I execute the part that is supposed to create a popup dialog box that gives the user the ability to save, run, cancel for any type of download, nothing happens. An error does not occur. it does not step over to any part of the code that I know of. It seems to run the ExportToHttpResponse line and then do nothing with it.
So, I was hoping that someone could give me some direction in what I might do wrong with the code found below:
protected void ExportRptButton_Click( object sender, EventArgs e ) { if ( null != SelectedReport ) { rptParams.Clear(); rptParams = null;
Some notes : the LoadParametersFields / LoadStaticTextFields methods shown above seem to be correct, and when they are used to open a report in crviewer, the report appears and works. Although, if you want to see these methods, I will drop them upon request.
RptParams is initially a declared user of List<ReportParameter>()
The ConfigureCrystalReports method is used to get and load the path to the report file.
Any help or suggestions are welcome. Thanks.
source share