update vor Syncfusion-Aktualisierung
This commit is contained in:
@@ -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.
Binary file not shown.
Reference in New Issue
Block a user