[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 280
  • Last Modified:

Word Pie Chart from VB

I am needing to create a Pie Chart in a word document from a VB application using dynamic data can
anybody point me to a website with a good Example of how to do this
0
cdthurman
Asked:
cdthurman
  • 2
1 Solution
 
Dang123Commented:
cdthurman,
    These may help

Inserting an Excel chart into a Word document
http://searchvb.techtarget.com/tip/1,289483,sid8_gci956282,00.html

HOW TO: Automate Word from Visual Basic .NET to Create a New Document
http://support.microsoft.com/kb/316383/EN-US/

Dang123
0
 
cdthurmanAuthor Commented:
Ok Most of that is working for me if you could help me with one thing I want to be able to set the Category (x) axis labels to certain values I have figured out how to do this manually whis is:
Right click on the chart
Go to Source Data
Then the Series Tab
Then  Category (x) axis labels
and just enter the values you want but what I need to know is how to do this from code

Thank you again
0
 
Dang123Commented:
cdthurman,
    You should be able to get the code by recording a macro while you set the Category (x) axis labels manually. The code of the macro is VBA, so you should be able to see what you need to do in VB.

    Im glad the links were helpful, thanks for the A.

Dang123
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now