LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Report Generation and ActiveX control of MSWord 97

I had posted this problem sometime ago with no response, but I had a chance to look at it again. I wanted to try some examples using MS Word instead of MS Excel. Well I would always get the attached error. It looks like LabVIEW cannot find MS Word. I found out why, I just need to know how to fix it..
 
I found that the Word._Application (Automation_Refnum) is more then likely using the Microsoft Word 8.0 Object Library Version 8.0 that is installed with Labview. the Problem is I have Word 97 which I believe is version 5.0. Now for Excel both the Microsoft Excel 5.0 Object Library Version 1.0 and Microsoft Excel 8.0 Object Library Version 1.2 appear in the Select Object from Type Library Drop down. It there a Word Object Library missing?
 
I have LabVIEW running on a WinXP Pro machine with MS Office 97 SR2 installed.. I really wish my company would upgrade to MS Office XP or 2003 but I don't see that happening.
is there anyway to get LV8 to recognize Word 97? I have reinstalled Office and the Toolkit a couple times with no luck. I also had the same problem with LV 7.1.1
 
Any thoughts or suggestions?
 
 
EDIT: Forgot the attachment the first time

Message Edited by jdebuhr on 03-16-2006 08:40 AM

Jeff D.

Certified Architect LabVIEW Champion DQMH Framework

0 Kudos
Message 1 of 5
(3,111 Views)
Hi Jeff,

The issue you are seeing is usually caused by Office not being installed properly. It would be good if you could do a repair on your Word install, make sure all office applications are closed, and turn off all Anti-virus software and registry protectors (i.e Ad-Aware and Spybot).

Go to add/remove programs and find the office install and choose repair, choose to repair word and letthat run, once that is done restart the computer.

Open LabVIEW and place down an ActiveX reference and then right-click the refnum to select the ActiveX class. Scroll through the list to find the Word entry that you need.

If this does not work, you will need to look at the msdn website www.msdn.com to see if this is a known issue with Word 97, and if MS have a way of registering the server. Or find how to register an ActiveX server and then register your Word install to the COM and DCOM in WIndows , as this is where LabVIEW picks up the Servers it has access to.

Regards
JamesC
NIUK and Ireland
0 Kudos
Message 2 of 5
(3,101 Views)

I have never been able to get Word 97 to work with LabVIEW under Windows XP.  I'm guessing there's some ActiveX problem that Microsoft probably has no intention of fixing since Word 97 is nine years old.  This is the main reason we removed Office 97 support from version 1.1.1 of the Report Generation Toolkit.

-D

0 Kudos
Message 3 of 5
(3,095 Views)


@Darren wrote:

I have never been able to get Word 97 to work with LabVIEW under Windows XP.  I'm guessing there's some ActiveX problem that Microsoft probably has no intention of fixing since Word 97 is nine years old.  This is the main reason we removed Office 97 support from version 1.1.1 of the Report Generation Toolkit.

-D




Hmm, I am not going to try very hard then.. I did notice that it will show up in the Task manager under processes.. Also being that I have Report gen Toolkit 1.1.1 on my Dev machine with Office 97 Excel still works. As long as Excel Works i am fine. I need to see if they will be upgrading to a newer version of Office here..
 
Jeff D.

Certified Architect LabVIEW Champion DQMH Framework

0 Kudos
Message 4 of 5
(3,092 Views)

Yes, we still included the Office 97 support VIs in RGT 1.1.1, even though we don't technically support them anymore.  Just so you know, I don't think we'll be including the Office 97 VIs in the next version of RGT.  From my testing of RGT 1.1.1, I never saw any problems using Excel 97 with LabVIEW and RGT 1.1.1.  Word 97 was the only offender, and to my recollection, it only had problems on Windows XP.

-D

Message Edited by Darren on 03-16-2006 10:22 AM

Message 5 of 5
(3,089 Views)