LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

print an html page wider than the screen

I have set up a custom report but the (control) table I include is wider than a single page.  How can I print the whole image? I am using print report.vi with an html file report type.  Either a "fit to page" option or a second page but I cant find out how to do either? 
 
Gold
0 Kudos
Message 1 of 5
(2,939 Views)

Hi Gold,

I assume that you are using the "Append Control Image to Report.vi" to include the image. There are a couple of different solutions for fitting the control image to your report, without exceeding the borders of the document. One solution is discussed in this other thread:

Resizing an image in a report

Another solution is to use the "Append Front Panel Image to Report.vi" instead of the "Append Control Image to Report.vi" and then create a subVI that basically only shows the table on the front panel. Link to the SubVI when printing the front panel. To change the size of the image being saved in the report, you will have to modify the "Append Front Panel Image to Report.vi" to resize the image before appending it to the report. Open its block diagram and double-click on "Append Front Panel Image to Report (refnum).vi". Then go to the "No Error" case and change the "Get Panel Image" to "Get Panel Image Scaled". Notice that two new inputs are introduced; the "Maximum Width" and Maximum Heigth. Apply proper "Maximum" values, so the image will be scaled properly.

Have fun!

- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
Message 2 of 5
(2,933 Views)

Thanks for the suggestions!!

I too found an alternative, So not to rain on your reply but here is another answer to my own question.  I promise I didn't know the answer before I posted, I'm not "star diggin".

I had been trying to use the print report.vi with no success but when I used "easy print vi panel or documentation" I get an input that allows me to set landscape vs. portrait, margins, scale to page etc.  This worked great.

gold

Message 3 of 5
(2,922 Views)
Hi Gold,

Ahhh, so you want to print the front panel and not just the control... Well, then you are right about using the "Easy Print VI Panel or Documentation.vi".

Honestly, I have never used that VI before, so thanks for teaching me something new (you deserve the five stars for keeping the thread updated).

Have fun!
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 4 of 5
(2,913 Views)
@Philip C:
This is just what I needed, thanx for the tip!

Message Edited by Arend on 07-19-2006 01:35 PM

0 Kudos
Message 5 of 5
(2,794 Views)