473,395 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

access the axis of the graph

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
2 3736
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: MLH | last post by:
This question, I apologize, is more of a math question than it is an Access question - I'm almost certain. The bell curve is another name for the normal distribution, which is a common type of...
0
by: Vic | last post by:
Dear All, I wanted to do a very simple chart on a form in Access: here is the table the chart should be based on: Date | Weight | TimeOfDay The format of the above fields is the...
3
by: Jeff | last post by:
Hi I have a report with a graph on it and want to change the minimum and maximum values for the value axis when it is previewed. This can't be done by adding code in the Open event as once the...
3
by: Jeff | last post by:
Hi I am manipulating MS Graph and can successfully change the minimum and maximum values for the Y axis, but can't find a way of doing this for the X axis. This works for Y axis...
3
by: Claus Haslauer | last post by:
Hi, I want to create a chart value (y-axis) vs. time (x-axis). In fact very similar to the xy(scatter) example in the graph10.chm help-file. I ran into problems, so I started a very basic *.mdb...
1
by: Heather | last post by:
I have created a unbound object frame and selected MS Graph and use my table to create my graph. Note I did not use the wizard. I open my MS Graph to change the stuff. How can I change the...
0
by: psuaudi | last post by:
I have a database that involves moving product from one status to the next. When the status is changed, it saves the date of the change, and from where the product was moved. Ex. of one product...
3
by: rahmawaktu | last post by:
Dear list, i am new to this forum and to JPGraph too. I just install jpgraph to create a graphic to my website. But i got error. Here is the complete code : First is MySQL Database : ( 2...
0
by: Just_a_fan | last post by:
Some folks have searched, from time to time, for a dual axis MSChart with different scales on the two Y axes. The sample, extracted from running code I wrote, produces a graph with MSChart (VB9)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.