Sign UpSign Up   Sign InSign In Welcome Guest,
Live Chat Live Chat

Object Reference not set to an instance - Init of Presentation Object

Last post 02-18-2011, 6:14 AM by aspose.notifier. 6 replies.
Sort Posts: Previous Next
  •  02-06-2010, 4:10 AM 221088

    Object Reference not set to an instance - Init of Presentation Object .NET

    Hi,

    I downloaded latest version of Aspose.Slides for .NET 4.1.0, I generated temp license and included in the code. While instantiating Presentation object with FileStream in constructor i get "Object Reference not set to an instance" error. 

    This is the code, its an windows forms application

     Dim fis As FileStream = New FileStream("test.ppt", FileMode.Open, FileAccess.Read)

     Dim license As Aspose.Slides.License = New Aspose.Slides.License()
     license.SetLicense("Aspose.Slides.lic")
     Dim objPres As New Presentation(fis) 'Throws error here

    I did go through this Post but nothing helped me.

    I'm using VS2008 with target framework 3.0

    Can you please let me know whats that i'm missing here? 

    Thanks,
    Raj

     
  •  02-06-2010, 4:02 PM 221107 in reply to 221088

    Re: Object Reference not set to an instance - Init of Presentation Object

    Hi Raj,

     

    Thanks for showing your keen interest in Aspose.Slides.

     

    I have tested the code snippet that you have shared and I am unable to reproduce the problem. Please share some more details about your project. However, please find below the correct procedure for instantiating a presentation object.  

     

            Dim fis As FileStream = New FileStream("C:\\Sample.ppt", FileMode.Open, FileAccess.Read)

            Dim license As Aspose.Slides.License = New Aspose.Slides.License()

            license.SetLicense("Aspose.Slides.lic")

        Dim objPres As Aspose.Slides.Presentation = New Aspose.Slides.Presentation(fis)

     

    Sorry for the inconvenience.

     


    Mudassir Fayyaz
    Support Developer
    Aspose Sialkot Team
    Contact Us
    Aspose - The .NET and Java Component Publisher

    Keep in touch! We're on Twitter and Facebook
     
  •  02-07-2010, 3:17 AM 221121 in reply to 221107

    Re: Object Reference not set to an instance - Init of Presentation Object .NET

    Hi Mudassir,

    Thanks for the reply.

    I thought there might be any size/slide restriction for trial version and deleted few slides from my test ppt file, then it worked, so i dig deep in and found out that once i delete the last slide (12th) it started working. Now i wanted to know if that slide (12th) had anything which Aspose had a problem parsing/loading, so I deleted all the slides keeping that single slide (12th) then again it worked. 

    Now its kinda confusing me. Can you please help me understand why this is happening?

    Thanks,
    Raj
     
  •  02-07-2010, 7:46 AM 221128 in reply to 221121

    Re: Object Reference not set to an instance - Init of Presentation Object

    Hi Raj,


    Thanks for showing your keen interest in Aspose.Slides.


    I have tested the problem specified by you and I am unable to reproduce the problem. Please share your code along with the presentation, so that I can investigate the issue.


    We are sorry for the inconvenience.



    Mudassir Fayyaz
    Support Developer
    Aspose Sialkot Team
    Contact Us
    Aspose - The .NET and Java Component Publisher

    Keep in touch! We're on Twitter and Facebook
     
  •  02-07-2010, 10:22 AM 221134 in reply to 221128

    Re: Object Reference not set to an instance - Init of Presentation Object .NET

    Attachment: Present (inaccessible)
    Hi Mudassir,

    Please find the source and ppt (downloaded from google) attached. I haven't attached the lic file, its a trial license. Please change the path accordingly in the source.

    Thanks,
    Raj
     
  •  02-07-2010, 12:21 PM 221136 in reply to 221134

    Re: Object Reference not set to an instance - Init of Presentation Object

    Hi Raj,

    Thanks for showing keen interest in Aspose.Slides.

    I have tested your code with the PPT file that you have sent. An issue with issue id 14185 has been created on our Issue Tracking System to fix the problem. This thread has been associated with this issue, so that you can be automatically notified as soon as this issue is resolved.

    We are sorry for the inconvenience.

     


    Mudassir Fayyaz
    Support Developer
    Aspose Sialkot Team
    Contact Us
    Aspose - The .NET and Java Component Publisher

    Keep in touch! We're on Twitter and Facebook
     
  •  02-18-2011, 6:14 AM 286558 in reply to 221088

    Re: Object Reference not set to an instance - Init of Presentation Object

    The issues you have found earlier (filed as 14185) have been fixed in this update.


    This message was posted using Notification2Forum from Downloads module by aspose.notifier.
     
View as RSS news feed in XML