PC Review


Reply
Thread Tools Rate Thread

ChartWizard difference between Excel 2003 and 2007

 
 
kevin-rf
Guest
Posts: n/a
 
      26th Nov 2008
Hello

I have a some automation code written in mfc c++ that creates a chart in an
excel sheet that I create that works fine in excel 2003, but not in excel
2007. It generates an exception.

Error Codes :

tCode = 80070057
Code meaning = The parameter is incorrect
tSource = S
tDescription = This object has no title.

Piece of C++ code :

RangePtr pBrHRange = pBRSheet->Range["Q10:S34"][vtMissing];
_ChartPtr pBrHChart = pBook->Charts->Add();

pBrHChart->ChartWizard((Range*) pBrHRange, (long) xl3DColumn, vtMissing,
(long) xlColumns, 1, 1, 0, "Bright Field Size Chart", "Cell Size (microns)",
"Number of Cells" );

pBrHChart->Name = "Bright Field Size Chart";

The exception is blows on pBrHChart->ChartWizard() with excel 2007, but runs
fine and correctly creates the chart with Excel 2003. If I change
pBRSheet->Range["Q10:S34"][vtMissing]; to
pBRSheet->Range["Q10:R34"][vtMissing]; it works fine, but does not display
the correct chart.

Sample Data in the Q,R,S columns
2.05 2 0
2.37 0 0
2.70 6 0
3.03 0 0
3.36 0 0
3.68 91 0
4.01 0 0
4.34 0 0
4.66 0 1
4.99 0 0
5.32 3 3
5.65 3 0
5.97 0 0
6.30 1 0
6.63 0 0
6.96 0 0
7.28 0 0
7.61 0 0
7.94 1 0
8.26 0 0
8.59 0 0
8.92 0 0
9.25 0 0
9.57 0 0
9.90 0 1

Any clues to what has changed and how to work arround it would be
appreciated. Thanks.

Kevin
 
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
Chart No Show by Using ChartWizard - 2007 Excel, C# Peter Microsoft Excel Programming 2 13th Jan 2009 03:21 PM
Need urgent help with VBA 2007 CHARTWIZARD method !!! rAJU_sR Microsoft Excel Programming 2 24th Jun 2008 05:54 AM
Chart difference between Excel 2003 and Excel 2007 Mike Microsoft Excel Programming 1 25th Apr 2008 11:36 PM
difference in macro recording from 2003 to 2007 excel killing me. chunt@vvsii.com Microsoft Excel Discussion 2 17th Mar 2008 08:13 PM
2007: Chartwizard bugs =?Utf-8?B?TXJU?= Microsoft Excel Programming 3 11th Jan 2007 09:38 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:06 AM.