LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

word 97 and LabVIEW 7

In my LabVIEW 7 application I want to generate a report with Word (Office 97). I have installed the Report Generation Toolkit for Office 1.1.
I build a very simple application, but the first VI (New Report.vi) fails. I ghave looked inside and saw, that the function "Automation Open" fails , to open the reference "Word._Application". Is it possible, that the reason is a localized version of Word (german) ?
0 Kudos
Message 1 of 6
(3,053 Views)
Hello,

There are several software packages that appear to install files that conflict with Office 97. Among these are Visio, Reflection, and Adobe Acrobat Reader. First, I would try simply uninstalling/reinstalling Office 97 to see if that fixes the problem. If not, you could try uninstalling any of the programs I mentioned above that may be on your system, then uninstalling Office 97, then re-installing Office 97 to see if that fixes the problem. You could also try installing a later version of Office (if you have one available)...from what I understand, this problem does not occur with Office 2000 and later.

Let me know if any of these suggestions help.

-D
Message 2 of 6
(3,053 Views)
Hello Darren,

unfortunatley no of you suggestions help. I have uninstalled Office 97 and Acrobat Reader and re-installed Office 97, but the problem is still there. If I open a reference to the word application, by using the "Automation Open" function, the winword process starts, but the word application doesn't appear, even if I set the "visible" property to TRUE. In general, it is not possible, to call any method or to set any property, because the "Automation Open" returns with an error (-2147312566 Error loading type library/DLL) and a NULL reference. I tried the same with Teststand and received an error too. I tried it with CVI and the example doesn't work, but after creating a new instrument driver for word 8, I could open a reference to word and co
uld open the application.

Regards
Dirk
0 Kudos
Message 3 of 6
(3,053 Views)
Hi Dirk,

Judging from that error message, and the fact that you're having problems in other environments besides LabVIEW, it seems that the type library (or some dependency of the type library) for interfacing with Word is corrupted, and for some reason, an uninstall/reinstall is not fixing the problem. Are you sure that you don't have either of the other software packages I mentioned (Reflection or Visio) installed? Have you tried to see if the Excel VIs work properly? My only other suggestions (neither of which are ideal) are to either re-format and re-install the OS and start from scratch, or upgrade to Office 2000 or later.

Good luck,
-D
0 Kudos
Message 4 of 6
(3,053 Views)
Hello Darren,

no I have none of that applications, like Visio or Reflection installed. The Excel-VIs are working. I'm working on this problem, because a customer of mine has this problem. I can reproduce it on my PC. So I think, it is not a special problem of my installation of the installation of my customer. Unfortunately, my customer don't wants to update to a newer version of office.

Thanks for your suggestions,
Dirk
0 Kudos
Message 5 of 6
(3,053 Views)
Hi Dirk,

I have one more suggestion. Open the New Report.vi and Ctrl-Shift-Click the run arrow of the VI. This will force a re-compile of the VI...after the re-compile, check and see if the run arrow is broken. If it is, that means that something is wrong with one of the ActiveX class links in the VI. Whether or not the run arrow becomes broken, you can also try this. Right-click on the Word._Application reference terminal on the block diagram and choose Select ActiveX Class > Browse. Then, in the "Select Object from Type Library" dialog, click the "Type Library" ring and scroll down until you see a "Microsoft Word" entry. Do you only see one Microsoft Word in the list? If there are more than one, then there are confli
cting type libraries on the computer (resulting from multiple Office installations at one time). If there is only one Microsoft Word entry, it should probably be version 8...I think that's the version number associated with Word 97 (you should check the Help > About dialog in Word to make sure). Select that entry in the list, and pick the "Application" entry in the resulting listbox below. After you click OK, try the New Report.vi again and see if it works.

This is the extent of the suggestions I can give. I certainly hope you are able to solve the problem.

Good luck,
-D
0 Kudos
Message 6 of 6
(3,053 Views)