473,787 Members | 2,938 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Line intercept - mschart

Hi.
i have i problem such as getting the intercept point for my graph which
is made in MSgraph Access 2003. the lines in the graph is from tabel
and , i need some idea for some vba code to get the intercept point for
the lines.

Jan 4 '06 #1
2 2706
Geagleeye wrote:
i have i problem such as getting the intercept point for my graph which
is made in MSgraph Access 2003. the lines in the graph is from tabel
and , i need some idea for some vba code to get the intercept point for
the lines.


I have no idea what the answer to your question is, but a possibility,
pointed out to me by Steve Santos a little while ago, is to download the
following app from the MS site. It shows, I believe, sample chart
manipulation in Access and may have the answer to your question (watch
for wrap):

http://download.microsoft.com/downlo...-us/vbagrp.exe

Alternatively, if the above link is broken in your news reader, try
http://tinyurl.com/cmbj3

If this does not help you, what I've found very useful in the past when
trying to manipulate various properties of the graph has been to open
EXcel. Start recording an Excel macro and go through the setting up of
your graph, including where the intecept point is.

Save the macro and then look at the VBA editor for the macro. There are
sometimes still some soggy ground that has to be traversed - the object
browser can be an enormous help here - but it at least gives you a
starting point.

Sorry I don't have a direct answer to your question, but if you don't
get a response, try the above two ideas.

--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Jan 4 '06 #2
Red
Ahh... another question that I can't really answer, but can possibly
help.... and obviously blow off a little more work... woo hooo....

Here's a GREAT link for you to help you in your search for MS Graph
help...
(this is actually for 97, but, you can find later versions from there)
http://msdn.microsoft.com/archive/de.../D6/S5B5EF.asp

BUT....

If you know what you want to do, and you can do it in Excel, do like
Tim Marshall said...
1) Export data to excel
2) Record a macro to do what you want
3) convert macro into a string (really, it's not that hard)
4) Run macro after exporting information from Access!

i.e... here's a quickie for you, to learn how to do what I just said...
(copy and paste into a module and watch it do it's THING! :D )

Private Sub ExcelTest()
Dim XLS As Object, Wkb As Object, strCode As String
Dim X As Integer, Y As Integer, Z As Integer
'XLS is our application object
Set XLS = CreateObject("E xcel.Applicatio n")
XLS.Application .Visible = True
XLS.Application .workbooks.Add
'Wkb is our worksheet object
Set Wkb = XLS.Application .activeworkbook .worksheets(1)

'Fill our worksheet with some information
X = 0
For X = 1 To 10
For Y = 1 To 10
Z = Y * X
Wkb.cells(X, Y) = Z
Next Y
Next X

'Now make the macro
strCode = "Sub MakeChart()" & vbcrlf & _
" Charts.Add" & vbcrlf & _
" ActiveChart.Cha rtType = xlColumnCluster ed" & vbcrlf & _
" ActiveChart.Set SourceData Source:=Sheets( " & Chr(34) & "Sheet1" &
Chr(34) & ").Range(" & Chr(34) & "A1:J10" & Chr(34) & "),
PlotBy:=xlRows" & vbcrlf & _
" ActiveChart.Loc ation Where:=xlLocati onAsNewSheet, Name:=" &
Chr(34) & "Tada!" & Chr(34) & vbcrlf & _
" With ActiveChart" & vbcrlf & _
" .HasTitle = True" & vbcrlf & _
" .ChartTitle.Cha racters.Text = " & Chr(34) & "Tada!" & Chr(34)
& vbcrlf & _
" .Axes(xlCategor y, xlPrimary).HasT itle = False" & vbcrlf & _
" .Axes(xlValue, xlPrimary).HasT itle = False" & vbcrlf & _
" End With" & vbcrlf & _
"End Sub"
'Add the macro to the workbook
XLS.activeworkb ook.VBProject.V BComponents.Ite m(1).CodeModule .AddFromString
strCode
'Run the macro! :D
XLS.Application .Run "Thisworkbook.M akeChart"

End Sub
(I've been dieing to show taht to someone :D )

Jan 4 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1939
by: Gerhard Swart | last post by:
Good Morning, I have a licensed .Net product. Meaning I can develop and deploy my projects. I want to use MSChart in my latest project. Now I am not sure about the licensing of MSChart. As far as I know the MSChart ocx gets installed with VB.Net. If I want to deploy my project can I also deploy the MSChart ocx with my project without worrying about licensing for the MSChart ocx.
2
2075
by: Steven Nagy | last post by:
Hi all, Is there a more interactive .NET component that does what the MSChart does? Perhaps someone has developed something similar that is available or for sale. My requirement is for a reusable component that plots line graphs with up to 10 lines at once, with the ability to switch on/off any line, and to be able to drill down in any part of the graph for a more detailed view.
1
1429
by: Lionel | last post by:
Hi everyone, I've been practicing C# by writing some programs with the downloadable SDK from Microsoft. I'm writing the programs using Notepad and compiling with the command line compiler. I have Excel installed and I'd like to use the MSChart control but I don't know how to command the compiler to reference it. I've found instructions on the web that say: "Add a reference to the MSChart control to Visual Studio's toolbox. Select...
5
5043
by: Richard | last post by:
I don't know any thing about c#, I really need to do this in visual c++. I don't manually wrap the dll but since it's called AxInterop.OWC10.dll I assume visual studio has done that for me. "Steve Alpert" wrote: > Richard wrote: > > I have Visual C++ .net 2003 and am trying to add a chart to a form. When I > > try and use MSChart or any other of the activeX controls (ie MS Calendar) I > > get an error message saying that it can't...
1
1957
by: wayne | last post by:
hi, i understand that i m able to use mschart to plot a line graph. i got list of values (jus one column) to b plotted into a line graph. how ca i do it using mschart in visual c++?? thanks in advanced for the help given.. thanks..
0
1266
by: kowndinya | last post by:
I want to show some data using MSChart with Horizontal Bars with Fill color similar to Column type. I don't want to use Line type. Is It possible with MSChart in VB6. or is it possible to rotate the column type chart. Please help me. Thank you. Raj
0
51221
debasisdas
by: debasisdas | last post by:
Here's a simple VB6 code snippet that uses the MSChart control to display Charts in VB6.0. To use this sample, please following steps Create a new project in VB6 Pull down the Project menu and choose Components . Select the checkbox next to Microsoft ChartControl 6.0(OLEDB), Click OK. Add a combobox,one Mschart control and one check box tothe existing form. Paste in the following code tothe code window Private Sub Form_Load() 'Fill the...
0
1184
by: ian dean | last post by:
How do I draw a filled polygon in mschart (on line plot). This needs to be on a chart form and not on a form directly.
10
14714
Mas Juliza Alias
by: Mas Juliza Alias | last post by:
I have a table (MSFlexgrid1) in a form (frmCalculate) containing 2 columns of Depth and Volume data. I want to draw a line graph of Depth Vs Volume in a new form (frmGraph) by using MSChart control. How can I do this?
0
9655
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10172
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5535
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.