By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,316 Members | 2,132 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,316 IT Pros & Developers. It's quick & easy.

access the axis of the graph

P: n/a
hi,
i am mariya. i am working on vb.net. i have created the powerpoint
addin. i have inserted the chart on the slide through vb.net code.
now, i want to remove the gridlines on the chart and want to remove
the y axis. i am not able to get the exact object and properties of
the axis . can u plz tell me, what should i do?
the code is as,

Private oChart As Microsoft.Office.Interop.Graph.Chart
Private oaxis As Microsoft.Office.Interop.Graph.Axis

oaxis = CType(oChart.Axes(XlAxisType.xlValue, XlAxisGroup.xlPrimary),
Microsoft.Office.Interop.Graph.Axis)
oaxis.TickLabels.Orientation =
XlTickLabelOrientation.xlTickLabelOrientationUpwar d

on the last line i am getting the error, "unable to access the
XlTickLabel property of the axis class"
what should i do? plz tell me as soon as possible.

Apr 18 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Have you tried using MacroRecord and seeing what the generated code looks
like?

Robin S.
---------------------------
<sm**********@gmail.comwrote in message
news:11**********************@b75g2000hsg.googlegr oups.com...
hi,
i am mariya. i am working on vb.net. i have created the powerpoint
addin. i have inserted the chart on the slide through vb.net code.
now, i want to remove the gridlines on the chart and want to remove
the y axis. i am not able to get the exact object and properties of
the axis . can u plz tell me, what should i do?
the code is as,

Private oChart As Microsoft.Office.Interop.Graph.Chart
Private oaxis As Microsoft.Office.Interop.Graph.Axis

oaxis = CType(oChart.Axes(XlAxisType.xlValue, XlAxisGroup.xlPrimary),
Microsoft.Office.Interop.Graph.Axis)
oaxis.TickLabels.Orientation =
XlTickLabelOrientation.xlTickLabelOrientationUpwar d

on the last line i am getting the error, "unable to access the
XlTickLabel property of the axis class"
what should i do? plz tell me as soon as possible.

Apr 19 '07 #2

P: n/a
On Apr 19, 10:52 am, "RobinS" <Rob...@NoSpam.yah.nonewrote:
Have you tried using MacroRecord and seeing what the generated code looks
like?

Robin S.
---------------------------<smith.mar...@gmail.comwrote in message

news:11**********************@b75g2000hsg.googlegr oups.com...
hi,
i am mariya. i am working on vb.net. i have created the powerpoint
addin. i have inserted the chart on the slide through vb.net code.
now, i want to remove the gridlines on the chart and want to remove
the y axis. i am not able to get the exact object and properties of
the axis . can u plz tell me, what should i do?
the code is as,
Private oChart As Microsoft.Office.Interop.Graph.Chart
Private oaxis As Microsoft.Office.Interop.Graph.Axis
oaxis = CType(oChart.Axes(XlAxisType.xlValue, XlAxisGroup.xlPrimary),
Microsoft.Office.Interop.Graph.Axis)
oaxis.TickLabels.Orientation =
XlTickLabelOrientation.xlTickLabelOrientationUpwar d
on the last line i am getting the error, "unable to access the
XlTickLabel property of the axis class"
what should i do? plz tell me as soon as possible.- Hide quoted text -

- Show quoted text -
hi,
thanks for ur reply.
but i tried with macro also. it doesnt show any related things.
i am using office 2005. and my chart object is of MSGraph.chart
is any other ref. is required?
plz tell me if u know . its urgent!!!
Thanks !!!

Apr 19 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.