当前位置: 首页>>代码示例>>C#>>正文


C# WordprocessingDocument.Dispose方法代码示例

本文整理汇总了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();
        }
开发者ID:evgeniyosipov,项目名称:finanparser,代码行数:101,代码来源:DocxCreator.cs


注:本文中的WordprocessingDocument.Dispose方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。