@@ -496,72 +496,17 @@ private static void GenerateCover(ref Body docBody)
496496 runProperties2 . Append ( kern2 ) ;
497497 runProperties2 . Append ( fontSize8 ) ;
498498 runProperties2 . Append ( fontSizeComplexScript3 ) ;
499- Text text1 = new Text ( ) ;
500- text1 . Text = "信息安全综合实践" ;
499+ Text text1 = new Text
500+ {
501+ Text = filename
502+ } ;
501503
502504 run2 . Append ( runProperties2 ) ;
503505 run2 . Append ( text1 ) ;
504506
505507 paragraph6 . Append ( paragraphProperties6 ) ;
506508 paragraph6 . Append ( run2 ) ;
507509
508- Paragraph paragraph7 = new Paragraph ( ) { RsidParagraphAddition = "003672AC" , RsidParagraphProperties = "003672AC" , RsidRunAdditionDefault = "003672AC" , ParagraphId = "4E0C5CC1" , TextId = "77777777" } ;
509-
510- ParagraphProperties paragraphProperties7 = new ParagraphProperties ( ) ;
511- Justification justification3 = new Justification ( ) { Val = JustificationValues . Center } ;
512-
513- ParagraphMarkRunProperties paragraphMarkRunProperties7 = new ParagraphMarkRunProperties ( ) ;
514- FontSize fontSize9 = new FontSize ( ) { Val = "24" } ;
515-
516- paragraphMarkRunProperties7 . Append ( fontSize9 ) ;
517-
518- paragraphProperties7 . Append ( justification3 ) ;
519- paragraphProperties7 . Append ( paragraphMarkRunProperties7 ) ;
520-
521- Run run3 = new Run ( ) ;
522-
523- RunProperties runProperties3 = new RunProperties ( ) ;
524- RunFonts runFonts4 = new RunFonts ( ) { Hint = FontTypeHintValues . EastAsia , Ascii = "黑体" , HighAnsi = "华文楷体" , EastAsia = "黑体" } ;
525- Kern kern3 = new Kern ( ) { Val = ( UInt32Value ) 0U } ;
526- FontSize fontSize10 = new FontSize ( ) { Val = "90" } ;
527- FontSizeComplexScript fontSizeComplexScript4 = new FontSizeComplexScript ( ) { Val = "90" } ;
528-
529- runProperties3 . Append ( runFonts4 ) ;
530- runProperties3 . Append ( kern3 ) ;
531- runProperties3 . Append ( fontSize10 ) ;
532- runProperties3 . Append ( fontSizeComplexScript4 ) ;
533- Text text2 = new Text ( ) ;
534- text2 . Text = "总结" ;
535-
536- run3 . Append ( runProperties3 ) ;
537- run3 . Append ( text2 ) ;
538- BookmarkStart bookmarkStart1 = new BookmarkStart ( ) { Name = "_GoBack" , Id = "0" } ;
539- BookmarkEnd bookmarkEnd1 = new BookmarkEnd ( ) { Id = "0" } ;
540-
541- Run run4 = new Run ( ) ;
542-
543- RunProperties runProperties4 = new RunProperties ( ) ;
544- RunFonts runFonts5 = new RunFonts ( ) { Hint = FontTypeHintValues . EastAsia , Ascii = "黑体" , HighAnsi = "华文楷体" , EastAsia = "黑体" } ;
545- Kern kern4 = new Kern ( ) { Val = ( UInt32Value ) 0U } ;
546- FontSize fontSize11 = new FontSize ( ) { Val = "90" } ;
547- FontSizeComplexScript fontSizeComplexScript5 = new FontSizeComplexScript ( ) { Val = "90" } ;
548-
549- runProperties4 . Append ( runFonts5 ) ;
550- runProperties4 . Append ( kern4 ) ;
551- runProperties4 . Append ( fontSize11 ) ;
552- runProperties4 . Append ( fontSizeComplexScript5 ) ;
553- Text text3 = new Text ( ) ;
554- text3 . Text = "报告" ;
555-
556- run4 . Append ( runProperties4 ) ;
557- run4 . Append ( text3 ) ;
558-
559- paragraph7 . Append ( paragraphProperties7 ) ;
560- paragraph7 . Append ( run3 ) ;
561- paragraph7 . Append ( bookmarkStart1 ) ;
562- paragraph7 . Append ( bookmarkEnd1 ) ;
563- paragraph7 . Append ( run4 ) ;
564-
565510 Paragraph paragraph8 = new Paragraph ( ) { RsidParagraphAddition = "003672AC" , RsidParagraphProperties = "003672AC" , RsidRunAdditionDefault = "003672AC" , ParagraphId = "4B4F29EF" , TextId = "77777777" } ;
566511
567512 ParagraphProperties paragraphProperties8 = new ParagraphProperties ( ) ;
@@ -1455,8 +1400,10 @@ private static void GenerateCover(ref Body docBody)
14551400 runProperties20 . Append ( runFonts32 ) ;
14561401 runProperties20 . Append ( fontSize46 ) ;
14571402 runProperties20 . Append ( fontSizeComplexScript32 ) ;
1458- Text text19 = new Text ( ) ;
1459- text19 . Text = "2019年7月" ;
1403+ Text text19 = new Text
1404+ {
1405+ Text = DateTime . Now . ToString ( "yyyy年MM月" )
1406+ } ;
14601407
14611408 run20 . Append ( runProperties20 ) ;
14621409 run20 . Append ( text19 ) ;
@@ -1470,7 +1417,6 @@ private static void GenerateCover(ref Body docBody)
14701417 docBody . Append ( paragraph4 ) ;
14711418 docBody . Append ( paragraph5 ) ;
14721419 docBody . Append ( paragraph6 ) ;
1473- docBody . Append ( paragraph7 ) ;
14741420 docBody . Append ( paragraph8 ) ;
14751421 docBody . Append ( paragraph9 ) ;
14761422 docBody . Append ( paragraph10 ) ;
0 commit comments