04-05-2004 09:23 AM
04-06-2004 08:03 AM
04-12-2004 10:12 AM
Unfortunately, the VI's "fit to page" property only applies when LabVIEW is working with the printer. When creating a Word file, LabVIEW has no way to know what the page size will be - you can setup your page size and margins in Word to anything.
You can probably achieve what you want by getting the VI's panel image (via the VI's Get Panel Image method), saving it to an image file (using a function from the Graphics Formats palette), and using Word's ActiveX interface. Word's ActiveX interface varies between versions, so I can't say exactly how you could create a document and insert your ima
ge. Also, I'm not sure how you would fit the image to the page - perhaps if Word supports a way to resize the image to a certain size.
It's possible that the LabVIEW Report Generation Toolkit for Microsoft Office might make this easier, but I'm not sure if it handles scaling the image to fit the page.