LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

crystal reports

HI,

 

I'm using labVIEW 2011 to build a database management software,

I'm using SAP crystal reports 2008 version 12.3 to design my reports,

I'm trying to run these report from labVIEW GUI

I did these steps 

 

1- inserted active x container

2- Selected active x object (Crystal ActiveX Report Viewer Control 12.0)

3- Created a property (Report Source)

4- Conncted the crystal report file 

 

Crystal reports vi.png

 

error.png

thank you in advance 🙂

0 Kudos
Message 1 of 34
(4,772 Views)

You don't show where the error indicator is connected.

 

You don't really say what your problems is, but I guess you are getting the error shown in the picture and you don't like that. 😄

0 Kudos
Message 2 of 34
(4,761 Views)

Hi sir,

thanks for your reply

 

the error indicator is connected after the view report method node

 

My problem is that the VI does not work as I expect

I expect that the crystal report file is opened and viewed in the active x container, but this doesn't happen 😞

 

 

0 Kudos
Message 3 of 34
(4,741 Views)

Error 91:

 

LabVIEW:  The data type of the variant is not compatible with the data type wired to the type input.

 

Try converting the path to a string ( using the path to string function from the File I/O -> Advanced File Function palette) before wiring it to the Report Source input

 

Ben64

0 Kudos
Message 4 of 34
(4,729 Views)

The same error !!!

0 Kudos
Message 5 of 34
(4,703 Views)

You have tried to make the whole sequence of connection?

report.Load (Server.MapPath ("SampleRpt.rpt"));
report.SetDatabaseLogon ("username", "pwd" @ "server", "database");
rptviewer.ReportSource = report;

I need also generate reports in Crystal from Labview and I will start using the Viewer.

if you link part of the code you are using, maybe I can help you solve the problem.

0 Kudos
Message 6 of 34
(4,459 Views)

first you should open the application reference and then call OpenReport.

try if this works

bye

0 Kudos
Message 7 of 34
(4,445 Views)

Thanks Marco_Ge,

Can you link this simple vi please?.

0 Kudos
Message 8 of 34
(4,439 Views)

This should work with LV_2014, I used it with CRXI RDC installed.

Once you visualize the report, you can also act over ist parameters, select zoom, print out, modify and save by using proper methods.

Let me know if it is working..

 

0 Kudos
Message 9 of 34
(4,437 Views)

Thank you very much Marco _GE.
I'll try it with the same environment as you indicate and I will show you the feedback.

Bye

0 Kudos
Message 10 of 34
(4,434 Views)