![]() ![]() ![]() Heading3 ) //Adds the text into the paragraph. AppendText ( "Third Chapter" ) //Sets a built-in heading style paragraph. AddParagraph () //Adds the text into the headings paragraph. AddSection () //Adds the paragraph into the created section paragraph = section. AppendText ( paraText ) //Adds the section into the Word document section = document. Heading2 ) //Adds the text into the paragraph section. AppendText ( "Second Chapter" ) //Sets a built-in heading style. AddParagraph () //Adds the text for the headings paragraph. Heading1 ) //Adds the text into the paragraph section. AppendText ( "First Chapter" ) //Sets a built-in heading style. AppendTOC ( 1, 3 ) //Adds the section into the Word document section = document. AddParagraph () //Appends the TOC field with LowerHeadingLevel and UpperHeadingLevel to determines the TOC entries paragraph. AddSection () string paraText = "AdventureWorks Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company." //Adds the paragraph into the created section IWParagraph paragraph = section. Creates a new Word document WordDocument document = new WordDocument () //Adds the section into the Word document IWSection section = document. UpdateTableOfContents () //Saves the Word document to MemoryStream MemoryStream stream = new MemoryStream () document. AppendText ( paraText ) //Updates the table of contents document. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |