Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9152067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:57:12+00:00 2026-06-17T11:57:12+00:00

I am trying to come up with an estimate for a project that involves

  • 0

I am trying to come up with an estimate for a project that involves creating automated PowerPoint reports based on a Microsoft Access database. It’s an extension of a project I already did for the client, with the major difference being that he wants two charts (based on data in the database) included in the new reports.

If I were doing this on *nix I would just pipe the data into gnuplot, save an image, and put the image into the PowerPoint programmatically. Is there any way to easily package gnuplot into a Visual Studio project so that the client doesn’t have to do any other kind of installations?

If not, or that would be more trouble than it’s worth, I’d appreciate any ideas of other ways to do this. Would using native PowerPoint charts be reasonable — i.e. is the data that they’re based on easily accessible programmatically?

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:57:13+00:00Added an answer on June 17, 2026 at 11:57 am

    There are a couple ways of going about it using just what’s normally installed as part of MS Office. Which you choose will depend to some extent on which version of Office you’re writing for.

    Given that most customers have very specific requirements for charts that don’t match up with the default charts supplied by Excel/PPT et al, you either need to insert a chart then do all the formatting under program control or, my preference, store pre-formatted specimen charts in a separate PPT/PPTX file or files. You can open this invisibly, copy/paste the chart into the current slide(s) as needed, then programatically modify the data.

    One of the big advantages to this is that you (or the client if you choose to let them in on the trick) can change the formatting quickly and easily, w/o needing to change a line of code.

    And circling back to your original question, the data in native PPT charts is easily accessible. A quick VBA example:

    Sub FiddleTheChartData()
    
    Dim oSh As Shape
    Dim oCht As Chart
    Dim oChtData As ChartData
    Dim x As Long
    
    ' For purposes of example, assume that we've got a chart in PPT
    ' and that it's selected:
    Set oSh = ActiveWindow.Selection.ShapeRange(1)
    ' We could as easily pass a reference to the shape to this routine as a param
    
    ' Sanity test; if it's not a chart, bug out
    If Not oSh.HasChart Then
        Exit Sub
    Else
        Set oCht = oSh.Chart
        Set oChtData = oCht.ChartData
    End If
    
    With oChtData
        .Activate
        .Workbook.Worksheets("Sheet1").Cells(3, 3) = 42
    End With
    
    ' This leaves the workbook open in Excel, so:
    oChtData.Workbook.Close
    
    ' Might want to iterate through the Workbook.Parent's worksheets and
    ' if there are more than one, decide whether or not to close them and dismiss
    ' Excel or not
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to come up with an algorithm that will do the following: If
I'm trying to come up with a good naming convention for boolean variables that
I'm trying to come up with a way combine two arrays that have different
I am trying to come up with a Reg Ex that finds the numbers
I'm trying to come up with an answer to two questions that didn't seem
I'm trying to come up with the largest possible group of friends that would
I'm trying to estimate a twitter user's location based on the time_zone or created_at
I'm trying to come up with a table that displays the total number of
I'm trying to come up with a regex that will match anything that is
Currently trying to come up with a best practice for a ZF site that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.