المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Problem with ChartArea.Select method



C# Programming
03-28-2009, 10:20 PM
Following line of code works fine with Vista/Excel 2007 but gives exception with XP SP2/ Excel 2003.

Here oChartArea is Excel ChartArea object. I am trying to select the chart drawn and then copy it to clipboard.

oChartArea.GetType().InvokeMember("Select", BindingFlags.InvokeMethod, null, oChartArea, null);

Any suggestions?

?? ????