How to tell when a Crystal Report has loaded - c#

I am building a Winforms C# application that uses Crystal Reports.
I am loading a dummy report so that the Crystal Reports components are loaded when the user opens a Report. I do this because it takes a lot of time to load the report the first time.
I open a minimized, 0% opacity form containing the dummy report from a backgroundworker. I need to know when the report has loaded completely, so that I know when to close the form. I didn't manage to find an answer on-line, so my question is:
How can you tell programmatically when a Crystal Report has finished loading?

I think there's nothing official about this in crystal report, so I suggest to workaround using callbacks and YourDummyReport.IsLoaded property.
Hope it helps

Related

ASP.Net Webforms with ReportViewer

I am creating an ASP.Net Webform page to use the ReportViewer control so our users can view SSRS reports inside a web page.
I have created one report and it worked great. I am in the process of doing a second report, which is mostly just a copy / paste of the first report, but for some reason, I am unable to display the report in my page (see screen shot).
I do not get any error in the code, nor does the SSRS report seem to throw an error. It seems to load as I get the two scroll bars shown in the screen shot after I hit "view report" button, but for some reason, there is no report shown. The report works, as I tried it on the SSRS server itself and have no problems. Anyone know what I might be missing or causing this?

WPF Crystal Reports: Detect opening Subreport

I have a application with crystal reports wpf control. My application shows the current page number and the last page number of the report. This should also work for subreports.
Is there any event which tells me, when a subreport is opened?

Active Reports - How can I go to a specifc page in the Viewer?

I'm using Active Reports 6 and display the report in our application in the Viewer control (not printed). I need a way to determine the current page the user is showing, and I also need a way to restore the Viewer to a specific page. I need this because when data is added to the report, the Viewer automatically resets to page 1. I've searched high and low and cannot find a way to do either. Can this be done in Active Reports and if so can anyone tell me how to do it? Thanks!
You may make use of the 'CurrentPage' property of the ReportViewer that gets or sets the number of the current document page displayed in the viewer.
Regards,
Mohita

Can the .net reportviewer control be fully operated by code only (ie., minus the toolbar)

Just started on a touchscreen based project that uses the reportviewer control. I will obviously be putting my own big buttons for report navigation , export to pdf etc since even people with tiny fingers will have a hard time clicking the out of box toolbar that comes with this control (see below screenshot). Can I do all of this from code
1) Show next / prev/first /last page of report
2) Show print dialog/page setup dialog/print layout
3) Export to pdf
Thats all we need for now. I am going thru the msdn samples meanwhile. Not yet found any code to do all that the toolbar shown does. thank you
Yes, you can. Assuming your application is Windows app, refer to ShowXXXXX properties of ReportViewer.
http://msdn.microsoft.com/en-us/library/microsoft.reporting.winforms.reportviewer_properties%28v=VS.80%29.aspx
Exporting:
http://social.msdn.microsoft.com/Forums/en/vsreportcontrols/thread/7a2ffdd4-8e25-43f1-863d-505941968b77
Printing:
http://social.msdn.microsoft.com/forums/en-US/vsreportcontrols/thread/9f52d79d-5baf-4e84-97d5-7dbba6623b89
Update: As MS has deleted documentation of reportviewer (the first link above), following might be an alternative.
https://learn.microsoft.com/en-us/sql/reporting-services/application-integration/using-the-winforms-reportviewer-control?view=sql-server-2017

continous pages crystal report viewer

Can we have continuous viewing in Crystal Report Viewer, rather than clicking NextPage button ?
I am developing a win form application in C#.
No, not within the viewer control itself.
You can export to HTML as one, single page though. HTML can be a bit wacky on the formatting, but if you format you report very strictly in columns and stay with standard fonts, you get pretty good results.

Categories