DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Changine line widths in multi page reports?

I need to be able to change line widths on a "per channel basis" within a multi page report. Is there a script that I can use to do this?
0 Kudos
Message 1 of 2
(3,337 Views)
Hey Zilla,

I'm not exactly sure what you're trying to do but I've written a short example that hopefully does something similar. It may not be the most efficient example but it should get you started. I assumed that by line width you're referring to the width of a plot on a graph in DIAdem Report. The following code changes the width of three plots on two graphs each on different sheets. The code is pasted below. I'm attaching the report template I used. It uses the default DIAdem dataset. If you have a different report the object names may be different. (The report template was created in DIAdem 9.1)

Call GraphSheetNGet(2)
Call GraphSheetRefSet(GraphSheetName)
Call GRAPHObjOpen("2DAxis1")
for i=1 to 3
Call GRAPHObjOpen("2DObj1_Curve" + s
tr(i))
D2CURVELINEWIDTH ="35.0"
Call GRAPHObjClose("2DObj1_Curve" + str(i))
next
Call GRAPHObjClose("2DAxis1")
Call GraphSheetNGet(1)
Call GraphSheetRefSet(GraphSheetName)
Call GRAPHObjOpen("2DAxis1")
for i=1 to 3
Call GRAPHObjOpen("2DObj2_Curve" + str(i))
D2CURVELINEWIDTH ="35.0"
Call GRAPHObjClose("2DObj2_Curve" + str(i))
next
Call GRAPHObjClose("2DAxis1")

Call Picupdate

I hope this helps!! If this isn't what you're trying to do please post back with more information so I can try to help.

Regards,
Sarah Miracle
National Instruments
0 Kudos
Message 2 of 2
(3,337 Views)