Update 20260717

This commit is contained in:
Stefan Hutter
2026-07-17 14:43:33 +02:00
parent 58cd45116c
commit ebc8101626
1004 changed files with 1174234 additions and 84840 deletions
+56 -4
View File
@@ -13,6 +13,7 @@ using Syncfusion.Calculate;
using Syncfusion.DocIO;
using Syncfusion.DocIO.DLS;
using Syncfusion.DocToPDFConverter;
using Syncfusion.Drawing;
using Syncfusion.Pdf;
using Syncfusion.Windows.Forms.Chart;
using Syncfusion.Windows.Forms.Chart.SvgBase;
@@ -30,6 +31,7 @@ using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Drawing2D;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.Drawing.Printing;
using System.IO;
@@ -38,6 +40,7 @@ using System.Linq.Expressions;
using System.Management.Instrumentation;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Remoting.Messaging;
@@ -49,7 +52,6 @@ using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Xml.Linq;
using static System.Net.Mime.MediaTypeNames;
using System.Drawing.Drawing2D;
@@ -2202,6 +2204,7 @@ namespace DOCGEN.Klassen
public string style = "";
public string fontname = "";
public string fontsize = "";
public string ColJustinfy = "";
public List<string> rows;
@@ -2237,8 +2240,10 @@ namespace DOCGEN.Klassen
tt.colwidth = tableparam[1];
tt.padding = tableparam[2];
tt.TableName = tableno.ToString();
tt.fontname = tableparam[3];
tt.fontsize = tableparam[4];
try { tt.fontname = tableparam[3]; } catch { }
try { tt.fontsize = tableparam[4]; } catch { }
try { tt.ColJustinfy = tableparam[5]; } catch { }
string[] rows = tabledetail[0].Split(new string[] { "<row>" }, StringSplitOptions.None);
int i1 = 0;
foreach (string row in rows)
@@ -2703,6 +2708,7 @@ namespace DOCGEN.Klassen
List<string> cellpadding = null;
List<string> headers = null;
List<string> stringList = null;
List<string> coljustify = null;
string fontname = "";
string fontsize = "";
string s = "";
@@ -2712,6 +2718,8 @@ namespace DOCGEN.Klassen
cellpadding = tt.padding.Split(';').ToList();
try { fontname = tt.fontname; } catch { fontname = ""; }
try { fontsize = tt.fontsize; } catch { fontsize = ""; }
try { coljustify = tt.ColJustinfy.Split(';').ToList(); if (coljustify[0].ToString() == "") { coljustify = null; } } catch { coljustify = null; }
AddBookmarkToText(document, "{table" + tt.TableName + "}", "BM" + tt.TableName);
@@ -2755,6 +2763,28 @@ namespace DOCGEN.Klassen
if (fontsize == "" && fontname == "")
{
table[i, j].AddParagraph().AppendText(col.Replace("</col>", "").Replace("<col>", ""));
if (coljustify != null)
{
switch (coljustify[j])
{
case "L":
table[i, j].Paragraphs[0].ParagraphFormat.HorizontalAlignment = Syncfusion.DocIO.DLS.HorizontalAlignment.Left;
break;
case "C":
table[i, j].Paragraphs[0].ParagraphFormat.HorizontalAlignment = Syncfusion.DocIO.DLS.HorizontalAlignment.Center;
break;
case "R":
table[i, j].Paragraphs[0].ParagraphFormat.HorizontalAlignment = Syncfusion.DocIO.DLS.HorizontalAlignment.Right;
break;
default:
break;
}
}
//table[i, j].AddParagraph().AppendText(col.Replace("</col>", "").Replace("<col>", ""));
}
else
{
@@ -2764,7 +2794,28 @@ namespace DOCGEN.Klassen
textRange.CharacterFormat.FontName = fontname;
}
textRange.CharacterFormat.FontSize = Convert.ToInt32(fontsize);
if (coljustify != null)
{
switch (coljustify[j])
{
case "L":
table[i, j].Paragraphs[0].ParagraphFormat.HorizontalAlignment = Syncfusion.DocIO.DLS.HorizontalAlignment.Left;
break;
case "C":
table[i, j].Paragraphs[0].ParagraphFormat.HorizontalAlignment = Syncfusion.DocIO.DLS.HorizontalAlignment.Center;
break;
case "R":
table[i, j].Paragraphs[0].ParagraphFormat.HorizontalAlignment = Syncfusion.DocIO.DLS.HorizontalAlignment.Right;
break;
default:
break;
}
}
}
{
WTableCell cell = table.Rows[i].Cells[j];
@@ -2780,7 +2831,8 @@ namespace DOCGEN.Klassen
cell.CellFormat.Paddings.Right = Convert.ToInt32(cellpadding[1]); //in terms of points
cell.CellFormat.Paddings.Top = Convert.ToInt32(cellpadding[2]); //in terms of points
cell.CellFormat.Paddings.Bottom = Convert.ToInt32(cellpadding[3]); //in terms of points
}
}
catch { }
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.
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.
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.