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
Copy file name to clipboardExpand all lines: Read-and-Save-document/Open-and-save-Word-document/AWS-S3-Bucket/Open-Word-document/Open-Word-document/Controllers/HomeController.cs
+15-17Lines changed: 15 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,3 @@
1
-
usingAmazon.Runtime;
2
1
usingAmazon.S3;
3
2
usingMicrosoft.AspNetCore.Mvc;
4
3
usingOpen_Word_document.Models;
@@ -22,43 +21,43 @@ public IActionResult Index()
22
21
}
23
22
publicasyncTask<IActionResult>EditDocument()
24
23
{
25
-
//Your AWS Storage Account bucket name
24
+
//Your AWS Storage Account bucket name
26
25
stringbucketName="your-bucket-name";
27
26
28
-
//Name of the Word file you want to load from AWS S3
27
+
//Name of the Word file you want to load from AWS S3
IWTextRangetextRange=paragraph.AppendText("In 2000, AdventureWorks Cycles bought a small manufacturing plant, Importadores Neptuno, located in Mexico. Importadores Neptuno manufactures several critical subcomponents for the AdventureWorks Cycles product line. These subcomponents are shipped to the Bothell location for final product assembly. In 2001, Importadores Neptuno, became the sole manufacturer and distributor of the touring bicycle product group.")asIWTextRange;
Copy file name to clipboardExpand all lines: Read-and-Save-document/Open-and-save-Word-document/AWS-S3-Bucket/Save-Word-document/Save-Word-document/Controllers/HomeController.cs
textRange=paragraph.AppendText("Adventure Works Cycles")asWTextRange;
80
84
textRange.CharacterFormat.FontSize=18f;
81
85
textRange.CharacterFormat.FontName="Calibri";
82
86
83
-
//Appends paragraph.
87
+
//Appends paragraph
84
88
paragraph=section.AddParagraph();
85
89
paragraph.ParagraphFormat.FirstLineIndent=36;
86
90
paragraph.BreakCharacterFormat.FontSize=12f;
87
91
textRange=paragraph.AppendText("Adventure Works Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company. The company manufactures and sells metal and composite bicycles to North American, European and Asian commercial markets. While its base operation is in Bothell, Washington with 290 employees, several regional sales teams are located throughout their market base.")asWTextRange;
88
92
textRange.CharacterFormat.FontSize=12f;
89
93
90
-
//Appends paragraph.
94
+
//Appends paragraph
91
95
paragraph=section.AddParagraph();
92
96
paragraph.ParagraphFormat.FirstLineIndent=36;
93
97
paragraph.BreakCharacterFormat.FontSize=12f;
@@ -101,16 +105,18 @@ public async Task<IActionResult> CreateDocument()
Copy file name to clipboardExpand all lines: Read-and-Save-document/Open-and-save-Word-document/AWS-S3-Bucket/Save-Word-document/Save-Word-document/Views/Home/Index.cshtml
0 commit comments