Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Problem in using Chart.ApplyCustomType for Excel 2007

Hi,

I have been using following code :-



_Chart chart = chartobject.GetChart();


if(3 == m_numAxis)

{

CString strTemp = _T("Lines on 2 Axes"); // code for creating Lines on the
2 vertical axes of the chart

VARIANT var;

var.vt = VT_BSTR;

var.bstrVal = strTemp.AllocSysString();

chart.ApplyCustomType(21, var);

VariantClear(&var);

}

else

chart.SetChartType(74);



It is working properly if Office 2003 is installed but for Excel 2007,
ApplyCustomType throws an COleDispatch exception.



I searched for it on the msdn and also on the net but could not find any sol.





Could you provide me the links where I can get much information for chart
object and its functions.



Thanks in advance for providing an early solution.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Problem in using Chart.ApplyCustomType for Excel 2007

I have been waiting for reply for last 4 days, but it is disgusting to see
there is not even a single reply by anyone.

Is there nobody who can help me ?


"Sumit" wrote:

Hi,

I have been using following code :-



_Chart chart = chartobject.GetChart();


if(3 == m_numAxis)

{

CString strTemp = _T("Lines on 2 Axes"); // code for creating Lines on the
2 vertical axes of the chart

VARIANT var;

var.vt = VT_BSTR;

var.bstrVal = strTemp.AllocSysString();

chart.ApplyCustomType(21, var);

VariantClear(&var);

}

else

chart.SetChartType(74);



It is working properly if Office 2003 is installed but for Excel 2007,
ApplyCustomType throws an COleDispatch exception.



I searched for it on the msdn and also on the net but could not find any sol.





Could you provide me the links where I can get much information for chart
object and its functions.



Thanks in advance for providing an early solution.


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
excel 2007 11 x 17 chart printing problem Operationsman Charts and Charting in Excel 0 May 20th 10 05:41 PM
Problem copying Chart and Data from Excel 2007 Garyc Excel Discussion (Misc queries) 0 November 21st 08 08:38 AM
ApplyCustomType in Excel 2007 faltamir Excel Discussion (Misc queries) 0 November 29th 07 03:52 PM
2007 Excel Chart Problem YokohamaGaijin Excel Discussion (Misc queries) 0 June 7th 06 02:56 AM
Calling ApplyCustomType for Excel 2002 in C# SJ[_5_] Excel Programming 1 December 12th 03 01:10 AM


All times are GMT +1. The time now is 04:26 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"