Hi,
if I try to process attached file using latest ASPOSE Slides for C#, I get unhandled exception:
System.Exception occurred
HResult=0x80131500
Message=Couldn’t read [ , Header:RecordHeader, Type:0xFF5 [RT_UserEditAtom], Version:0, Instance:0, Length:0x0]
Source=Aspose.Slides
StackTrace:
at Aspose.Slides. .(BinaryReader , , )
at Aspose.Slides. .(MemoryStream , Int64 , )
at Aspose.Slides. .( )
at Aspose.Slides.Presentation.( )
at Aspose.Slides.Presentation.(Stream )
at Aspose.Slides.Presentation.(String )
at Aspose.Slides.Presentation…ctor(String file)
at ExcelAutomation.Form1.button5_Click(Object sender, EventArgs e) in C:\Code\Custom\ExcelAutomation\ExcelAutomation\Form1.cs:line 174
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at ExcelAutomation.Program.Main() in C:\Code\Custom\ExcelAutomation\ExcelAutomation\Program.cs:line 19
Inner Exception 1:
PptReadException: Wrong size of UserEditAtom.
This seems to be caused by fact that the file when opened in PowerPoint reports to be opened in “Protected View”. Is this
something which can be handled? Either allow file to be processed or return some more meaningful message?All_Master_Slides.zip (4.5 KB)