I have this code to view my report. Im concerned with the time it takes to load the report when i view it. I have more or less ten pages of report in short bond paper. Is there any solution or alternative to using crystal report?
VB Code:
Private Sub Form_Load() Call openConnection Me.Left = 2640 Me.Top = 325 sSQL = "SELECT Code, ProductDescription,Quantity,Reorder FROM Tblstocks" Set oRsStocks = New ADODB.Recordset Set oRsStocks = oConn.Execute(sSQL) Set oApp = New CRAXDRT.Application Set oReport = oApp.OpenReport(App.Path & "\Inventory.rpt", 1) oReport.Database.SetDataSource oRsStocks, 3, 1 CRViewer91.ReportSource = oReport oReport.DiscardSavedData 'to refresh the data CRViewer91.ViewReport End Sub




Reply With Quote