| | |
Crystal Reports XI in VB6 run-time error 91
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jan 2009
Posts: 1
Reputation:
Solved Threads: 0
I have the code
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.
vb Syntax (Toggle Plain Text)
Dim cApp As CRAXDDRT.Application Public cReport As CRAXDDRT.Report Public CurrentTemplate As String Dim ErrorMsg As String 'Dim ReportLayOut() As RptLayOut Dim ErrorNo As Long Dim ErrorModule As String Private Sub Form_Load() On Error GoTo PrintReportErr With frmFolderDisplay .txtPath = GetSingleLUMSTREntry("OMU", "CRIT MATL REPORTS", "PATH", "") .SetFilePath .Show vbModal End With Set cReport = cApp.OpenReport(CurrentTemplate)
Any ideas? This is driving me batty.
Last edited by Narue; Jan 19th, 2009 at 3:24 pm. Reason: added code tags
![]() |
Similar Threads
- How to launch a Crystal 11 report from VB6 (Visual Basic 4 / 5 / 6)
- problem connection vb6 & crystal report 11 (Visual Basic 4 / 5 / 6)
- VB6 application and Cryatal Reports Professional Addition 9 (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: generating sr no automatic on the crystal report
- Next Thread: VB6 Menu Bar - display in unicode?
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





