update 20260412
This commit is contained in:
@@ -1167,6 +1167,7 @@ namespace DOCGEN.Klassen
|
||||
MemoryStream ms = new MemoryStream(Helper.EncodeExtensions.DecodeBase642ByteArray(base64));
|
||||
WordDocument document = new WordDocument(ms, FormatType.Automatic);
|
||||
CompatibilityMode compatibilityMode = document.Settings.CompatibilityMode;
|
||||
|
||||
set_compatibilitymode(ref document, docdata.CompatibilityMode);
|
||||
Logging.Logging.Debug(compatibilityMode.ToString(), "ondoc sf", docdata.Dokumentid);
|
||||
//switch (compatibilityMode)
|
||||
@@ -1436,6 +1437,10 @@ namespace DOCGEN.Klassen
|
||||
|
||||
if (dv.FieldName.ToString() != "")
|
||||
{
|
||||
if (dv.FieldName.Contains("unterschrift"))
|
||||
{
|
||||
int a = 1;
|
||||
}
|
||||
if (dv.FieldName.ToString().Substring(0, 2) == "$$")
|
||||
{
|
||||
Replace_Text(ref document, dv.FieldName.ToString(), dv.Value.ToString());
|
||||
@@ -1736,7 +1741,7 @@ namespace DOCGEN.Klassen
|
||||
|
||||
}
|
||||
catch { }
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
@@ -1753,7 +1758,7 @@ namespace DOCGEN.Klassen
|
||||
}
|
||||
catch { }
|
||||
|
||||
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
@@ -1883,12 +1888,12 @@ namespace DOCGEN.Klassen
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//document.UpdateDocumentFields();
|
||||
//document.UpdateAlternateChunks();
|
||||
|
||||
|
||||
|
||||
|
||||
MemoryStream destms = new MemoryStream();
|
||||
if (formattype_original.ToString().ToUpper() == "DOTMXXX")
|
||||
@@ -1900,7 +1905,7 @@ namespace DOCGEN.Klassen
|
||||
{
|
||||
document.Save(destms, formattype_original);
|
||||
}
|
||||
|
||||
|
||||
document.Close();
|
||||
document.Dispose();
|
||||
byte[] imageArray = destms.ToArray();
|
||||
|
||||
Reference in New Issue
Block a user