header info throws exception

Last post 02-09-2009, 10:18 PM by alcrus. 4 replies.
Sort Posts: Previous Next
  •  02-03-2009, 2:39 PM 163228

    header info throws exception

    I just updated my aspose.slides. now my program throws an exception opening a new instance.  It complains that it is expecting a header that is a specific number, and not the header that is another number. "Invalid header signature; read 1688935826934608, expected 16220472316735377360" is the exact verbage. It was running before I updated. but the code looks like

    Aspose.Slides.Presentation slide = new Aspose.Slides.Presentation ("C:\temp\mySlide.ppt")


    This message was posted using Page2Forum from Aspose.Slides for .NET and Java - Documentation
     
  •  02-03-2009, 11:01 PM 163268 in reply to 163228

    Re: header info throws exception

    Hello,

    Such exception usually thrown if you try to open not a PPT file. May be PPTX.
    Please check it. In case file is real ppt presentation then please attach it here for testing.

    Alexey Zhilin
    Team Leader
    Aspose Tyumen Team
    About Us
    Contact Us
     
  •  02-04-2009, 11:16 AM 163448 in reply to 163268

    Re: header info throws exception

    Attachment: Present (inaccessible)

    I actually tried both .ppt and .pptx and both threw the same exception and message:

    "Invalid header signature; read 1688935826934608, expected 16220472316735377360"

    I need to be able to open both. I've attached the .ppt file.

     
  •  02-04-2009, 12:25 PM 163463 in reply to 163268

    Re: header info throws exception

    Turns out the ppt file that I was trying to open has a header missing (bad file). Otherwise everything works fine with .ppt files.  My problem was opening .pptx files as you suggested.  Therefore, if I instantiate an Aspose.Slides.Pptx.PresentationEx object, I do not find the same header properties available like Author, Title, and CreateTime, as when I instantiate an Aspose.Slides.Presentation object.  Any suggestions?
     
  •  02-09-2009, 10:18 PM 164267 in reply to 163463

    Re: header info throws exception

    Hello,

    You can use PresentationEx object only for reading presentations in pptx format. Unfortunately properties you mentioned are not implemented in the current version of Aspose.Slides. We are going to release several new pptx features in this months and presentation properties like Author, Subject, Keywords and etc. also will be available.

    Alexey Zhilin
    Team Leader
    Aspose Tyumen Team
    About Us
    Contact Us
     
View as RSS news feed in XML