LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help for -Generate Report using Word template having company Logo

HI GUys,

 

I am trying to generate a report in PDF using the word template having some company logo as footer to that .

 

When user click on print ,the graph should be added to the template and its should output the report in pdf.

 

I am able to achive this when I 'm  not using the template,but when I use the template (sample code shown below),its throws the error attached in screenshot.

 

pls suggest the possible way to achieve thisError using template.PNGProgram sample.png

0 Kudos
Message 1 of 3
(2,726 Views)

Why are you deleting the file after creating the report? Are you sure that the image exists at the path specified when running?

 

Also, in your top screenshot because of data flow there's a high possibility that you actually delete the file before it gets used because there is no connection between the end of writing the report and deleting the picture.

 

I also suspect there's a chance there might be a permissions issue - you are trying to get the file from another user's desktop which isn't normally allowed - do the file/folder permissions give you access to that file path? I would try putting the picture on your own desktop just to rule that out.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 3
(2,717 Views)

One other thing you might want to do (besides not deleting the image) is to set Save Report on the Dispose Report function.

 

BS

0 Kudos
Message 3 of 3
(2,700 Views)