locked
whar is the advantage of generate PowerPoint file using openxml library RRS feed

  • Question

  • I heard that if we use openxml with c# to generate PowerPoint or excel file then we can run our program in pc where ms office is not install. Is it true?

    i heard that if we use interop library to generate ppt or excel file using c# then pc must have ns office intstall be fore run the program. Is it true?

    What is the advantage of openxml library usage from c#
    Please guide me.

    Monday, February 13, 2017 6:54 PM

Answers

  • Hi Mou_kolkata,

    (1) I heard that if we use openxml with c# to generate PowerPoint or excel file then we can run our program in pc where ms office is not install. Is it true?

    -> yes it's true.

    (2) i heard that if we use interop library to generate ppt or excel file using c# then pc must have ns office intstall be fore run the program. Is it true?

    -> yes it's true.

    Advantages of the XML Formats

    • Files are more compact. In most cases, if you compare the size of an Office file saved in the binary format, with the same file saved in the equivalent Open XML format, the XML-formatted file will be smaller. This is largely because of the compression applied to the Open XML files. However, files that contain a large number of graphics may not be smaller, because the graphics cannot be further compressed by the zip algorithm.
    • Easier corrupted file recovery.
    • Easier to locate and parse content.
    • Files can be opened and edited with any XML editor.
    • Files containing macros are easier to identify.
    • it is useful when you try to automate Office files on server side, because on server side office interop give some errors on certain condition and situation but open XML works without any issue.

    it is same for all office applications.

    you can refer the links below to get more information.

    Benefits of the Microsoft Office Open XML File Formats

    Creating Documents by Using the Open XML Format SDK Version 2.0 CTP (Part 1 of 3)

    Open XML SDK 2.0 for Microsoft Office

    Seven Key Benefits of Open XML

    Regards

    Deepak


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, February 14, 2017 1:34 AM