Problem with Powerpoint and C#

B

bog.imp

Hi All.
I have problem with Shape.Export function
he return me Exception

Error HRESULT E_FAIL has been returned from a call to a COM component.

but if i open with my program other powerpoint windows with same ppt
file - func work good

Can u help me with that.
 
B

bog.imp

System.Runtime.InteropServices.COMException was unhandled
Message="Error HRESULT E_FAIL has been returned from a call to a COM
component."
Source="Interop.PowerPoint"
ErrorCode=-2147467259
StackTrace:
at PowerPoint.ShapeRange.Export(String PathName, PpShapeFormat
Filter, Int32 ScaleWidth, Int32 ScaleHeight, PpExportMode ExportMode)
 
M

msnews.microsoft.com

Have you tried catching the COMException and checking the Message property
or are you just catching the Exception?
 

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