Hi, I know this is a RSS issue, but since many SF developers use RSS I will throw it here anyway
I have this report which is taking about 15-24 seconds to show in my custom preview form, the preview form will show up blank with the "No Report" label (see image RSS slow loading), then the report will be shown normally.
I know that the data is coming out in less than a second, and the preview form is shown without the report, I have not found a way to display a message to the user letting him/her know that the report is being process. The code to generate the report is splitted in two classes:
- ServiceCallRouteDataSource.vb will take care of getting the data and pass it to the report with the following code:
'-- Assign the populated datasource from the Dialog Browser to the Report Manager Object.ReportManagerObject.DataSources.Item(reportDataSourceName) =
Me.DataSourceReportManagerObject.DataSources.Item(reportApplianceDataSourceName) =
Me.DataSource.SourceBO.SC_Appliances'-- Prepare Report to runReportManagerObject.Reports(
Me.PerpetuumSoftReportName).Prepare()
- ReportEngine.vb will actually run the report in the custom preview form like this:
Public Shared Function RunReport(ByVal ReportName As FixTrackReports, _ByVal ReportManagerObject As PerpetuumSoft.Reporting.Components.ReportManager, _Optional ByVal tBDStringValue As String = "", _Optional ByVal tEmployeePK As Int64 = 0) As Boolean Dim reportDataSourceObject As IReportDataSource '-- Get the data source for the report reportDataSourceObject = GetReportDataSource(ReportName) '-- Populate the data source If reportDataSourceObject.PopulateDataSource(ReportManagerObject, tBDStringValue, tEmployeePK) Then Dim f As New ReportViewerDialog() '-- Set the Report Viewer source with the Report to be used. f.rptViewer.Source = ReportManagerObject.Reports(reportDataSourceObject.PerpetuumSoftReportName) f.Title = MicroFour.StrataFrame.Tools.Common.GetEnumDisplayValue(ReportName) f.TitleDetailText = "" f.ShowDialog() Return True Else MicroFour.StrataFrame.Messaging.MessageForm.ShowMessageByKey("NoDataForReport") Return False End IfEnd Function
I have other simple reports which generates faster, so I must be missing something in my whole process. I will appreciate if somebody can see what am I missing here?
Thanks.
Edhy Rijo