RE: MS Word Chart filled with data - URGENT PLEASE
- From: v-phuang@xxxxxxxxxxxxxxxxxxxx ("Peter Huang" [MSFT])
- Date: Thu, 05 Oct 2006 05:56:07 GMT
Hi,
Here I understand that you means the Chart that using Word Menu,
Insert/Picture/Chart.
So I think you may try to transfer the DataSet to a Excel Workbook and then
import the excel file into the Chart.
Here is a VBA macro for your reference, but it is easy to run the similar
code in VB.NET.
Sub Macro1()
Dim oChart As Graph.Chart 'Add reference to Graph Object library
Set oChart =
Selection.InlineShapes.AddOLEObject(ClassType:="MSGraph.Chart.8",
LinkToFile:=False, DisplayAsIcon:=False).OLEFormat.Object
oChart.Application.FileImport "C:\temp\TestABC.xls"
End Sub
How to automate Word from Visual Basic .NET to create a new document
http://support.microsoft.com/default.aspx?scid=kb;[LN];316383
How to automate Microsoft Word to perform a mail merge from Visual Basic
NET
http://support.microsoft.com/default.aspx?scid=kb;[LN];302816
How to automate Microsoft Word to perform a mail merge from Visual Basic
NET
http://support.microsoft.com/default.aspx?scid=kb;[LN];301656
Here is a link about how to transfer data into Excel Workbook in VB.NET.
How to transfer data to an Excel workbook by using Visual Basic .NET
http://support.microsoft.com/default.aspx?scid=kb;[LN];306022
You may have a try and let me know the result.
If I misunderstood or you have any conern on this issue, please feel free
to let me know and I am glad to be of assistance.
Best regards,
Peter Huang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- Re: MS Word Chart filled with data - URGENT PLEASE
- From: vbnetdev
- Re: MS Word Chart filled with data - URGENT PLEASE
- From: vbnetdev
- Re: MS Word Chart filled with data - URGENT PLEASE
- References:
- MS Word Chart filled with data - URGENT PLEASE
- From: vbnetdev
- MS Word Chart filled with data - URGENT PLEASE
- Prev by Date: Re: VB6 --> VB 2005 upgrade ...IDE now VERY slow!!!
- Next by Date: Re: MS Word Chart filled with data - URGENT PLEASE
- Previous by thread: MS Word Chart filled with data - URGENT PLEASE
- Next by thread: Re: MS Word Chart filled with data - URGENT PLEASE
- Index(es):
Relevant Pages
|
Loading