LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I maintain the printed report plot size when monitor resolution is changed?

The enclosed VI (RL10plots.vi) was written with a screen resolution of 1280 X 1024. The plot when printed (with this resolution) fits nicely and is centered on the page. When I change my resolution to 1024 X 768 and print the report, the plot is smaller on the page and no longer centered on the page (moves up and to the left). I don't want this application to be resolution dependent. Please let me know if there is a way to fix this and if not why not! I have enclosed (in the Zip file) the necessary files to allow you to reproduce this problem. At the first file dialog, use the file named "PlotBaseline.txt" and at the second file dialog use the file named "LOADSTEPS.txt". Noti
fy me if you have problems getting the program to run.
0 Kudos
Message 1 of 8
(3,683 Views)
I cannot currently look at your code (still running 5.1 at work), but I usually create a separate VI for printing where I make the graphs way oversized to improve resolution.

Then I set that VI to:
1. print panel when VI completes
2. scale to fit

... and everything happens nicely in the background and independent of your screen resolution.
0 Kudos
Message 2 of 8
(3,678 Views)

Dear Jack,

did you find any solution to your problem that is the same of mine? How to make a print independant from screen resolution?

How to fit it to the page?

Thankyou

Steve

0 Kudos
Message 3 of 8
(3,505 Views)
Do you realize that you added to a thread that is 5 years old?
 
JAC's last visit to the forum was last summer, so it is probably unlikely that he will ever see your question. Did you try the suggestions from my answer above?
0 Kudos
Message 4 of 8
(3,499 Views)

What do you mean when you say: 2: scale to fit.

I need to have a full page printed but i have the problem that, if the print oversize margins it does not print at all.

I cannot know which printer are they going to use and the printers can differ a lot in margins, laser have few mm, instead inkjet have sometimes 1 or 2 cm.

I tried to estabilish extrasure margins but in that way, sometimes growing with screensize resolution, i have the xaxis out of print (not printed at all).

Maybe the solution is to know the right margins before trying to print, and "scale to fit", but how?

My problem is that i have to resize smaller again my graph just to be sure, until another screensize not used today will give the problem.

Greetings

Steve

0 Kudos
Message 5 of 8
(3,495 Views)

Maybe You can tell me why i cannot see the problem on machines with Labview (8.2), and instead i see it on machines with .exe standalone.

Did i miss something?

Greetings

Steve

0 Kudos
Message 6 of 8
(3,491 Views)

Steve:

I am having a hard time understanding what your issue is, are you not able to center the graph on the screen so that it is resolution independent, or?. Please provide me with more information so that I can better assist you.

Regards,

Rudi N.

0 Kudos
Message 7 of 8
(3,483 Views)

I try to explain better:

with standard report i created a nice page with two pictures: upper a cluster of controls with logo of customer, report name etc. and lower an image from a graph control.

When i print this page on the develpment system i have got no problem, everything goes well every time. The Graph is well centered and printed, very big and very clean.

When i make it run as executable in a standalone pc it depends: if the screensize resolution is 1024x768 everything goes well, instead if the resolution used is bigger, for example 1280x1024 half a cm it's cutted from margins. I cannot know what kind of printer my customers are going to use, so i had to be strict with margins, because if they use inkjet printers i cannot avoid the "margin error" from eating my printout.

So i'm going to resize again my graph to make it smaller, but i cannot understand why it works well on development system and became "resolution dependant" on standalone pc.

I hope to have been more clear this time.

Thankyou

Steve

0 Kudos
Message 8 of 8
(3,480 Views)