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?
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
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
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.