LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

transfering word data to word template report

Hello,

 

Could someone help me here please:  I have a draft report generated from an equipment (see attached document name draft report.doc). I need to transfer data from this draft to a template ( see attached doc named template. doc), and this should look like the final report (see attached doc named final report.doc).

 

I tried this (see the attached code), it seems to work but I am not able to get transfer the image (the graph) and also I need the right formating as shown on the example of the attached final report.

 

Any help will be appreciated.

 

 

Download All
0 Kudos
Message 1 of 4
(2,593 Views)

Sorry, here is the doc name final report.doc

0 Kudos
Message 2 of 4
(2,591 Views)

For the formatting you can use the Set Font Report.vi with font settings calibri size 8. Extracting a picture from a Word document to insert it into another Word document is not a simple task that can be accomplish with the VIs of the Report Generation Toolkit. You will have to use Word ActiveX methods and properties. Attached is a vi that copy the first picture of the draft report and copy it to the Image1 bookmark (there are no Image bookmarks define in your template so you will have to add them) of the template report.

 

Note, your template report should be a .dot file, not a .doc file.

 

Ben64

0 Kudos
Message 3 of 4
(2,563 Views)

Thanks a lot, this is perfect for copying and pasting the picture.

Thanks.

0 Kudos
Message 4 of 4
(2,555 Views)