Using crystal reports in wonderware

theluckygal

Member
Join Date
Jan 2015
Location
morrisville
Posts
2
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.
 

Similar Topics

Hi I'm very new to PLC programming and I'm trying to find out if this library (Tc2_NcFifoAxes) is necessary for our task In our case we need to...
Replies
0
Views
38
I have a project to automate four generator sets. The system will monitor and store the load demand of the factory. Once there's Power outage, the...
Replies
0
Views
79
Adding ethernet equipment to an existing panel that has none. We have some solid ethernet cables coming from other remote cabinets that I plan to...
Replies
3
Views
134
I'm trying to control a device via MODBUS RTU and the ModbusRtuMasterV2_PcCOM in Twincat 3. I've configured a device with the right com port and...
Replies
7
Views
251
Hi, I'm trying to use the IO Device Library (Product Versions) which is configured to work with the 1756-EN4TR & 1756-EN2TR but my system uses...
Replies
0
Views
79
Back
Top Bottom