G
Guest
Hello,
I have an embedded excel sheet in which I need to refresh the image for (via
C# and Interop - dont ask). I am finding if I select the shape, activate the
Excel and then unselect the active selection, I end up with a skewed image
for the excel:
_pptApp.ActiveWindow.View.GotoSlide(s.SlideIndex);
//select the shape
shape.Select(MsoTriState.msoFalse);
//activate the embedded sheet - refreshes the image for excel
shape.OLEFormat.Activate();
//deselect the excel and image is updated
_pptApp.ActiveWindow.Selection.Unselect();
I am wondering how I can fix this. I find if I open the powerpoint
afterwards manually, activate the Excel, slightly scale it, and then
deactivate, I get an image with no skewing. I dont know how to do this via
code though.
I have an embedded excel sheet in which I need to refresh the image for (via
C# and Interop - dont ask). I am finding if I select the shape, activate the
Excel and then unselect the active selection, I end up with a skewed image
for the excel:
_pptApp.ActiveWindow.View.GotoSlide(s.SlideIndex);
//select the shape
shape.Select(MsoTriState.msoFalse);
//activate the embedded sheet - refreshes the image for excel
shape.OLEFormat.Activate();
//deselect the excel and image is updated
_pptApp.ActiveWindow.Selection.Unselect();
I am wondering how I can fix this. I find if I open the powerpoint
afterwards manually, activate the Excel, slightly scale it, and then
deactivate, I get an image with no skewing. I dont know how to do this via
code though.