update 20241210
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Class1.cs" />
|
||||
<Compile Include="clsoffice.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
OnDocOffice/bin/Release/BarcodeLib.dll
Normal file
BIN
OnDocOffice/bin/Release/BarcodeLib.dll
Normal file
Binary file not shown.
BIN
OnDocOffice/bin/Release/BarcodeLib.pdb
Normal file
BIN
OnDocOffice/bin/Release/BarcodeLib.pdb
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
OnDocOffice/bin/Release/FastReport.Bars.dll
Normal file
BIN
OnDocOffice/bin/Release/FastReport.Bars.dll
Normal file
Binary file not shown.
BIN
OnDocOffice/bin/Release/FastReport.Compat.dll
Normal file
BIN
OnDocOffice/bin/Release/FastReport.Compat.dll
Normal file
Binary file not shown.
BIN
OnDocOffice/bin/Release/FastReport.DataVisualization.dll
Normal file
BIN
OnDocOffice/bin/Release/FastReport.DataVisualization.dll
Normal file
Binary file not shown.
BIN
OnDocOffice/bin/Release/FastReport.Editor.dll
Normal file
BIN
OnDocOffice/bin/Release/FastReport.Editor.dll
Normal file
Binary file not shown.
BIN
OnDocOffice/bin/Release/FastReport.dll
Normal file
BIN
OnDocOffice/bin/Release/FastReport.dll
Normal file
Binary file not shown.
57644
OnDocOffice/bin/Release/FastReport.xml
Normal file
57644
OnDocOffice/bin/Release/FastReport.xml
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
OnDocOffice/bin/Release/QRCoder.dll
Normal file
BIN
OnDocOffice/bin/Release/QRCoder.dll
Normal file
Binary file not shown.
@@ -15,6 +15,7 @@ using System.Drawing;
|
||||
using Font = System.Drawing.Font;
|
||||
using System.Xml.Linq;
|
||||
using BarcodeLib;
|
||||
using System.Drawing.Drawing2D;
|
||||
|
||||
namespace OnDocOffice
|
||||
{
|
||||
@@ -166,6 +167,7 @@ namespace OnDocOffice
|
||||
{
|
||||
Database.DB db = new Database.DB(connectionstring);
|
||||
db.Get_Tabledata("select * from view_idv_makros where office_vorlagenr="+docdata.VorlageNr.ToString()+" order by reihenfolge asc", false, true);
|
||||
if (db.dsdaten.Tables[0].Rows.Count > 0) { word.Visible = true; word.Activate(); }
|
||||
foreach (DataRow dr in db.dsdaten.Tables[0].Rows)
|
||||
{
|
||||
if (dr[0].ToString() == "DokumentSchuetzen")
|
||||
@@ -436,6 +438,30 @@ namespace OnDocOffice
|
||||
{
|
||||
}
|
||||
}
|
||||
private System.Drawing.Image ResizeImage(System.Drawing.Image imgToResize, Size size)
|
||||
{
|
||||
// Get the image current width
|
||||
int sourceWidth = imgToResize.Width;
|
||||
// Get the image current height
|
||||
int sourceHeight = imgToResize.Height;
|
||||
float nPercent = 0;
|
||||
float nPercentW = 0;
|
||||
float nPercentH = 0;
|
||||
// Calculate width and height with new desired size
|
||||
nPercentW = ((float)size.Width / (float)sourceWidth);
|
||||
nPercentH = ((float)size.Height / (float)sourceHeight);
|
||||
nPercent = Math.Min(nPercentW, nPercentH);
|
||||
// New Width and Height
|
||||
int destWidth = (int)(sourceWidth * nPercent);
|
||||
int destHeight = (int)(sourceHeight * nPercent);
|
||||
Bitmap b = new Bitmap(destWidth, destHeight);
|
||||
Graphics g = Graphics.FromImage((System.Drawing.Image)b);
|
||||
g.InterpolationMode = InterpolationMode.HighQualityBicubic;
|
||||
// Draw image with new width and height
|
||||
g.DrawImage(imgToResize, 0, 0, destWidth, destHeight);
|
||||
g.Dispose();
|
||||
return (System.Drawing.Image)b;
|
||||
}
|
||||
private void Generate_Barcodes(ref clsDocData docdata)
|
||||
{
|
||||
float left = 360;
|
||||
@@ -456,9 +482,11 @@ namespace OnDocOffice
|
||||
System.Drawing.Image barcodeimage;
|
||||
BarcodeLib.Barcode Barcode = new BarcodeLib.Barcode();
|
||||
barcodeimage = Barcode.Get_Datamatrix(DataMatrix.net.DmtxScheme.DmtxSchemeAscii, docdata.barcode_content, 6, 6, 0, "Right", docdata.barcode_text, docdata.Zusatz_Font, docdata.Zusatz_FontSize);
|
||||
barcodeimage = ResizeImage(barcodeimage, new Size(200, 80));
|
||||
barcodeimage.Save(word.ActiveDocument.FullName + ".png");
|
||||
Insert_Datamatrix(word.ActiveDocument.FullName + ".png");
|
||||
System.IO.File.Delete(word.ActiveDocument.FullName + ".png");
|
||||
|
||||
return;
|
||||
} else
|
||||
{
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
ed512a5d9516bca1561ddb7e5e81933bd1ffd8af2db5eac838dc5742371bdc16
|
||||
8713253443b4d3f4dba2f9ae33aaee946dd31de434ce61f7edf0a6e542733710
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
84ece8f48b9e36cab4db72957935da4b2aa15b3ba745189ff6704ad5533f9351
|
||||
5290c3d7e6364133d66577fa88f0ffb4c76c08a4f218e622661a6f70144d9abe
|
||||
|
||||
@@ -20,3 +20,12 @@ E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\obj\Release\OnDocOffice.pdb
|
||||
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Release\VBFileManagement.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Release\VBFileManagement.pdb
|
||||
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Release\VBFileManagement.xml
|
||||
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Release\BarcodeLib.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Release\FastReport.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Release\QRCoder.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Release\FastReport.Compat.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Release\FastReport.Bars.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Release\FastReport.DataVisualization.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Release\FastReport.Editor.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Release\BarcodeLib.pdb
|
||||
E:\Software-Projekte\OnDoc\OnDoc\OnDocOffice\bin\Release\FastReport.xml
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user