Ejemplo n.º 1
0
            public Table GetContent(DocumentCore docx, bool details)
            {
                Table table = new Table(docx);

                table.TableFormat.PreferredWidth = new TableWidth(100, TableWidthUnit.Percentage);

                table.Rows.Add(GetTitleAndDate(docx));

                TableCell cell = new TableCell(docx)
                {
                    ColumnSpan = 2
                };

                cell.Blocks.Add(Template.CreateParagraph(docx, Ult.GetOgr(Organization, Location), Template.FormatOganization));

                if (Topic != null)
                {
                    cell.Blocks.Add(Template.CreateParagraph(docx, Topic, Template.FormatNormal));
                }

                if (details)
                {
                    if (Description.Count > 0)
                    {
                        foreach (String item in Description)
                        {
                            cell.Blocks.Add(Template.CreateList(docx, item, Template.FormatNormal));
                        }
                    }
                }
                table.Rows.Add(new TableRow(docx, cell));


                return(table);
            }
Ejemplo n.º 2
0
            public Table GetContent(DocumentCore docx)
            {
                Table table = new Table(docx);

                table.TableFormat.PreferredWidth = new TableWidth(100, TableWidthUnit.Percentage);

                table.Rows.Add(GetTitleAndDate(docx));

                TableCell cell = new TableCell(docx)
                {
                    ColumnSpan = 2
                };

                cell.Blocks.Add(Template.CreateParagraph(docx, Ult.GetOgr(Organization, Location), Template.FormatOganization));

                if (Major != null)
                {
                    cell.Blocks.Add(Template.CreateParagraph(docx, Major, Template.FormatNormal));
                }
                table.Rows.Add(new TableRow(docx, cell));


                return(table);
            }