From 2d6ac833dc1919d24ff9bdd23cc05a218e28a61e Mon Sep 17 00:00:00 2001 From: Savorboard Date: Tue, 6 Dec 2016 12:57:32 +0800 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d09b78b..0c27805 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ NPOI Core is a .NET Core version of the NPOI. #### Export Excel -``` +```csharp var newFile = @"newbook.core.xlsx"; @@ -56,7 +56,7 @@ using (var fs = new FileStream(newFile, FileMode.Create, FileAccess.Write)) { #### Export Word -``` +```csharp var newFile2 = @"newbook.core.docx"; using (var fs = new FileStream(newFile2, FileMode.Create, FileAccess.Write)) { XWPFDocument doc = new XWPFDocument(); @@ -72,7 +72,7 @@ using (var fs = new FileStream(newFile2, FileMode.Create, FileAccess.Write)) { p1.Alignment = ParagraphAlignment.LEFT; p1.IndentationFirstLine = 500; XWPFRun r1 = p1.CreateRun(); - r1.FontFamily = "·ÂËÎ"; + r1.FontFamily = "·ÂËÎ"; r1.FontSize = 12; r1.IsBold = true; r1.SetText("This is content, content content content content content content content content content"); @@ -80,4 +80,4 @@ using (var fs = new FileStream(newFile2, FileMode.Create, FileAccess.Write)) { doc.Write(fs); } -``` \ No newline at end of file +```