update vor Syncfusion-Aktualisierung

This commit is contained in:
Stefan Hutter
2024-09-17 10:20:00 +02:00
parent 3d8d977a04
commit cb21f39e6b
63 changed files with 3660 additions and 196569 deletions

View File

@@ -29,6 +29,7 @@ using System.Buffers.Text;
using Syncfusion.XlsIO.Implementation.TemplateMarkers;
using System.Drawing.Printing;
using Syncfusion.XlsIO;
using System.Security.Permissions;
@@ -196,7 +197,7 @@ namespace DOCGEN.Klassen
if (docdata.PrintLogo == true)
{
insert_Logo(document, docdata);
}
}
//document.UpdateDocumentFields();
//document.UpdateAlternateChunks();
@@ -676,6 +677,15 @@ namespace DOCGEN.Klassen
}
catch { }
}
public bool FindText(string base64, string searchstring)
{
MemoryStream ms = new MemoryStream(Helper.EncodeExtensions.DecodeBase642ByteArray(base64));
WordDocument document = new WordDocument(ms, FormatType.Automatic);
TextSelection textSelection = document.Find(searchstring, false, true);
document = null;
ms = null;
if (textSelection != null) { return true; } else return false;
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.