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?
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?