PC Review


Reply
Thread Tools Rate Thread

Chart No Show by Using ChartWizard - 2007 Excel, C#

 
 
Peter
Guest
Posts: n/a
 
      12th Jan 2009
Hi folks,
I use the following C# code, trying to create a chart by using
ChartWizard method in 2007 Excel environment. The code is listed below:

myChart.ChartWizard (rng, Excel.Constants.xl3DBar,
Type.Missing, Excel.XlRowCol.xlColumns, 2, 2, false,
mySheet.Name,
Type.Missing,
Type.Missing, Type.Missing);

But I can not see the chart after the execution. Please advise. Thanks.
Peter Kao
 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      13th Jan 2009
Looks like all the parameters are in the right places. I have never used
this method, and can't comment specifically about the C# implementation.

The Excel 2003 VBA documentation states:

"Modifies the properties of the given chart."

This indicates to me that the method is for modifying a chart, not creating
a new chart.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
_______


"Peter" <(E-Mail Removed)> wrote in message
news:5890CA68-ED6F-4A3F-AD1D-(E-Mail Removed)...
> Hi folks,
> I use the following C# code, trying to create a chart by using
> ChartWizard method in 2007 Excel environment. The code is listed below:
>
> myChart.ChartWizard (rng, Excel.Constants.xl3DBar,
> Type.Missing, Excel.XlRowCol.xlColumns, 2, 2, false,
> mySheet.Name,
> Type.Missing,
> Type.Missing, Type.Missing);
>
> But I can not see the chart after the execution. Please advise.
> Thanks.
> Peter Kao



 
Reply With Quote
 
Peter
Guest
Posts: n/a
 
      13th Jan 2009
Thanks Jon,
The document is right, method ChartWizard is to configure a chart
after a chart object is added into its chart collection, and finally activate
it. It works.
Peter Kao

"Jon Peltier" wrote:

> Looks like all the parameters are in the right places. I have never used
> this method, and can't comment specifically about the C# implementation.
>
> The Excel 2003 VBA documentation states:
>
> "Modifies the properties of the given chart."
>
> This indicates to me that the method is for modifying a chart, not creating
> a new chart.
>
> - Jon
> -------
> Jon Peltier, Microsoft Excel MVP
> Peltier Technical Services, Inc.
> http://PeltierTech.com/WordPress/
> _______
>
>
> "Peter" <(E-Mail Removed)> wrote in message
> news:5890CA68-ED6F-4A3F-AD1D-(E-Mail Removed)...
> > Hi folks,
> > I use the following C# code, trying to create a chart by using
> > ChartWizard method in 2007 Excel environment. The code is listed below:
> >
> > myChart.ChartWizard (rng, Excel.Constants.xl3DBar,
> > Type.Missing, Excel.XlRowCol.xlColumns, 2, 2, false,
> > mySheet.Name,
> > Type.Missing,
> > Type.Missing, Type.Missing);
> >
> > But I can not see the chart after the execution. Please advise.
> > Thanks.
> > Peter Kao

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Implement and show pivot chart filtering in excel 2007 as in 2003 Tore Microsoft Excel Programming 0 18th Sep 2009 12:54 PM
How to show filter settings in Pivottable chart in Excel 2007? dNd BdN Microsoft Excel Charting 2 18th Sep 2009 08:16 AM
ChartWizard difference between Excel 2003 and 2007 kevin-rf Microsoft Excel Programming 0 26th Nov 2008 08:11 PM
Show Excel 2007 Chart in SharePoint V3 =?Utf-8?B?am9obiBtY21pY2hhZWw=?= Microsoft Excel Misc 1 25th Oct 2007 08:09 PM
chart.ChartWizard always failed in excel2k7 =?Utf-8?B?QnVkZGhpc3RbQ0hpbkFd?= Microsoft Excel Charting 0 16th Nov 2006 02:00 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:36 PM.