Hi,
Please help!
I am using Aspose.Slides version 2.8.0.0 to open a ppt file. And I am getting an exception.
Note that I have a fully-paid Aspose.Slides license. My license began 1/2008. So, it can't be a license problem.
I wrote a small sample code to reproduce the problem. Here is the exception when I run the code:
Aspose.Slides.PptReadException: Couldn't read "Current User" record. ---> System.IO.FileNotFoundException: no such entry: "Current User"
at ?.?.GetEntry(String name)
at ?.?.CreateDocumentInputStream(String documentName)
at Aspose.Slides.Presentation.?(? ?)
--- End of inner exception stack trace ---
at Aspose.Slides.Presentation.?(? ?)
at Aspose.Slides.Presentation..ctor(String file)
at ConsoleApplication1.Program.Main(String[] args) in C:\ConsoleApplication1\ConsoleApplication1\Program.cs:line 21
And Here is the code:
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Aspose.Slides;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
try
{
//Instantiate the License class
Aspose.Slides.License license = new Aspose.Slides.License();
//Pass only the name of the license file embedded in the assembly
license.SetLicense("Aspose.Slides.lic");
Presentation pres = new Presentation("POWERPNT.PPT");
}
catch(Exception e)
{
Console.WriteLine(e.ToString());
}
}
}
}
The zip file of the POWERPNT.PPT file is attached. You have to unzip it.