LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to automatically display a Word document in Print Layout view?

I am using Report Generation Toolkit (v.1.0.1). After displaying the report, the view in Microsoft Word is always "Normal." It would be really nice to automatically show it in "Print Layout" view. (i.e. in Word, go to View >> Print Layout) Is there a way to do this programmatically through the vi? I'm using LV 7.1 and Windows 2000. Thanks,
0 Kudos
Message 1 of 5
(2,984 Views)
Hi dj143,

There is no vi in the RGT for you to set this option. You would have to do it in ActiveX, by using Automation refnums, property nodes and/or invoke nodes. I'm not very sure which series of properties you would need to get to that option, but I'm positive you can do it that way. I would download some VBA help files that you can reference in LabVIEW when dealing with property nodes. To bring them up, you would right click on the property terminal of the property node and select Help for . This should bring up the VBA help for that property (if installed). Hope this helps!

Jeremy L.
National Instruments
Jeremy L.
National Instruments
0 Kudos
Message 2 of 5
(2,984 Views)
Hey dj143

The best way to do something like that is with property nodes.You can do this the easy, by going into word and recording a macro. Then look at the macro and duplicate it using property nodes.here is a vi that I did for you that answer your question



Joe.
"NOTHING IS EVER EASY"
Message 3 of 5
(2,984 Views)
The vi example not only addressed the problem, it solved the problem. I'm grateful for this example also because I can see how to apply the functions used.
Thanks
0 Kudos
Message 4 of 5
(2,984 Views)
Thanks for the stars. Hope you have fun with the new world that you just opened. Whenever you need more help just ask.

Joe



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 5 of 5
(2,984 Views)