Link to home
Start Free TrialLog in
Avatar of rskuya
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

Avatar of Mike McCracken
Mike McCracken

Can you view reports from your application?

What is the rest of the code you are using?

mlmcc
Was the report built with the NO PRINTER option selected?

mlmcc
Delete/No refund

mlmcc
Avatar of rskuya

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.
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial