|
@@ -30,7 +30,7 @@ public static class JsonToWordHelper
|
|
|
builder.ParagraphFormat.ClearFormatting();
|
|
builder.ParagraphFormat.ClearFormatting();
|
|
|
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;
|
|
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;
|
|
|
builder.Font.Bold = true;
|
|
builder.Font.Bold = true;
|
|
|
- builder.Font.Size = 16;
|
|
|
|
|
|
|
+ builder.Font.Size = 24;
|
|
|
builder.Writeln(model.Title ?? string.Empty);
|
|
builder.Writeln(model.Title ?? string.Empty);
|
|
|
|
|
|
|
|
builder.InsertParagraph();
|
|
builder.InsertParagraph();
|
|
@@ -186,7 +186,7 @@ public static class JsonToWordHelper
|
|
|
|
|
|
|
|
private static void SetDefaultFont(DocumentBuilder builder)
|
|
private static void SetDefaultFont(DocumentBuilder builder)
|
|
|
{
|
|
{
|
|
|
- builder.Font.Name = "宋体";
|
|
|
|
|
|
|
+ builder.Font.Name = "仿宋_GB2312";
|
|
|
builder.Font.Size = 12;
|
|
builder.Font.Size = 12;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|