Update 20240909
This commit is contained in:
@@ -70,6 +70,9 @@
|
||||
<Reference Include="Syncfusion.Pdf.Base, Version=26.2462.8.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Syncfusion.Pdf.WinForms.26.2.8\lib\net462\Syncfusion.Pdf.Base.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Syncfusion.Presentation.Base, Version=26.2462.8.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Syncfusion.Presentation.WinForms.26.2.8\lib\net462\Syncfusion.Presentation.Base.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Syncfusion.XlsIO.Base, Version=26.2462.8.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Syncfusion.XlsIO.WinForms.26.2.8\lib\net462\Syncfusion.XlsIO.Base.dll</HintPath>
|
||||
</Reference>
|
||||
@@ -107,6 +110,7 @@
|
||||
<Compile Include="clsDocGet.cs" />
|
||||
<Compile Include="Klassen\DocGenerator_from_EDOKA.cs" />
|
||||
<Compile Include="Klassen\SyncFPDF.cs" />
|
||||
<Compile Include="Klassen\SyncFPowerPoint.cs" />
|
||||
<Compile Include="Klassen\SyndFExcel.cs" />
|
||||
<Compile Include="Klassen\SynFWord.cs" />
|
||||
<Compile Include="Print.cs" />
|
||||
|
||||
@@ -21,9 +21,19 @@ namespace DOCGEN.Generator
|
||||
public string DokumentID;
|
||||
public string tempdir;
|
||||
private static readonly NLog.Logger Logger = NLog.LogManager.GetCurrentClassLogger();
|
||||
|
||||
public void Lic()
|
||||
{
|
||||
// 25. string lickey = "Ngo9BigBOggjHTQxAR8/V1NCaF5cXmZCf1FpRmJGdld5fUVHYVZUTXxaS00DNHVRdkdnWXdecXRdQ2heUU13XUI="
|
||||
//string lickey = "Ngo9BigBOggjHTQxAR8/V1NCaF5cXmZCf1FpRmJGdld5fUVHYVZUTXxaS00DNHVRdkdnWXZeeXRQR2NZUEZ2WkE=";
|
||||
string lickey = "Ngo9BigBOggjHTQxAR8/V1NCaF1cXGJCf1FpRmJGdld5fUVHYVZUTXxaS00DNHVRdkdnWXZeeXRQR2ZfVEV2VkA=";
|
||||
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense(lickey);
|
||||
}
|
||||
|
||||
public DocGenerator_from_EDOKA(string connectionstring)
|
||||
{
|
||||
this.connectionstring = connectionstring;
|
||||
Lic();
|
||||
}
|
||||
|
||||
public DocGenerator_from_EDOKA(string connectionstring, string tempdir)
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace DOCGEN.Klassen
|
||||
{
|
||||
public class SynFWord
|
||||
{
|
||||
public bool create_nativ_word(string property, string value, string base64, string originalfile, string destfile)
|
||||
public bool create_nativ(string property, string value, string base64, string originalfile, string destfile)
|
||||
{
|
||||
FileStream ms = new FileStream(originalfile, FileMode.Open, FileAccess.Read);
|
||||
WordDocument document = new WordDocument();
|
||||
|
||||
41
DOCGEN/Klassen/SyncFPowerPoint.cs
Normal file
41
DOCGEN/Klassen/SyncFPowerPoint.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Syncfusion.Presentation;
|
||||
using Syncfusion.XlsIO;
|
||||
|
||||
namespace DOCGEN.Klassen
|
||||
{
|
||||
public class SyncFPowerPoint
|
||||
{
|
||||
public bool create_nativ(string property, string value, string base64, string originalfile, string destfile)
|
||||
{
|
||||
FileStream ms = new FileStream(originalfile, FileMode.Open, FileAccess.Read);
|
||||
//FileStream os = new FileStream(destfile, FileMode.Create);
|
||||
IPresentation pptxDoc = Presentation.Open(originalfile);
|
||||
try
|
||||
{
|
||||
pptxDoc.CustomDocumentProperties.Add(property);
|
||||
pptxDoc.CustomDocumentProperties[property].Value = value;
|
||||
}
|
||||
catch
|
||||
{
|
||||
pptxDoc.CustomDocumentProperties.Add(property);
|
||||
pptxDoc.CustomDocumentProperties[property].Value = value;
|
||||
|
||||
}
|
||||
ms.Close();
|
||||
ms.Dispose();
|
||||
pptxDoc.Save(destfile);
|
||||
|
||||
//os.Close();
|
||||
//os.Dispose();
|
||||
return true;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace DOCGEN.Klassen
|
||||
{
|
||||
public class SynFExcel
|
||||
{
|
||||
public bool create_nativ_excel(string property, string value, string base64, string originalfile, string destfile)
|
||||
public bool create_nativ(string property, string value, string base64, string originalfile, string destfile)
|
||||
{
|
||||
FileStream ms = new FileStream(originalfile, FileMode.Open, FileAccess.Read);
|
||||
FileStream os = new FileStream(destfile, FileMode.Create);
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
DOCGEN/bin/Debug/Syncfusion.Presentation.Base.dll
Normal file
BIN
DOCGEN/bin/Debug/Syncfusion.Presentation.Base.dll
Normal file
Binary file not shown.
56875
DOCGEN/bin/Debug/Syncfusion.Presentation.Base.xml
Normal file
56875
DOCGEN/bin/Debug/Syncfusion.Presentation.Base.xml
Normal file
File diff suppressed because it is too large
Load Diff
@@ -28,7 +28,10 @@ namespace DOCGEN
|
||||
|
||||
public void Lic()
|
||||
{
|
||||
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("Ngo9BigBOggjHTQxAR8/V1NCaF5cXmZCf1FpRmJGdld5fUVHYVZUTXxaS00DNHVRdkdnWXdecXRdQ2heUU13XUI=");
|
||||
// 25. string lickey = "Ngo9BigBOggjHTQxAR8/V1NCaF5cXmZCf1FpRmJGdld5fUVHYVZUTXxaS00DNHVRdkdnWXdecXRdQ2heUU13XUI="
|
||||
//string lickey = "Ngo9BigBOggjHTQxAR8/V1NCaF5cXmZCf1FpRmJGdld5fUVHYVZUTXxaS00DNHVRdkdnWXZeeXRQR2NZUEZ2WkE=";
|
||||
string lickey = "Ngo9BigBOggjHTQxAR8/V1NCaF1cXGJCf1FpRmJGdld5fUVHYVZUTXxaS00DNHVRdkdnWXZeeXRQR2ZfVEV2VkA=";
|
||||
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense(lickey);
|
||||
}
|
||||
public DocGen() {
|
||||
Lic();
|
||||
|
||||
@@ -124,3 +124,5 @@ E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\obj\Debug\DocGen.csproj.CoreCompileInput
|
||||
E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\obj\Debug\DocGen.csproj.Up2Date
|
||||
E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\obj\Debug\DOCGEN.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\obj\Debug\DOCGEN.pdb
|
||||
E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\bin\Debug\Syncfusion.Presentation.Base.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\bin\Debug\Syncfusion.Presentation.Base.xml
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
7447241cc4f5511ef38446c21b07f17ca15eb77d7ad1a4267ce082b6e4234f47
|
||||
d14f2e223b0685966816e5b2aa5af46e3fc937f316941578832a83d0425adf5f
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
<package id="Syncfusion.Pdf.Imaging.NET" version="26.2.8" targetFramework="net481" />
|
||||
<package id="Syncfusion.Pdf.NET" version="26.2.8" targetFramework="net481" />
|
||||
<package id="Syncfusion.Pdf.WinForms" version="26.2.8" targetFramework="net481" />
|
||||
<package id="Syncfusion.Presentation.WinForms" version="26.2.8" targetFramework="net481" />
|
||||
<package id="Syncfusion.SkiaSharpHelper.NET" version="25.2.6" targetFramework="net481" />
|
||||
<package id="Syncfusion.XlsIO.WinForms" version="26.2.8" targetFramework="net481" />
|
||||
<package id="System.Buffers" version="4.5.1" targetFramework="net481" />
|
||||
|
||||
Reference in New Issue
Block a user