Introduction to OpenXMLSDK2.0

Source: Internet
Author: User
Let's go straight to the topic! : Www. microsoft. comdownloadsdetails. aspx? FamilyIdC6E744E5-36E9-45F5-8D8C-331DF206E0D0 official forum: social. msdn. microsoft. comForumsen-USoxmlsdkthreads Other resources: msdn. microsoft. comen-uslibrar

Let's go straight to the topic! : Http://www.microsoft.com/downloads/details.aspx? FamilyId = C6E744E5-36E9-45F5-8D8C-331DF206E0D0 official forum: http://social.msdn.microsoft.com/Forums/en-US/oxmlsdk/threads Other resources: http://msdn.microsoft.com/en-us/librar

Let's go straight to the topic!

: Http://www.microsoft.com/downloads/details.aspx? FamilyId = C6E744E5-36E9-45F5-8D8C-331DF206E0D0

Official Forum: http://social.msdn.microsoft.com/Forums/en-US/oxmlsdk/threads

Other resources: http://msdn.microsoft.com/en-us/library/aa338205.aspx#office2007aboutnewfileformat_introduction

Download and install it. Press enter for the moment and default

Create a project and add reference

1, WindowBase,

2, C: \ Program Files \ Open XML Format SDK \ V2.0 \ lib \ DocumentFormat. OpenXml. dll

I think there are few articles in the garden because its documents are too full.

Note: The Office2007 system uses a brand new XML format for storage, and is then stored as a file using a compression algorithm. Therefore, similar to docx, files such as xlsx can be directly changed to rar, zip, and decompressed.

See how to generate a file

Open the Help file and find How to: Create a Package.

For advanced applications, if you want to write a file in a more complex format, you can manually create a document and use the tool that comes with it to directly view the XML structure and code!

The following two images

We can see that the structure is left, the XML code is on the top right, and the C # code is on the bottom right! What's your question?

The tool is located at: C: \ Program Files \ Open XML Format SDK \ V2.0 \ tools \ DocumentReflector.exe by default.

Try it now ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.