LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scaling XYGraph image to print layout.

Solved!
Go to solution
Who knows, why when I append XYGraph to report with "Append Control Image to report.vi" for some sizes of XYGraph the image is cutting off? How can I scale XYGraph image to print layout(A4) without changing of XYGraph size.
0 Kudos
Message 1 of 7
(3,440 Views)
Hi BPS,

I do not believe there is a way to automatically resize your XY Graph for the A4 paper size.  However, you can format the graph before the report is generated using property nodes.  Here is a forum post containing more details and some example code, graph format procedure.  The catch here is that you must be sure to reformat the graph before the report is generated.  The example code includes a method for doing this.

Kind Regards,

Justin Fuller
National Instruments
0 Kudos
Message 2 of 7
(3,419 Views)
Thank you, JustinF. But my problem is that I don't want to reformat the graph. I want reformat only image of the graph that will be printed  or picture box with picture of the graph. Certainly I can make sub-vi, with the same graph, but in my program graph has a large list of different properties (around 20) and it is not efficient to send all this properties to sub-vi. Is there any way to solve this problem?
0 Kudos
Message 3 of 7
(3,404 Views)
Hi BPS,

I see your point.  However, the methods discussed in the forum thread Justin linked to seem to be the best solution to your problem.  Give them a try and see if you can't find an acceptable solution, even if it is not exactly the solution you are looking for.  If you are concerned about the "efficiency" of writing to so many properties to a second graph, I recommend you make a custom control out of your graph.

I hope this helps!
Brian A.
National Instruments
Applications Engineer
0 Kudos
Message 4 of 7
(3,371 Views)
Thank you Brian_A. I'll try to use this approach to my problem.
0 Kudos
Message 5 of 7
(3,358 Views)
Solution
Accepted by topic author BPS
Hi BPS,
see this link http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=133867#M133867, you can use the resize function to shrink your picture.
 
Hope it helps.
Mike
0 Kudos
Message 6 of 7
(3,354 Views)

Hi MikeS81,

Yes, it's that I wanted. It isn't so easy that I thought, but it is very useful example. Thank you!

0 Kudos
Message 7 of 7
(3,319 Views)