LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Image won't use full width of page in Standard Report

Using LabVIEW 2012 in both Windows XP and Win7

 

Specifically, I'm trying to use a cluster control  with strings and numerics for a generic report page.  I stuff the strings and numerics with the info that's needed to create the desired page content.

 

I am creating a standard report.  The use of Word or Excel is not considered due to compatibility issues when either NI or Microsoft release version upgrades.

 

I have tried setting the report margins as well as leaving them at default; the results are the same.

 

I set the header text and footer text to indicate where the report generation function believes the margins to be.  Both header and footer honor the margin settings and appear on the report page as they are expected.

 

When I "append control image to report" using the reference to the cluster control, the resulting image is 6.2" wide and hugs the left margin regardless of what size the control actually is.  If the control is widened, it is rescaled to 6.2" wide.  I tried using picture and array controls; results are the same.  I tried using the "append front panel image to report"; same results.  The "Alignment" input seems to have no effect.  The issue seems to be with the way images are handled in the report generation.

 

Oddly enough, the height seems to behave quite normally.  If the object is too large in height, it is simply truncated at the bottom margin.

 

I tried using landscape orientation which functionally exhibits the same issue; object hangs on left margin and will not fill the width of the page.

 

I tried HTML which centers the image on the page but doesn't honor margins and prints info at top and bottom that I can't get rid of.

 

I contacted NI support and generated an active support question reference# 7369484.  So far, no solution.

 

Any help would be appreciated!

Message 1 of 4
(3,521 Views)

same issue...

 

its horrible!!

Kudos always welcome for helpful posts 🙂
0 Kudos
Message 2 of 4
(3,382 Views)

Similar problem using LV2011. I have to print labels on a 100x70 mm paper without borders. No chance to scale the control image to fit.

 

Calculating the size of the initial picture (480x360 pixels) scaled at 96 DPI would result in a size of 127x95 mm.

Actually the height printed is exactly this, but the width shrinked to about 45-50 mm.

 

A part of the solution might be to create an image (use 'create/invoke node/get image') and send this to the printer (how to do this?). Actually the HTML report creates an 96 DPI image together with the html page.

 

In my case I should create an image of at least 150 DPI (300 or 600 DPI prefered). But there are no options in either the 'get image' or append control image to standard report to set the resolution.

 

Bad thing!

0 Kudos
Message 3 of 4
(3,327 Views)

Hello everyone ,

 

I know it is been a long time that this discussion were stopped, but i hope i could get some answers.

 

I am using LBView 2012 i have the same issue in fact i need to print a graph and to change the scale of the image my resolution is 1920*1080  and the format of the paper is about 120*60 cm, i am wondering if i can scaled my image at a know value 300 DPI for example, but i am not sure if i could get the image and control it to set the resolution

 

-2ndlly if have the time as a unit on my x label, how to scale it in order to have  for example 1 milliseconds per 1 cm once graph printed  

 

Thank you !

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