07-20-2006 10:28 AM
08-02-2006 08:24 AM
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
08-02-2006 10:37 AM
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
08-02-2006 12:27 PM
Darren,
Thanks a lot,
It was very helpful.
Boris
08-04-2006 03:37 PM
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
08-08-2006 10:34 AM
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
08-08-2006 01:38 PM
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
08-08-2006 02:19 PM
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
08-08-2006 02:28 PM
Hi Darren,
Can we talk by phone tomorrow. I have to live now.
If yes, I give you my phone number, OK.
Boris
08-08-2006 03:06 PM
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