I am using VB6, Access 7 and CR8. My program used to work...until yesterday.
The end user tried to run this program...and it gave them an "automation error". When I walk it through step by step...I get a MS Visual Basic window with:
"Run-time error '-2147417848 (80010108)' -- Method 'PrintReport' of object 'CrystalCtrl' failed"
When I debug, it points to the "CrystalReport1.PrintReport" statement in my coding. Here's the code...
Private Sub cmdPrint_Click()
Label3.Caption = "Printing Reports..."
FileLoc = "S:\Users\Mis\Vtd8\IPLabels\"
SetAttr (FileLoc + "ManualIP.rpt", vbNormal
CrystalReport1.DataFiles(0) = (FileLoc + "Lbls.mdb"
CrystalReport1.PrintReport
Label3.Caption = "Printed Labels."
End Sub
The report and files are located in the same folder. Again, this was working without errors for a few weeks... then this started. Any clues?
Thanks in advance.
The end user tried to run this program...and it gave them an "automation error". When I walk it through step by step...I get a MS Visual Basic window with:
"Run-time error '-2147417848 (80010108)' -- Method 'PrintReport' of object 'CrystalCtrl' failed"
When I debug, it points to the "CrystalReport1.PrintReport" statement in my coding. Here's the code...
Private Sub cmdPrint_Click()
Label3.Caption = "Printing Reports..."
FileLoc = "S:\Users\Mis\Vtd8\IPLabels\"
SetAttr (FileLoc + "ManualIP.rpt", vbNormal
CrystalReport1.DataFiles(0) = (FileLoc + "Lbls.mdb"
CrystalReport1.PrintReport
Label3.Caption = "Printed Labels."
End Sub
The report and files are located in the same folder. Again, this was working without errors for a few weeks... then this started. Any clues?
Thanks in advance.