10-01-2014 01:49 PM
Hi everyone,
So is there any way to view .docx files in the labview front panel? I tried embedding it in a browser but it just opens microsoft office word. Any thoughts or suggestions are appreciated.
10-01-2014 02:50 PM
Hey jachy25,
If you just want to use the docx file to read only, I'd suggest checking out one of these resources:
http://forums.ni.com/t5/LabVIEW/How-to-View-Word-2013-Document-in-ActiveX-Object/td-p/2880682
http://zone.ni.com/reference/en-XX/help/371361L-01/lvconcepts/using_activex_with_labview/
If you need write access, the report generation toolkit will be your friend.
Best,
10-01-2014 02:54 PM
Hi MattJ,
Thanks for the reply. That was my first option to use. The VI that I'm making is taking a file of any format and displaying on the front panel and the only way I can do that is to use an activex webrowser control. It works fine for PDFs, HTMLs, HTMs, & XML (so far). The only formats that it doesn't work for is for .docx, .doc, .xls, & .xl. That's why I was trying to embed the word document on the browser but to no avail. 😞
Cheers,
jachy
10-01-2014 03:42 PM
I know that the following post is for Excel 2007, but I looked at the Microsoft KB and the registry edits required to make it work for both Office 2007 and 2010 documents are the same, so it might also work for 2013. No guarantees!
Excel 2007 viewable from ActiveX Browser on LV Front Panel
http://forums.ni.com/t5/LabVIEW/Viewing-Excel-Sheet-in-LabVIEW/td-p/3003307
Microsoft KB relating to Office 2007 opening in a new window instead of the browser
http://support.microsoft.com/kb/927009/
Microsoft KB relating to Office 2010 opening in a new window instead of the browser
http://support.microsoft.com/kb/982995
Note the identical registry values in both the 2007 and 2010 KBs.
10-01-2014 03:46 PM
Are there no property node/invoke nodes that allows us to embed the word file into the activeX container?
Drew_H, thanks for the reply. I'd rather not have to edit the registry if possible.
10-01-2014 03:51 PM
@jachy25 wrote:
Are there no property node/invoke nodes that allows us to embed the word file into the activeX container?
Drew_H, thanks for the reply. I'd rather not have to edit the registry if possible.
If you don't want to edit the registry yourself, just click on the Fix It button on the linked pages.
10-01-2014 03:56 PM
nyc,
Wouldn't that mean I would have to fix the registry for every computer that wants to run the VI that I'm creating?
10-01-2014 04:11 PM
@jachy25 wrote:
nyc,
Wouldn't that mean I would have to fix the registry for every computer that wants to run the VI that I'm creating?
Yes.
Those are the only options Microsoft is giving you apparently.
10-02-2014 02:00 PM
You can apply a registry update programatically in LabVIEW if the logged in user has permission. There is a palette for editing Windows registry. Also you can perform it using the command line.
http://www.robvanderwoude.com/regedit.php
But again this relies on the user having the rights to be allowed to edit the registry.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord