Hi all
I am in desperate situation now.
I just took over a
VB application maintanace and am in a loss now.
As i have not touch
VB for 4 years and first time seeing crystal report. I am having a rather tough time.
The report printing has encountered error.. the lines of code are as follows:
If pDBConnect Then cryReport.Connect = strCnn
If strSqlQuery <> "" Then cryReport.SQLQuery = strSqlQuery
If pDiscardSaveData Then
cryReport.DiscardSavedData = True
Else
cryReport.DiscardSavedData = False
End If
cryReport.Destination = crptToWindow
cryReport.WindowState = crptMaximized
If strFilter <> "" Then cryReport.SelectionFormula = strFilter
intError = cryReport.PrintReport (<== error occur!)
for your information, strCnn is a string formulated earlier when the application starts, the contents are
strCnn = "dsn=easdev;uid=easadmin;pwd=ava2002;dsq=easde v;"
as far as i am concerned, the details are correct.
Will be be any incompatibilty issue if the applications runs in WinXP, or win98?
I am using
VB 6, crystal report is 8.5
any help is greatly appreciated!