Spire.OfficeViewer for .NET as a powerful Office Viewer component, is designed for developers to load Word, Excel, Presentation slides and PDF files and view them from Windows Forms Applications.

Fri Jul 17, 2020 9:00 pm

Hi,

I'm experiencing an exception on calling officeViewer1.LoadFromFile this only occurs with a certain PPT file (although there may be others) and the problem is resolved if the document is saved as a PPTX.

The exception stack trace ismof limited value:
Index was outside the bounds of the array at Spire.OfficeViewer.Forms.DocumentViewer.LoadFromFile(String fileName, FileType type, String password).

I have attached the document causing the issue.

Darren

wraydc
 
Posts: 130
Joined: Wed Apr 11, 2018 5:14 am

Mon Jul 20, 2020 7:29 am

Hi Darren,

Thanks for your post.
I tested you file with the latest Spire.Office Platinum(Hotfix) Version:5.7.3 but did not encounter any issue. Here I uploaded my test project, please run it directly and tell us your test results.
If the issue still occurs, please provide your testing environment information for further investigation, such as OS information (E.g. Windows 7, 64bit) and Region setting (E.g. China, Chinese).

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.OfficeViewer