LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Save Table and text control in a .doc file

Hi all
I m copying textbox and a table to temporary panel and save it as bitmap.but i want to make doc file in which these two controls(Text Box and Table) to be saved.also i want a file in which only these two controls saves as it is seen in the original forms.
thanks to all
0 Kudos
Message 1 of 3
(3,171 Views)
Hello Electronics,

I would suggest taking a look at the Word Report shipping example (\samples\activex\word\wordrpt.prj). In particular, if you look at the InsertGraph callback, the code saves a graph control as an image and then inserts this image into a word document, which seems to be what you want.

Hope that helps.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 3
(3,158 Views)
I second Wendy's suggestion to look at wordreport.fp. Also, if you don't want the table in image form but you want it converted to a Word table, there is a function in wordreport.fp that automatically converts a CVI table to a Word table. The function is called InsertCVITable.

Luis
NI
0 Kudos
Message 3 of 3
(3,144 Views)