473,657 Members | 2,283 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 1917
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
8474
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 installed, but when I upload my the page to my webserver, it doesn't work with the following error message: 006~ASP 0177~Server.CreateObject Failed~Invalid ProgID. For additional information specific to this message please visit the Microsoft Online...
6
6547
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
3399
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 cheaper way to do this. Please post any code or links. You help is greatly appreciated! Thanks,
3
1808
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 Service? Please help.
3
11630
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. below is what I've got at the moment, I'm trying to feed in literal numbers. I placed a chart control on the form and called it ChartSpace1 and adjusted a couple of settings to get it roughly as I want it, then ran this code:
2
2089
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 Components 9.0) - Microsoft Chart Control 6.0. (SP4) (OLEDB) (Library : Microsoft Chart
10
8195
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 everything I can find on COM Interop and .NET. I've also tried many of the 'Walkthroughs' on the MSDN site relating to COM add-ins, .NET and Office XP but am unable to get even these working in Excel 2002 or Word 2002. I've installed the Office XP...
7
9027
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 suggestions would be great. Sample data at http://www.kjmsolutions.com/sample.txt
5
1752
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 the chart plotting part. Even though the code for generating the plot is fine, the routine does not like some chart required parameters such as .Axes(xlCategory, xlPrimary) .ChartType=xlXYScatter and the like. I need to plot a scattered...
3
4697
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 need some guidance. Can someone point me in the right direction? 1/ What is the difference between MS Chart and MS Graph? 2/ Which is better to work with for Access 97?
0
8411
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
8323
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
8838
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
8739
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...
1
8513
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
4173
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...
1
2740
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1732
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.