Report Sharp-Shooter slow preview process


Author
Message
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi, I know this is a RSS issue, but since many SF developers use RSS I will throw it here anyway Hehe

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.DataSource

ReportManagerObject.DataSources.Item(reportApplianceDataSourceName) = Me.DataSource.SourceBO.SC_Appliances

'-- Prepare Report to run

ReportManagerObject.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 If

End 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

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Edhy Rijo - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Edhy Rijo - 16 Years Ago
Greg McGuffey - 16 Years Ago
Edhy Rijo - 16 Years Ago
                         [quote]Also, are you show a "generating report dialog" while RSS...
Edhy Rijo - 16 Years Ago
                             Well, this would be a pretty involved post. But in short, it is pretty...
Trent L. Taylor - 16 Years Ago
                                 Thanks Trent, I will keep digging in the issue. One more question if...
Edhy Rijo - 16 Years Ago
                                     You could just make the properties on the base BO overridable and then...
Trent L. Taylor - 16 Years Ago
                                         [quote][b]Trent L. Taylor (10/24/2008)[/b][hr]but I am not sure what...
Edhy Rijo - 16 Years Ago
                                             Once again, Trent, Greg thanks a lot. The slowness was caused by the...
Edhy Rijo - 16 Years Ago
                                                 Cool :cool:
Trent L. Taylor - 16 Years Ago
                                                     Nice!
Greg McGuffey - 16 Years Ago
                                                 [quote]I still need to figure out how to create my own class to...
Ivan George Borges - 16 Years Ago
                                                     Hi Ivan, Thanks for the link, I had downloaded this project sample...
Edhy Rijo - 16 Years Ago
                                                         Yeah, I saw the errors first time I run that sample, but as you said,...
Ivan George Borges - 16 Years Ago
                                                             Hi Ivan, Thanks a lot for taking the next step and provide the...
Edhy Rijo - 16 Years Ago
                                                                 Glad it helped, Edhy! :cool:
Ivan George Borges - 16 Years Ago
Larry Caylor - 15 Years Ago
Edhy Rijo - 15 Years Ago
Larry Caylor - 15 Years Ago
Larry Caylor - 15 Years Ago
Edhy Rijo - 15 Years Ago
Larry Caylor - 15 Years Ago
Edhy Rijo - 15 Years Ago
Larry Caylor - 15 Years Ago
Edhy Rijo - 15 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search