update 20260420
This commit is contained in:
1 parent
c60ba71f9d
commit
9629f247f9
81 files changed
+289
-138
No files matched your search
@@ -524,7 +524,7 @@ namespace DOCGEN.Klassen
|
||||
//Insert table next to that paragraph
|
||||
// paragraph.OwnerTextBody.ChildEntities.RemoveAt(index+1);
|
||||
paragraph.OwnerTextBody.ChildEntities.Insert(index + 1, table);
|
||||
|
||||
|
||||
return table;
|
||||
|
||||
}
|
||||
@@ -633,13 +633,17 @@ namespace DOCGEN.Klassen
|
||||
{
|
||||
for (int j = 0; j < dt.Columns.Count; j++)
|
||||
{
|
||||
string celltext = dt.Rows[i][dt.Columns[j]].ToString();
|
||||
celltext = celltext.Replace(" lautend auf ", " lautend auf"+Environment.NewLine);
|
||||
|
||||
if (fonts == "0")
|
||||
{
|
||||
table[i, j].AddParagraph().AppendText(dt.Rows[i][dt.Columns[j]].ToString());
|
||||
table[i, j].AddParagraph().AppendText(celltext);
|
||||
}
|
||||
else
|
||||
{
|
||||
IWTextRange textRange = table[i, j].AddParagraph().AppendText(dt.Rows[i][dt.Columns[j]].ToString());
|
||||
IWTextRange textRange = table[i, j].AddParagraph().AppendText(celltext);
|
||||
|
||||
textRange.CharacterFormat.FontSize = Convert.ToInt32(fonts);
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user