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

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
6
Views
130
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
48
Hello, As part of our project, we are using an M241 controller. This controller interfaces with an industrial computer and a router via a switch...
Replies
2
Views
89
I'm trying to write a data in Arduino using MODWR function block .I used the code I got from online for both PLC and Arduino. I made the wiring...
Replies
4
Views
90
Hey all, i have a panelview screen (image attached), with 4 items on it. Program 1, Program 2, ...3, ...4. The PLC i am using is a compactlogix...
Replies
5
Views
166
Back
Top Bottom