You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Sets DifferentFirstPage as true for inserting header and footer text.
10
+
section.PageSetup.DifferentFirstPage=true;
11
+
//Adds a paragraph to the section.
12
+
IWParagraphparagraph=section.AddParagraph();
13
+
stringparaText="AdventureWorks Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company.";
14
+
//Appends some text to the first page in document.
15
+
paragraph.AppendText("\r\r[ First Page ] \r\r"+paraText);
16
+
paragraph.ParagraphFormat.PageBreakAfter=true;
17
+
//Appends some text to the second page in document.
18
+
paragraph=section.AddParagraph();
19
+
//Appends some text to the second page in document.
20
+
paragraph.AppendText("\r\r[ Second Page ] \r\r"+paraText);
//Sets DifferentFirstPage as true for inserting header and footer text.
17
-
section.PageSetup.DifferentFirstPage=true;
18
-
//Adds a paragraph to the section.
19
-
IWParagraphparagraph=section.AddParagraph();
20
-
stringparaText="AdventureWorks Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company.";
21
-
//Appends some text to the first page in document.
22
-
paragraph.AppendText("\r\r[ First Page ] \r\r"+paraText);
23
-
paragraph.ParagraphFormat.PageBreakAfter=true;
24
-
//Appends some text to the second page in document.
25
-
paragraph=section.AddParagraph();
26
-
//Appends some text to the second page in document.
27
-
paragraph.AppendText("\r\r[ Second Page ] \r\r"+paraText);
0 commit comments