theluckygal
Member
Hi, I downloaded the latest crystal reports & added a crystal reports object (Crystal ActiveX Report Viewer Control 14.0) on one of my wonderware windows (version 11.0) to view on my screen. I defined a memory message tag called 'report' & using this code:
report = "C:\Reports\report1.rpt";
#CRViewer1.ReportSource = report;
#CRViewer1.ViewReport;
But I get this error when I run the window:
Error processing CRViewer1.ReportSource' on setting string property (execute). Type mismatch on parameter 1. (DISP_E_TYPEMISMATCH)
I tried defining the 'report' tag like the following but I cannot validate the wonderware script:
Dim report As New CrystalReport1
The help online is mostly for visual basic & that code doesn't validate in wonderware.
report = "C:\Reports\report1.rpt";
#CRViewer1.ReportSource = report;
#CRViewer1.ViewReport;
But I get this error when I run the window:
Error processing CRViewer1.ReportSource' on setting string property (execute). Type mismatch on parameter 1. (DISP_E_TYPEMISMATCH)
I tried defining the 'report' tag like the following but I cannot validate the wonderware script:
Dim report As New CrystalReport1
The help online is mostly for visual basic & that code doesn't validate in wonderware.