CopyPicture, C#

S

Sean

I'm trying to use CopyPicture in C# to copy a range (which contains a chart)
from Excel to Powerpoint. The copy bit is as follows:

myWorksheet.get_Range(myRange,mdlGlobalConstants.oMissing).CopyPicture(Excel.XlPictureAppearance.xlScreen,Excel.XlCopyPictureFormat.xlPicture);

It kind of works, however it pastes into Powerpoint with slightly more
height than if the copy is done manually, but with the same width! This
causes a problem when I try to fit the chart into the presentation because if
I change the height I'm obviously squashing the picture so it looks poor.

Is there a better way to do this type of copy?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top