LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying a Word Document *on the front panel*

Greetings. I've nearly solved the problems I mentioned earlier with
creating a report in Word via ActiveX (not as hard as it seemed!). Thanks
to all who helped out.

However, I would like to provide the operator with a consistent
single-application experience by displaying the Word report in an ActiveX
container on the front panel of my application.

I thought I could do this by simply creating an ActiveX Control (indicator,
actually), and assigning it to be a "Word._Document" (by popping up on it
and clicking "Insert ActiveX Object..." then selecting "Microsoft Word
Document" from the Create Document tab). The Word._Document indicator is
connected on the diagram to the ActiveX refnum for the document I
'm working
with. Everything is set up so that this indicator gets updated right at the
end of the program, after all my modifications to the document have been
made.

But when I run the program *nothing* appears in the indicator! It just
stays blank. The way I've described above seemed to me to be
straightforward and intuitive, and I'm just learning to use ActiveX, so I
don't know what to try instead. Any suggestions?

Thanks in advance!
Justin Goeres
Indio Systems, Inc.
jgoeres@indiosystems.com
0 Kudos
Message 1 of 3
(3,543 Views)
Justin,

Assuming you have a relatively recent version of IE, you can use the "Microsoft
Web Browser" as the as the Active X object and then use the "navigate" method
to load the Word document. Take the path of the Word document, convert it
to a string and wire it into "URL" attribute of the "navigate" method.

-Jim

"Justin Goeres" wrote:
>Greetings. I've nearly solved the problems I mentioned earlier with>creating
a report in Word via ActiveX (not as hard as it seemed!). Thanks>to all
who helped out.>>However, I would like to provide the operator with a consistent>single-application
experience by displaying the Word report in an ActiveX>container on the front
panel of my application.>>I thought I could do this by simply creating an
Act
iveX Control (indicator,>actually), and assigning it to be a "Word._Document"
(by popping up on it>and clicking "Insert ActiveX Object..." then selecting
"Microsoft Word>Document" from the Create Document tab). The Word._Document
indicator is>connected on the diagram to the ActiveX refnum for the document
I'm working>with. Everything is set up so that this indicator gets updated
right at the>end of the program, after all my modifications to the document
have been>made.>>But when I run the program *nothing* appears in the indicator!
It just>stays blank. The way I've described above seemed to me to be>straightforward
and intuitive, and I'm just learning to use ActiveX, so I>don't know what
to try instead. Any suggestions?>>Thanks in advance!>Justin Goeres>Indio
Systems, Inc.>jgoeres@indiosystems.com>>
0 Kudos
Message 2 of 3
(3,543 Views)
Jim,
Quite good method to display word document in LabVIEW.But if I would like to refresh the scripts in docu,how to do it? Now I am saving the information as txt file and then open it with MS Word.Any better way to update the content in Word.Thanks!
0 Kudos
Message 3 of 3
(3,543 Views)