LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to put a panel in a word document.this operation must be done AUTOMATICALLY.. How could I do?

"Thank you for your answer but it raise another question:
How can i put a panel in a word document?
I remind you my problem:
I treat a text file, full with data representing measures, in order to build a report and
some charts.
The problem is that having both a text file containing the report and some panel
drawing the charts, I am unable to merge them AUTOMATICALLY in a only file for obtaining a relevant
report."
0 Kudos
Message 1 of 2
(2,987 Views)
Let's try with this workaround:

1) Get a bitmap of your object with
GetPanelDisplayBitmap (panel, VAL_VISIBLE_AREA, VAL_ENTIRE_OBJECT,
&bitmapID);
or
GetCtrlBitmap (panel, control, plotHandle, &bitmapID); for the grpah's plots
2) put the image obtained to the clipboard by
ClipboardPutBitmap (bitmapID);
3) paste this image from the clipboard to a word document by activeX (I can't help you on this point 'cause I had never used activeX with word, but I assume it's someway possible).

Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,987 Views)