我想用C#做個簡歷導出的類似功能,但是導出word格式時存在問題,請大神指教,最好有完整前後台代碼 最好簡單點
XWPFParagraph p0 = doc.CreateParagraph();
p0.SetAlignment(ParagraphAlignment.LEFT);
XWPFRun r0 = p0.CreateRun();
r0.SetFontFamily("宋體");
r0.SetFontSize(18);
r0.SetBold(true);
r0.SetText("未登錄過學生的賬號密碼");
XWPFParagraph p1 = doc.CreateParagraph();
p1.SetAlignment(ParagraphAlignment.LEFT);
XWPFRun r1 = p1.CreateRun();
r1.SetFontFamily("宋體");
r1.SetFontSize(10);
r1.SetBold(true);
r1.SetText("(備注:已登錄過的學生密碼不顯示)");
XWPFParagraph p2 = doc.CreateParagraph();
p2.SetAlignment(ParagraphAlignment.LEFT);
XWPFRun r2 = p2.CreateRun();
r2.SetFontFamily("宋體");
r2.SetFontSize(10);
r2.SetBold(true);
r2.SetText("學校:XX一中");
XWPFParagraph p3 = doc.CreateParagraph();
p3.SetAlignment(ParagraphAlignment.LEFT);
XWPFRun r3 = p3.CreateRun();
r3.SetFontFamily("宋體");
r3.SetFontSize(10);
r3.SetBold(true);
r3.SetText("班級:(7)");
XWPFParagraph p4 = doc.CreateParagraph();
p4.SetAlignment(ParagraphAlignment.LEFT);
XWPFRun r4 = p4.CreateRun();
r4.SetFontFamily("宋體");
r4.SetFontSize(10);
r4.SetBold(true);
r4.SetText("班主任:ddd");
XWPFParagraph p5 = doc.CreateParagraph();
p5.SetAlignment(ParagraphAlignment.LEFT);
XWPFRun r5 = p5.CreateRun();
r5.SetFontFamily("宋體");
r5.SetFontSize(10);
r5.SetBold(true);
r5.SetText("可以在此處添加備注:");