Hi,
We are intended to purchase Aspose.Slides 5.5.0.0
for .Net ( framework version 4.0). But while analyzing the evaluation
version, we came across this issue
while exporting PPTX to XPS. We have
attached the sample code and the issue that occurred.
/***************************************************/
string FileFilter = "Presentation(*.pptx)|*.pptx|All Files (*.*)|*.*";
var openFileDialog = new OpenFileDialog
{
Filter = FileFilter, FilterIndex = 1, Multiselect = false
};
var userClickedOK = openFileDialog.ShowDialog();
var useStream = new MemoryStream();
var xpsStream = new MemoryStream();
using (Stream fileStream = openFileDialog.File.OpenRead())
{
fileStream.CopyTo(useStream);
useStream.Position = 0;
}
var presentationEx = new Aspose.Slides.Pptx.PresentationEx(useStream);
Aspose.Slides.Export.XpsOptions opts = new Aspose.Slides.Export.XpsOptions();
opts.SaveMetafilesAsPng = true;
presentationEx.Save(xpsStream, Aspose.Slides.Export.SaveFormat.Xps,opts);
/***************************************************/
and here we get exception "Object reference not set to an instance of an object."