LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Edit XY axis name programtically

hi,

 

i am using Report generation toolkit to plot a xy graph in word document. here i want to  edit my x and y axis name programatically. i find there was no vi and property node found.

 

how to do this?

Regards,
Balaji DP
0 Kudos
Message 1 of 5
(2,304 Views)

I have not worked much in this but when I tested by using the Word Easy Graph vi in the row and the colum header section and depending on the graph selection I got the Labels what I gave. You can give a try

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 5
(2,289 Views)

This is actually pretty involved to modify even if you use VBA in Microsoft Word. Essentially you need the LabVIEW equivalent of this:

ActiveDocument.InlineShapes(1).Chart.Axes(1).AxisTitle.Text = "Your Text"

Assuming that your Chart in question is the first one added to the document...

 

Here is the LabVIEW equivalent of said line of code. Please note that I'm doing this entirely through ActiveX coding if you integrate this with the Report Generation Toolkit then you can probably pickup the reference to the current document and possibly even the chart itself and eliminate the portion of my code that indexes these items.

 

Charles Chickering

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 3 of 5
(2,282 Views)

hi charles,

 

Thank you, i tried your code... presently i am using insert graph.vi from report generation toolkit with chart type = xlxyscattered lineNomarkers.,

 

along with i am using word get activex preferences.vi, to get a property node for axis edit, i took from inlineshape invoke node then followed as per your code.. but after chart invoke node i am getting undefined error to stop execution.

 

 

Regards,
Balaji DP
0 Kudos
Message 4 of 5
(2,261 Views)
Could you post your code? Or at least send me the exact error message?

Thanks,
Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 5 of 5
(2,247 Views)