rskuya
asked on
Method 'PrintReport' of object 'ICrystalReportViewer10' Failed
Has anyone encountered this error while using the Craxdrt library to print crystal reports from VB?
Method 'PrintReport' of object 'ICrystalReportViewer10' Failed
My Code for printing the report appears below:
Dim prReport As CRAXDRT.report
'...Crystal report opening, login, and parameter code appears prior to the print routine...
prReport.SelectPrinter DefaultPrinter, DefaultPrintDrv, Trim(DefaultPrintPort)
prReport.PaperOrientation = crPortrait
prReport.PrintOut False
Method 'PrintReport' of object 'ICrystalReportViewer10' Failed
My Code for printing the report appears below:
Dim prReport As CRAXDRT.report
'...Crystal report opening, login, and parameter code appears prior to the print routine...
prReport.SelectPrinter DefaultPrinter, DefaultPrintDrv, Trim(DefaultPrintPort)
prReport.PaperOrientation = crPortrait
prReport.PrintOut False
Was the report built with the NO PRINTER option selected?
mlmcc
mlmcc
Delete/No refund
mlmcc
mlmcc
ASKER
Hello,
I was under the impression that email notifications are sent with each updated "expert comment". The first email we received was on March 12th after the question had been closed. As it turns out, the problem was that a form object containg a Crystal Viewer was being instantiated, and then not used, and reinstantiated in a loop. The code was changed so that a new form object was only instantiated if it was going to be used.
I was under the impression that email notifications are sent with each updated "expert comment". The first email we received was on March 12th after the question had been closed. As it turns out, the problem was that a form object containg a Crystal Viewer was being instantiated, and then not used, and reinstantiated in a loop. The code was changed so that a new form object was only instantiated if it was going to be used.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What is the rest of the code you are using?
mlmcc