Crystal Reports XI in VB6 run-time error 91

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jan 2009
Posts: 1
Reputation: vb6sux is an unknown quantity at this point 
Solved Threads: 0
vb6sux vb6sux is offline Offline
Newbie Poster

Crystal Reports XI in VB6 run-time error 91

 
0
  #1
Jan 19th, 2009
I have the code
  1. Dim cApp As CRAXDDRT.Application
  2. Public cReport As CRAXDDRT.Report
  3. Public CurrentTemplate As String
  4. Dim ErrorMsg As String
  5. 'Dim ReportLayOut() As RptLayOut
  6. Dim ErrorNo As Long
  7. Dim ErrorModule As String
  8.  
  9.  
  10. Private Sub Form_Load()
  11.  
  12. On Error GoTo PrintReportErr
  13.  
  14. With frmFolderDisplay
  15. .txtPath = GetSingleLUMSTREntry("OMU", "CRIT MATL
  16. REPORTS", "PATH", "")
  17. .SetFilePath
  18. .Show vbModal
  19. End With
  20.  
  21. Set cReport = cApp.OpenReport(CurrentTemplate)
When I get to the set cReport line, I get teh run-time error 91, object variable or With block variable not set.

Any ideas? This is driving me batty.
Last edited by Narue; Jan 19th, 2009 at 3:24 pm. Reason: added code tags
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC