none
Archive file cannot be size 0 RRS feed

  • Question

  • Hello I try this msdn article: http://msdn.microsoft.com/en-us/library/cc850834.aspx
    But I have this error, why?

    can you help me?

    thanks in advance.

    Server Error in '/' Application.

    Archive file cannot be size 0.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.IO.FileFormatException: Archive file cannot be size 0.

    Source Error:

    Line 77:     {
    Line 78:         string FilePPT = @"D:\Inetpub\wwwroot\public\temp.ppt";
    Line 79:         using (PresentationDocument presentationDocument = PresentationDocument.Open(FilePPTDaSalvare, true))
    Line 80:         {
    Line 81:             InsertNewSlide(FilePPT, 1, "My new slide");
    
    

    • Edited by cms9651 Tuesday, February 14, 2012 11:18 AM
    Tuesday, February 14, 2012 10:57 AM

Answers

All replies

  • Hi cms9651,

    Thanks for posting in the MSDN Forum.

    I suppose the PowerPoint file does not exist on your server machine's hard disk. And you didn't show the variable "FilePPDaSalvare". Would you please show it to me for further research?

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us

    Thursday, February 16, 2012 7:50 AM
    Moderator
  • Hi Tom.

    Thanks for your answer, the problem is solved with reinstall OpenXml SDK products.

    Cheers

    Friday, February 17, 2012 4:43 PM