Article ID: 286277 - Last Review: August 23, 2005 - Revision: 2.2 HOWTO: Use the Office XP Chart Component to Create Static Charts with ASPThis article was previously published under Q286277 SUMMARY In order to render a static chart (a picture of a chart) on
a Web page using server-side code with the Office XP Chart component, you must
first export the picture to a file on the Web server or on a share. The Office
XP Chart component has a new method, GetPicture, that enables you to directly stream the picture as binary data
using the Active Server Pages (ASP) Response object without the need to create a file. This article
demonstrates how you can use the Office XP Chart component and its GetPicture method to create static charts with server-side code.
MORE INFORMATION The following sample illustrates how you can create a
static chart to render in a browser. The chart is built from data using the
Northwind sample database, and then rendered in the browser in the Graphics
Interchange Format (GIF) image format. Sample
Additional NotesThe following table lists the graphics filters that you can use with the GetPicture method and the corresponding ContentType for the ASP Response object: Graphics Filter ContentType (or MIME Type) --------------- -------------------------- gif image/gif jpeg or jpg image/jpeg png image/png REFERENCES For more information about the Office 2002 Chart component,
see the following Microsoft Support Web site: http://support.microsoft.com/ofd
(http://support.microsoft.com/ofd)
For additional information
about a Microsoft Visual Basic .NET version of this article, click the
following article number to view the article in the Microsoft Knowledge Base: 303016
(http://support.microsoft.com/kb/303016/
)
HOW TO: Use a DataSet with the
Office XP Chart Component and ASP.NET
For additional information on creating
server-side charts using the Office 2000 Chart component, click the following
article numbers to view the articles in the Microsoft Knowledge Base: 244049
(http://support.microsoft.com/kb/244049/
)
HOWTO: Use Server-Side Charting to
Generate Charts Dynamically
264096
(http://support.microsoft.com/kb/264096/
)
FILE:
ChartGIF.exe Demonstrates Streaming an Office Web Chart GIF to the
Browser
286278
(http://support.microsoft.com/kb/286278/
)
HOWTO:
Create an Interactive Office Chart Server-Side Using ASP
(c) Microsoft Corporation 2001, All Rights
Reserved. Contributions by Lori B. Turner, Microsoft Corporation.APPLIES TO
| Article Translations
|

Back to the top
