update 20260420
This commit is contained in:
@@ -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