update 20241125
This commit is contained in:
@@ -114,6 +114,7 @@
|
||||
<Compile Include="clsDocGen.cs" />
|
||||
<Compile Include="clsDocGet.cs" />
|
||||
<Compile Include="Klassen\DocGenerator_from_EDOKA.cs" />
|
||||
<Compile Include="Klassen\Excel_Reader.cs" />
|
||||
<Compile Include="Klassen\SyncFPDF.cs" />
|
||||
<Compile Include="Klassen\SyncFPowerPoint.cs" />
|
||||
<Compile Include="Klassen\SyncFExcel.cs" />
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace DOCGEN.Generator
|
||||
DataTable dt = new DataTable();
|
||||
DataTable dt2 = new DataTable();
|
||||
string Apptype = "";
|
||||
dt = db.Get_Vorlage_By_DokumentID(dokumentid);
|
||||
dt = db.Get_Vorlage_By_DokumentID(dokumentid,useoffice);
|
||||
db.dsdaten.Tables.Clear();
|
||||
dt2 = db.Get_ApplicationType_from_Vorlage(Convert.ToInt32(dt.Rows[0]["nr"].ToString()));
|
||||
Apptype = dt2.Rows[0][0].ToString();
|
||||
|
||||
24
DOCGEN/Klassen/Excel_Reader.cs
Normal file
24
DOCGEN/Klassen/Excel_Reader.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DOCGEN.Klassen
|
||||
{
|
||||
public class Excel_Reader
|
||||
{
|
||||
public void get_valus_from_excel(ref System.Data.DataTable dt, string excel)
|
||||
{
|
||||
SyncFExcel se = new SyncFExcel();
|
||||
se.get_values(ref dt, excel);
|
||||
foreach (System.Data.DataRow dr in dt.Rows)
|
||||
{
|
||||
DOCGEN.Klassen.Excel_Reader er = new DOCGEN.Klassen.Excel_Reader();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Buffers.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
@@ -96,5 +97,27 @@ namespace DOCGEN.Klassen
|
||||
return Convert.ToBase64String(imageArray);
|
||||
|
||||
}
|
||||
|
||||
public void get_values(ref System.Data.DataTable dt, string excelfile)
|
||||
{
|
||||
ExcelEngine ex = new ExcelEngine();
|
||||
IApplication app = ex.Excel;
|
||||
MemoryStream ms = new MemoryStream(Helper.EncodeExtensions.DecodeBase642ByteArray(excelfile));
|
||||
IWorkbook workBook = app.Workbooks.Open(ms, ExcelOpenType.Automatic);
|
||||
foreach (System.Data.DataRow dr in dt.Rows)
|
||||
{
|
||||
int row = 0;
|
||||
int col = 0;
|
||||
row = Convert.ToInt32(dr["rowindex"]);
|
||||
col = Convert.ToInt32(dr["columnindex"]);
|
||||
|
||||
string value = workBook.Worksheets[Convert.ToInt32(dr["sheets"])].Range[row, col].Value.ToString();
|
||||
dr["value"] = value;
|
||||
}
|
||||
workBook.Close();
|
||||
workBook = null;
|
||||
ex.Dispose();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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.
Binary file not shown.
BIN
DOCGEN/bin/Debug/VBFileManagement.dll
Normal file
BIN
DOCGEN/bin/Debug/VBFileManagement.dll
Normal file
Binary file not shown.
BIN
DOCGEN/bin/Debug/VBFileManagement.pdb
Normal file
BIN
DOCGEN/bin/Debug/VBFileManagement.pdb
Normal file
Binary file not shown.
26
DOCGEN/bin/Debug/VBFileManagement.xml
Normal file
26
DOCGEN/bin/Debug/VBFileManagement.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
VBFileManagement
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:VBFileManagement.My.Resources.Resources">
|
||||
<summary>
|
||||
Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:VBFileManagement.My.Resources.Resources.ResourceManager">
|
||||
<summary>
|
||||
Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:VBFileManagement.My.Resources.Resources.Culture">
|
||||
<summary>
|
||||
Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
|
||||
Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
|
||||
</summary>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
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.
Binary file not shown.
BIN
DOCGEN/bin/Release/VBFileManagement.dll
Normal file
BIN
DOCGEN/bin/Release/VBFileManagement.dll
Normal file
Binary file not shown.
BIN
DOCGEN/bin/Release/VBFileManagement.pdb
Normal file
BIN
DOCGEN/bin/Release/VBFileManagement.pdb
Normal file
Binary file not shown.
26
DOCGEN/bin/Release/VBFileManagement.xml
Normal file
26
DOCGEN/bin/Release/VBFileManagement.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
VBFileManagement
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:VBFileManagement.My.Resources.Resources">
|
||||
<summary>
|
||||
Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:VBFileManagement.My.Resources.Resources.ResourceManager">
|
||||
<summary>
|
||||
Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:VBFileManagement.My.Resources.Resources.Culture">
|
||||
<summary>
|
||||
Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
|
||||
Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
|
||||
</summary>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
@@ -134,3 +134,6 @@ 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\OnDocOffice.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\bin\Debug\OnDocOffice.pdb
|
||||
E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\bin\Debug\VBFileManagement.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\bin\Debug\VBFileManagement.pdb
|
||||
E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\bin\Debug\VBFileManagement.xml
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
df9da5d387affa8487d501a1e0fc2e419c33a98bdd13729d5bfb6d261148732f
|
||||
19999f952a4b420b2250d1d20933f5e2e8dcf7c756f9cc7084725bd341534bed
|
||||
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
6f37b5a3036d831314a79913d1ac08bab53b805e52534b7a6d6c0c9ec4ca9165
|
||||
af4201ccbcb12179b1baa8427f0124a1e4be62e765663aaacd2dfc3b92feb9c5
|
||||
|
||||
@@ -125,3 +125,6 @@ E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\obj\Release\DOCGEN.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\obj\Release\DOCGEN.pdb
|
||||
E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\bin\Release\OnDocOffice.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\bin\Release\OnDocOffice.pdb
|
||||
E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\bin\Release\VBFileManagement.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\bin\Release\VBFileManagement.pdb
|
||||
E:\Software-Projekte\OnDoc\OnDoc\DOCGEN\bin\Release\VBFileManagement.xml
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user