Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default XML generating excel charts

Hi,

I have an ASP webapplication that exports a dataset to an excel workbook via
XML.
My question is if it would be possible to write XML-code that automatically
draws charts in Excel based on the data exported.

Let's say I have one DataTable with 2 columns. Then I want to export the raw
data to sheet1 in excel while sheet2 plots the data from sheet1 only using
the supplied XML code.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default XML generating excel charts


What you want to do is to put the data into a workbook that has a
template with a chart already setup and posibly has a macro already
built into the workbook.

XML data is really ascii (text) data not a workbook, but excel reads
the file and automatically creates a workbook. The problem is the XML
is text and can't contain charts and other Excel objects.


The solution is to create a template with the chart and a macro that
will read XML data . You don't even need a macro you could just
manually read the XML data into a workbook and place the data at a fixed
location. The only issue is if the data is alway the same size or will
vary in size. fixed size datta is very easy to handle in this method.
If the data size varies then you have to adjust the range of the chart.


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=183459

Microsoft Office Help

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Programmatically Generating Excel Line Charts using C# andriy155 Excel Programming 1 August 2nd 07 08:34 PM
Generating dynamic charts based on the user input shivan4u Charts and Charting in Excel 4 February 13th 06 12:43 PM
Generating Statistics with Excel bracket Excel Discussion (Misc queries) 2 September 26th 05 05:58 PM
Generating Charts in Excel Trippen Excel Discussion (Misc queries) 0 September 7th 05 11:38 PM
generating an excel graph with C++ george Excel Programming 1 January 4th 05 10:19 PM


All times are GMT +1. The time now is 09:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"