LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

word document

Make sure you have that same file and folder on your other machine. 
Brian
0 Kudos
Message 11 of 20
(1,890 Views)

Hello guys,

My machine runs windows xp and microsoft office 2003. I build stay alone application one part of it is create a word document. When I install that application to another PC with same windows and office it works. When I install it to PC with windows and office 2000 it stops working - the word document did not create and did not saved. Why?????????

Thanks for help,

Boris 

0 Kudos
Message 12 of 20
(1,867 Views)

Unfortunately, the ActiveX interface between different Office versions is not compatible.  Thus, an executable built with Office 2003 VIs will not work on Office 2000.  The easiest way to fix this is to get the Office 2000 compatibility VIs out of the "Compatibility" folder on your Report Generation Toolkit CD.  Then, when you build your EXE, include the Word Dynamic VIs.vi and Excel Dynamic VIs.vi from the Office 2000 versions of the _wordsub.llb and _excelsub.llb instead of the Office 2003 version of those LLBs.  This should give you an EXE that will work on a machine that has Office 2000.

We are looking into ways to address this issue more elegantly in a future version of the Report Generation Toolkit.

-D

0 Kudos
Message 13 of 20
(1,859 Views)

Darren,

Thanks a lot,

It was very helpful.

Boris

0 Kudos
Message 14 of 20
(1,847 Views)

Hi Darren,

I tried, It did not work. First it say I need to resave, because I'm using the LabView 8 and Word dynamic VI for office 2000 create for labview 7. After that it worked on my machine. But when I installed to another PC with office 2000 - no result. It did not do anything.

Maybe you now some different tricks?

Thanks a lot,

Boris

 

0 Kudos
Message 15 of 20
(1,830 Views)

You may want to add some error handling to your application so that when it runs on the other computer you can see exactly what error occurred.  I can't think of any other reason why this wouldn't work.  The only other thing I can think to try is to actually replace the four Office version-specific files in vi.lib\addons\_office (they are word.llb, excel.llb, _wordsub.llb, and _exclsub.llb) with the Office 2000 versions from the CD (make sure to back-up the ones that are already there, of course).  Then build your EXE (making sure to add _Excel Dynamic VIs.vi and _Word Dynamic VIs.vi to your build) and see if that works.

Other than this, I can't think of any other reasons why you might be having this problem.  I hope one of these suggestions helps.

-D

0 Kudos
Message 16 of 20
(1,813 Views)

I deleted everything from folder _office from vi.lib\addons\_office and copied to that folder from CD office2000. Get Word Dynamic.vi and tried to build application. I get error. WordPrint.vi could not run. It had bad terminals. I could not fix that. So, I replaced that vi from office 2003. I add error handel so I can see the Error. This what I get:

Everithing I tried - failed.

What else can I do?

Thanks a lot,

Boris

 

0 Kudos
Message 17 of 20
(1,799 Views)

Boris,

Are you saying that the executable built for Office 2000 won't work on your computer with Office 2003?  That's expected behavior.  We would expect the ActiveX methods to be incompatible, resulting in broken VIs.  I would think that you should be able to build an executable for Office 2000 on your development machine, and take that executable over to the Office 2000 machine and it would work fine. 

Also, there is no error screenshot in your previous post, so I can't help to decipher the error until you get a screenshot or the full, complete text of the error message.

-D

0 Kudos
Message 18 of 20
(1,794 Views)

Hi Darren,

Can we talk by phone tomorrow. I have to live now.

If yes, I give you my phone number, OK.

Boris

0 Kudos
Message 19 of 20
(1,792 Views)

I won't be available by phone, so we can either continue troubleshooting on this thread, or you can contact NI support for further assistance.

-D

0 Kudos
Message 20 of 20
(1,789 Views)