473,504 Members | 13,621 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

1.Create chart 2.copy from microsoft office

6 New Member
First, i wish to create line chart, pie chart and bar chart using vb.net of visual studio 2005.
Second question is i wish to copy a few data into datagridview from microsoft office tools such as access or excel using shortcut key 'ctrl+C' and 'ctrl+V'.
Any suggested code to do the 2 functions above without installing additional tools?
Apr 21 '10 #1
5 1911
semomaniz
210 Recognized Expert New Member
Show us what you have done so far? Asking the question by stating I want to..... isnt the right way to ask.

My suggestion to you is use google to do some research and then implement what you have learned from your research and then when you run in to an error post your question.
Apr 21 '10 #2
lauclaw
6 New Member
@semomaniz
actually my friends suggested me to refer this link:
http://www.codeproject.com/KB/GDI/2DAnimatedCharts.aspx
but i dont really understand what the included source code.

second question:
Expand|Select|Wrap|Line Numbers
  1. Dim cn1 As New OleDbConnection
  2.             Dim cm1 As New OleDbCommand
  3.             Dim da1 As New OleDbDataAdapter
  4.             Dim strConnectionString = ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & link)
  5.             cn1 = New OleDb.OleDbConnection(strConnectionString)
  6.             cn1.Open()
  7.             cm1.CommandText = "Select * from data"
  8.             cm1.Connection = cn1
  9.             da1.SelectCommand = cm1
  10.             da1.Fill(ds, "data")
  11.             Me.DataGridView1.DataSource = ds.Tables("data")
  12.             cn.Close()
link is openfile dialog and when i select a database of ms access, it get error of 'unrecognize database'
Apr 21 '10 #3
semomaniz
210 Recognized Expert New Member
you need to revise line 4. There is not datasource provided.
Apr 22 '10 #4
semomaniz
210 Recognized Expert New Member
Also there are various ways of creating charts. Here is the link

http://lmgtfy.com/?q=charts+with+vb.net
Apr 22 '10 #5
Frinavale
9,735 Recognized Expert Moderator Expert
What does the variable "link" contain on line 4?
Apr 30 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
8467
by: Soksophay Lim | last post by:
I have created an asp page that pulls data from SQL server and displays on webpage in the form of Table and Chart. I use OWC to generate Chart. It work find on my computer with Ms office 2000...
6
6541
by: Tarek | last post by:
hi, May I want to know ASP or Javascript can generate a chart (pie chart) ? or other method can do that? I feel appreciate that anyone can help me ! ^^' -- Regards, Tarek ^^'
2
3390
by: mrwoopey | last post by:
Hi, I have a web based OLAP cube (based on the SQL 2000 resource kit version) and I need to know how to display it in a chart (web based). I know that there are 3rd party tools but I need a...
3
1806
by: sam | last post by:
I just wonder where could I find sample of ASP.Net Graph / Chart (Line, Bar, Pie) beside microsoft.com? How hard to coding ASP.Net Chart? Or better to do at MS SQL Server 2000 Reporting...
3
11625
by: Scott H | last post by:
Hello, I'm trying it use the Microsoft Office Chart control 11.0 in VB.net (for a windows forms project) and can't seem to get it to work, I've been playing around with various snippets of code....
2
2081
by: Doudou | last post by:
Hello, I must draw charts in a VB.NET application, I would like to know what is the the best choice et differences between : - Microsoft Office Chart 9.0 (Library : Microsoft Office Web...
10
8173
by: Steve | last post by:
I am trying to create a DLL in Visual Studio 2005-Visual Basic that contains custom functions. I believe I need to use COM interop to allow VBA code in Excel 2002 to access it. I've studied...
7
9011
by: vbnetdev | last post by:
My boss wants this done in a day. I would be happy with a week! Anyway, I have a dataset filled with data and need to populate an MS word chart with it when writing a report. Any tutorials or...
5
1749
by: hayuti | last post by:
I am developing a small routine that exports data from an Access database to Excel and plots a chart. At this stage the routine successful exports the data to excel but I am having a problem with...
3
4690
by: The Frog | last post by:
Hi guys, I have never touched really on this area before with forms and reports, and now I would like to be able to incorporate some graphs / charts for a new little app I am building, and I...
0
7213
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
7098
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
7298
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
7366
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...
1
7017
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...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5610
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,...
0
3187
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...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.