LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Report generation toolkit: Avoid a separation of title and image at pagebreak in a work document.

I want to generate a report with the report generation toolkit in LV7.1.

In that report I use several report VIs to append text, titles and frontpanel images to a word document template (Office 2003). That works fine.

 

Depending on the size and text of my generated report, I have sometimes a problem with pagebreaks: A image is set to a new page if there is not enough space to place it on the old one. That’s ok. The text/title above the image is still on the old page. That's right, but I don’t want this. I know in Word you can use the paragraph formatting options to avoid a separation. But with the corresponding VI from the toolkit (word format paragraph (adv)) it seems not to work. With this VI you should have access to "indents

 and spacing" and to "line and page breaks". I always and only can change the "indents

 and spacing". En- or Disabling line or page breaks with this VI does not work, nothing changes in a word document.

 

Has anyone some suggestions or other solutions?

 

Thanks in advance!

0 Kudos
Message 1 of 3
(2,629 Views)
Hi,

An other solution is the following:

- When you don't have a space between your title and your image, the title AND the image are in the new page when there is not enought place to have the image in the old page.
I've tried this today and it work fine.

Best Regards.

Matthieu Papaux
Applications Engineer
NI Germany
0 Kudos
Message 2 of 3
(2,611 Views)

Thanks for your input. You are right, that works and could be an alternative.

In the meantime I found a solution with creating my own activex vi instead of that from the toolkit as you can see in the attached image. Maybe this could help someone with similar problems...

 

 

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