Object reference not set to an instance of an object.

Last post 09-01-2009, 2:41 AM by aschmid. 5 replies.
Sort Posts: Previous Next
  •  08-26-2009, 2:33 AM 195074

    Object reference not set to an instance of an object. .NET

    This is my second attemp to solve this problem. Please help.

    A customer uf us, using

    Aspose.Total for .NET
    Developer OEM Subscription


    still has this problem...

    Original Post

    Kind regards

    A. Schmid
     
  •  08-27-2009, 8:04 AM 195349 in reply to 195074

    Re: Object reference not set to an instance of an object.

    Hi A.Schmid,

    Please try to read the ppt without converting to pdf.

    Muhammad Sabir
    Support Assistant Manager
    Aspose Sialkot Team
    http://www.aspose.com
    Aspose - Your File Format Experts

    Keep in touch! We're on Twitter and Facebook
     
  •  08-27-2009, 10:12 AM 195391 in reply to 195349

    Re: Object reference not set to an instance of an object. .NET

    Hi Muhammed,

    Can you please be more specific with your answer? If possible, I'd appreciate if you can provide a code snippet clarifying the problem and possible solution.

    I have the same problem and i get the error all the time at the time of 2nd conversion of a ppt to pdf, not the 1st execution.

    Is conversion process changing anything in source documents?

    here is the part i get the error: (outlined in red below)

    ------------------------------------------------------------

    for (int i = 0; i < byteArrays.Length; i++)

    {

    System.IO.MemoryStream inputStream;

    XmlStream = new MemoryStream();

    pdfStream = new MemoryStream();

    byte[] byteArray = byteArrays[i];

    inputStream = new MemoryStream(byteArray);

    Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();

    switch (extensions[i])

    {

    case "ppt":

    presentation = new Presentation(inputStream);

    presentation.SaveToPdf(pdfStream);

    break;

    ........

    }

    ------------------------------------------------------------

    Thanks,

    zieglers

     
  •  08-27-2009, 10:29 AM 195402 in reply to 195391

    Re: Object reference not set to an instance of an object.

    Hello,

    Please use latest Aspose.Slides for .NET 3.1.1.7 version available for download here. It doesn't throw such exception anymore with provided presentation.

    Alexey Zhilin
    Team Leader
    Aspose Tyumen Team
    About Us
    Contact Us
     
  •  08-27-2009, 11:29 AM 195416 in reply to 195402

    Re: Object reference not set to an instance of an object.

    Thanks for your quick reply. It works now!

    Cheers,

    zieglers

     
  •  09-01-2009, 2:41 AM 195996 in reply to 195402

    Re: Object reference not set to an instance of an object.

    Dear Alexey,

    I tested it and it works great. Thank you very much for your help.

    Greetings

     
View as RSS news feed in XML