本文整理汇总了C#中WordprocessingDocument.Dispose方法的典型用法代码示例。如果您正苦于以下问题:C# WordprocessingDocument.Dispose方法的具体用法?C# WordprocessingDocument.Dispose怎么用?C# WordprocessingDocument.Dispose使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WordprocessingDocument
的用法示例。
在下文中一共展示了WordprocessingDocument.Dispose方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Create
//.........这里部分代码省略.........
break;
case 9:
tr.Append(new TableCell(new Paragraph(new Run(new Text("Коэффициент финансовой независимости")))));
break;
case 10:
tr.Append(new TableCell(new Paragraph(new Run(new Text(calculator.VzvesheniyItogKoeficientaFinNezavisimosti.ToString())))));
break;
case 11:
tr.Append(new TableCell(new Paragraph(new Run(new Text(calculator.ItogKoeficientaFinNezavisimosti.ToString())))));
break;
case 12:
tr.Append(new TableCell(new Paragraph(new Run(new Text("0,2")))));
break;
case 13:
tr.Append(new TableCell(new Paragraph(new Run(new Text("Чистые активы")))));
break;
case 14:
tr.Append(new TableCell(new Paragraph(new Run(new Text(calculator.VzvesheniyItogChistihActivov.ToString())))));
break;
case 15:
tr.Append(new TableCell(new Paragraph(new Run(new Text(calculator.ItogChistihActivov.ToString())))));
break;
case 16:
tr.Append(new TableCell(new Paragraph(new Run(new Text("0,2")))));
break;
case 17:
tr.Append(new TableCell(new Paragraph(new Run(new Text("Рентабельность продаж")))));
break;
case 18:
tr.Append(new TableCell(new Paragraph(new Run(new Text(calculator.VzvesheniyItogRentabelnostiProdag.ToString())))));
break;
case 19:
tr.Append(new TableCell(new Paragraph(new Run(new Text(calculator.ItogRentabelnostiProdag.ToString())))));
break;
case 20:
tr.Append(new TableCell(new Paragraph(new Run(new Text("0,05")))));
break;
case 21:
tr.Append(new TableCell(new Paragraph(new Run(new Text("Рентабельность деятельности")))));
break;
case 22:
tr.Append(new TableCell(new Paragraph(new Run(new Text(calculator.VzvesheniyItogRentabelnostiDeyatelnosti.ToString())))));
break;
case 23:
tr.Append(new TableCell(new Paragraph(new Run(new Text(calculator.ItogRentabelnostiDeyatelnosti.ToString())))));
break;
case 24:
tr.Append(new TableCell(new Paragraph(new Run(new Text("0,15")))));
break;
case 25:
tr.Append(new TableCell(new Paragraph(new Run(new Text("Коэффициент оборачиваемости (динамика)")))));
break;
case 26:
tr.Append(new TableCell(new Paragraph(new Run(new Text()))));
break;
case 27:
tr.Append(new TableCell(new Paragraph(new Run(new Text()))));
break;
case 28:
tr.Append(new TableCell(new Paragraph(new Run(new Text("0,1")))));
break;
case 29:
tr.Append(new TableCell(new Paragraph(new Run(new Text("Итого: ")))));
break;
case 30:
tr.Append(new TableCell(new Paragraph(new Run(new Text()))));
break;
case 31:
tr.Append(new TableCell(new Paragraph(new Run(new Text()))));
break;
case 32:
tr.Append(new TableCell(new Paragraph(new Run(new Text()))));
break;
case 33:
tr.Append(new TableCell(new Paragraph(new Run(new Text("Оценка финансового положения заемщика")))));
break;
case 34:
tc = new TableCell(new Paragraph(new Run(
new Text(""))));
tcp = new TableCellProperties();
gridSpan = new GridSpan();
gridSpan.Val = 3;
tcp.Append(gridSpan);
tc.Append(tcp);
tr.Append(tc);
break;
}
tmpInt++;
}
table.Append(tr);
}
// Добавления таблицы к основе
body.Append(table);
// Добавление основы к документу
mainPart.Document.Append(body);
// Сохрание изменений главной части документа
mainPart.Document.Save();
myDoc.Dispose();
}