Home > Net >  The younger brother for help two c # technology
The younger brother for help two c # technology

Time:11-28

1, how to deposit, read binary file
2, how to call Microsoft officeAPI, docx format of the document is generated by read data, and adjust the header, the text format
Sincerely for help, the person is in shenyang,
Ever want to teach the younger brother of the predecessors, please add me WeChat limingyindongshi,

CodePudding user response:

The first question, use the File. ReadAllBytes () WriteAllBytes ()
You can also use the FileStream. Read Write
Second question, the reference office library, use and vba,

CodePudding user response:

1, the file writeallbytes, file. Readallbytes; Filestream etc.
2, using NPOI office operation more convenient, under his baidu: NPOI c #

CodePudding user response:

 
Var data=https://bbs.csdn.net/topics/System.IO.File.ReadAllBytes (" path ");


Third-party tools the word's usually use aspose. Words.

XLS nopi.

CodePudding user response:

Thank you all!

CodePudding user response:

Can find a third-party controls operate word, Doc, for example, the commercial version of the Aspose, the former can be found in making it

CodePudding user response:

DocX,

CodePudding user response:

refer to the second floor of autumn red fruit response:
1, the file. The writeallbytes, file. Readallbytes; Filestream etc.
2, using NPOI office operation more convenient, under his baidu: NPOI c #

Journaling file systems can also be a third party
  •  Tags:  
  • C#
  • Related