Exception while exporting Pptx to XPS - Aspose.Slides for .Net 5.5.0.0

Last post 09-15-2011, 2:33 AM by tahir.manzoor. 5 replies.
Sort Posts: Previous Next
  •  09-13-2011, 6:09 AM 328949

    Exception while exporting Pptx to XPS - Aspose.Slides for .Net 5.5.0.0 .NET

    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."



     
  •  09-13-2011, 9:38 AM 329015 in reply to 328949

    Re: Exception while exporting Pptx to XPS - Aspose.Slides for .Net 5.5.0.0

    Attachment: Present (inaccessible)
    Hi Manir,

    Thanks for your interest in Aspose.Slides.

    It will be really very nice, If you can share your presentation file for investigation purpose. Please use the attached PPTX file and check this PPTX file with your code and let me know If you face any exception with this PPTX file.

    Best Regards,
    Tahir Manzoor
    Support Developer, Aspose Sialkot Team
    http://www.aspose.com
    Your File Format Experts
    Keep in touch! We're on Twitter and Facebook
     
  •  09-13-2011, 11:12 PM 329135 in reply to 329015

    Re: Exception while exporting Pptx to XPS - Aspose.Slides for .Net 5.5.0.0

    Attachment: Present (inaccessible)
    Hello Taher,
     Thanks for your quick reply. I have tried with your attached sample PPTX, and yes Aspose can converr it to xps, without any error.
     Please check the attachment PPTX, and Aspose gets the Exception.
     
  •  09-14-2011, 1:30 PM 329399 in reply to 329135

    Re: Exception while exporting Pptx to XPS - Aspose.Slides for .Net 5.5.0.0

    Hi Manir,

    I have tested the scenario and I am able to reproduce the same problem. For the sake of correction, I have logged it in our issue tracking system as SLIDESNET-30611. Our team will look into this issue and you will be updated via this forum thread once it is resolved.

    We apologize for your inconvenience.



    Best Regards,
    Tahir Manzoor
    Support Developer, Aspose Sialkot Team
    http://www.aspose.com
    Your File Format Experts
    Keep in touch! We're on Twitter and Facebook
     
  •  09-15-2011, 2:18 AM 329505 in reply to 329399

    Re: Exception while exporting Pptx to XPS - Aspose.Slides for .Net 5.5.0.0

    Hello Tahir,
     Thanks for your concern, and waiting for the fix of this problem.

    Maniruzzaman.

     
  •  09-15-2011, 2:33 AM 329509 in reply to 329505

    Re: Exception while exporting Pptx to XPS - Aspose.Slides for .Net 5.5.0.0

    Hi Manir,

    You will be updated via this forum thread once this issue is resolved. Thanks for your patience.


    Best Regards,
    Tahir Manzoor
    Support Developer, Aspose Sialkot Team
    http://www.aspose.com
    Your File Format Experts
    Keep in touch! We're on Twitter and Facebook
     
View as RSS news feed in XML