cancel
Showing results for 
Search instead for 
Did you mean: 

Report Viewer doesn't Preview after Export

Former Member
0 Kudos

The Windows Application has a C# class for a Report Menu which calls any one of several reports. The Report Menu allows the selection of various parameters for the report being called and then calls a C# class that builds a sql query and sets it as the report data source and sets the report parameters then opens the report in Crystal report viewer.

The report displays in the viewer and I can click on the close button and the Report Menu in the App allows me to select a different report with different parameters, no problem.

However, when any report is previewed in the viewer, before clicking the close button, I can click on the Export button and successfully export the report in whatever format and get "Export Completed". Then click on the close button and I am back at the Report Menu in the App. Try to preview any report now and it will crash. The error messages vary somewhat depending on the report selected. I can set a break point at the beginning of the class (that builds the query and sets the data source) and hit that break before doing an Export - -

but after the export the break point is never hit. Its like the Report Menu class is somehow trying to display the report without calling the report building class!

VS 2005 and CR XI R2

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

OK. A good place to start is with the basics.

See the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]

Step 2 Asking Your Question; Provide Enough Information

So, please provide the necessary info as per the above.

Also:

" The error messages vary somewhat depending on the report selected. I can set a break point at the beginning of the class (that builds the query and sets the data source) and hit that break before doing an Export - -"

Please provide the most common error you get, else provide all of the errors.

Ludek

Answers (0)