update 20250317

This commit is contained in:
Stefan Hutter
2025-03-18 06:37:31 +01:00
parent 238e592ec8
commit 7e3381c926
280 changed files with 2730906 additions and 197 deletions

View File

@@ -38,6 +38,9 @@
<Reference Include="Database">
<HintPath>..\Database\bin\Debug\Database.dll</HintPath>
</Reference>
<Reference Include="DOCGEN">
<HintPath>..\DOCGEN\bin\Debug\DOCGEN.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Office.Interop.Excel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<EmbedInteropTypes>True</EmbedInteropTypes>

Binary file not shown.

View File

@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Syncfusion.DocIO.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-28.1462.35.0" newVersion="28.1462.35.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Syncfusion.Compression.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-28.1462.35.0" newVersion="28.1462.35.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Syncfusion.OfficeChart.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-28.1462.35.0" newVersion="28.1462.35.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Syncfusion.Licensing" publicKeyToken="632609b4d040f6b4" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-28.1462.33.0" newVersion="28.1462.33.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Text.Encoding.CodePages" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Syncfusion.Pdf.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-28.1462.35.0" newVersion="28.1462.35.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Syncfusion.XlsIO.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-28.1462.35.0" newVersion="28.1462.35.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /></startup></configuration>

Binary file not shown.

View File

@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>DOCGEN</name>
</assembly>
<members>
<member name="M:DOCGEN.Klassen.SyncFWord.DocToPDF(System.String)">
<summary>Word to PDF-Konverter</summary>
<remarks>Das sind die Remarks</remarks>
<param name="dokument">Base64-Dokument</param>
</member>
</members>
</doc>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -29,6 +29,8 @@ using Syncfusion.CompoundFile.DocIO;
using Helper;
using Microsoft.VisualBasic.Logging;
using System.Data.Common;
using static System.Net.WebRequestMethods;
namespace OnDocOffice
@@ -1914,5 +1916,50 @@ namespace OnDocOffice
}
public class OfficeToPDF
{
public string word_to_pdf(string dokumentid,string connectionstring,string tempdir)
{
DB db=new DB(connectionstring);
clsdok dok = new clsdok("", "", "", "");
dok = db.GetDocumentAsBase64(dokumentid);
string SQL = "SELECT dbo.dokumenttyp.ErstellungInOffice FROM dbo.dokument INNER JOIN dbo.dokumenttyp ON dbo.dokument.dokumenttypnr = dbo.dokumenttyp.dokumenttypnr where dbo.dokument.dokumentid=@dokumentid";
db.clear_parameter();
db.add_parameter("@dokumentid", dokumentid);
db.Get_Tabledata_Addvar(SQL, false, true);
if (Convert.ToBoolean(db.dsdaten.Tables[0].Rows[0]["Erstellunginoffice"]))
{
return convert_word_to_pdf(ref dok,tempdir,dokumentid);
}
else
{
DOCGEN.DocGet dg = new DOCGEN.DocGet(connectionstring);
dok = dg.GetDocAsPDF(dokumentid);
dg = null;
return dok.dokument;
}
}
public string convert_word_to_pdf(ref clsdok dok,string tempdir,string dokumentid)
{
clsFileHelper fh = new clsFileHelper();
string filename=tempdir+ DateTime.Now.ToString("yyyyMMddhhmmss")+"_"+dokumentid+dok.extension;
string outputfile = filename + ".pdf";
fh.SaveBase64ToFile(dok.dokument, filename);
Microsoft.Office.Interop.Word.Application word = new Microsoft.Office.Interop.Word.Application();
Microsoft.Office.Interop.Word.Document worddoc = new Microsoft.Office.Interop.Word.Document();
worddoc= word.Documents.Open(filename);
worddoc.ExportAsFixedFormat(outputfile.ToString(), Microsoft.Office.Interop.Word.WdExportFormat.wdExportFormatPDF, false, Microsoft.Office.Interop.Word.WdExportOptimizeFor.wdExportOptimizeForPrint, Microsoft.Office.Interop.Word.WdExportRange.wdExportAllDocument,0,99, Microsoft.Office.Interop.Word.WdExportItem.wdExportDocumentContent, true, true, Microsoft.Office.Interop.Word.WdExportCreateBookmarks.wdExportCreateNoBookmarks, true, true, false);
worddoc.Close(false);
word.Quit(false);
worddoc = null;
word = null;
return fh.Base64FromFile(outputfile);
}
}
}

View File

@@ -1 +1 @@
a3b1708a192291b2c2e876acac3f1b51e683a976d7596dfaa1794f125f3a970e
7807f43cc9d7de6e6c2b656446d9aa5036cd6daa9b1b085e21769efcb4cddbb8

View File

@@ -33,7 +33,6 @@ E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\Newtonsoft.Json.dll
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\Syncfusion.Compression.Base.dll
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\Syncfusion.DocIO.Base.dll
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\Syncfusion.OfficeChart.Base.dll
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\Newtonsoft.Json.xml
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\Syncfusion.Compression.Base.xml
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\Syncfusion.DocIO.Base.xml
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\Syncfusion.OfficeChart.Base.xml
@@ -46,3 +45,21 @@ E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\MW6.SDK.dll
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\VBOffice.dll
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\VBOffice.pdb
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\VBOffice.xml
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\Newtonsoft.Json.xml
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\DOCGEN.dll
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\Syncfusion.XlsIO.Base.dll
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\Syncfusion.Pdf.Base.dll
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\Syncfusion.DocToPDFConverter.Base.dll
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\Syncfusion.ExcelToPDFConverter.Base.dll
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\OfficePrinter.dll
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\Syncfusion.Presentation.Base.dll
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\Syncfusion.Licensing.dll
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\DOCGEN.pdb
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\DOCGEN.xml
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\DOCGEN.dll.config
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\Syncfusion.XlsIO.Base.xml
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\Syncfusion.Pdf.Base.xml
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\Syncfusion.DocToPDFConverter.Base.xml
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\Syncfusion.ExcelToPDFConverter.Base.xml
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\OfficePrinter.pdb
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Debug\Syncfusion.Presentation.Base.xml