Author Message

Posted: Fri Mar 01, 2013 6:05 am   Post subject: Unhandled exception while opening presentation?

PresentationConverter converter = new PresentationConverter();
converter.LicenseName = "xx";
converter.LicenseNumber = "xx";
// converter.ActivateLicense();

try
{
converter.OpenPresentation("C:\\Users\\jiri\\Desktop\\website-修改.pptx");
converter.Presentation.Title = "PowerPoint 演示文稿";
// converter.Presentation.Width = 720;
// converter.Presentation.Height = 442;
converter.GenerateSolidPresentation("C:\\Users\\jiri\\Desktop\\website-修改.swf", "", "");
converter.Presentation.Close();
}
catch (Exception )
{
// Unhandled exception while opening presentation
PrintMessage(("Error: " + converter.LastErrorDescription));
}
}

private static void PrintMessage(String message)
{
Console.Out.WriteLine(message);
}


Profile profile test

Posted: Fri Mar 01, 2013 9:05 am   Post subject: Re: Unhandled exception while opening presentation?

Are you experiencing any issues with this "catch (Exception)" piece of code?


Profile profile test
Display posts from previous:  Sort by  

  


Who is online
Who is online In total there are 7 users online :: 2 registered, 0 hidden and 5 guests (based on users active over the past 5 minutes)
Most users ever online was 108 on Thu Nov 21, 2013 3:41 pm

Registered users: Bing [Bot], Yahoo [Bot]