LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

problems with ActiveX/word interface

I wrote a program using the cvi activeX/word sample fp modules WordReprt and Word2000. Basicly I save a CVI panel with graphs on it to a BMP file, then I open word and insert the BMP file and then tell word to print. In CVI 5.5 this worked fine but in CVI 6.0 this no longer works. I get a blank page printed. As it turns out there is an "exception" error being generated. I traced this to one of the functions I call in WordReport.fp - WordRpt_InsertImage(). This calls Word2000.fp->WordInlineShapesAddPicture() which calls CA_MethodInvokeEx(). I assume this last function is a windows functions and it is the one actually generating the error which gets propgated back. Recopiling my exact code on a machine with V5.5 gets things working again.
Does anyone have any experience or comments on this ??
0 Kudos
Message 1 of 2
(3,133 Views)
I ran the small attached test program in both CVI 5.5 and CVI 6.0 and it worked fine in both cases.

The machine I used for testing had both CVI 5.5 and CVI 6.0 installed as well Word 2000 SR1.

I ran the test program with UIR files created in both CVI 5.5 and CVI 6.0 with no problems.

You might want to try the attached project and see whether it works for you or still has problems. If you can provide additional information I can look into the problem further.

-Jeff
NI
0 Kudos
Message 2 of 2
(3,133 Views)