HighTechTalks DotNet Forums  

copy paste Excel.chart

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss copy paste Excel.chart in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Pranesh Joshi
 
Posts: n/a

Default copy paste Excel.chart - 08-22-2007 , 02:32 PM






Hi,

I am using a .NET interface for excel (Microsoft.Office.Interop.Excel)
and creating a chart programatically. I wanted to copy on chart and
paste it over another chart. Here is what I am doing (but without
success):

// Copy the chart object to the clipboard
Clipboard.SetDataObject(sourceChartObject, false);
// Paste it in the destination chart.
destChartObject.Paste(Excel.XlPasteType.xlPasteAll );

note: sourceChartObject and destCharObject are
Microsoft.Office.Interop.Excel.Chart objects

Has anyone done this?

-Pranesh.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.