update 20250224
This commit is contained in:
@@ -21,6 +21,7 @@ using Syncfusion.OfficeChartToImageConverter;
|
||||
using static System.Net.WebRequestMethods;
|
||||
using System.Net.WebSockets;
|
||||
using Database;
|
||||
using System.Runtime.Hosting;
|
||||
|
||||
|
||||
namespace ZZ_Signature_C
|
||||
@@ -38,24 +39,19 @@ namespace ZZ_Signature_C
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
string connectionstring = "data source=shu00;initial catalog=edoka_dms;integrated security=SSPI;persist security info=false;workstation id=;packet size=4096;user id=sa;password=*shu29";
|
||||
DB db = new DB(connectionstring);
|
||||
db.Get_Tabledata("Select * from OnDocSignaturePosition where dokumenttypnr=1089");
|
||||
|
||||
string connectionstring = this.txtconnectionstring.Text;
|
||||
OnDocOffice.word_signature ws = new OnDocOffice.word_signature(connectionstring);
|
||||
word = new Microsoft.Office.Interop.Word.Application();
|
||||
word.Visible = true;
|
||||
docWord = word.Documents.Open(@"h:\tssettings\v.dotm");
|
||||
docWord = word.Documents.Open(txtfilename.Text);
|
||||
word.Activate();
|
||||
string ul = @"E:\Software-Projekte\OnDoc\Unterschriften\tg1807.jpg";
|
||||
string ur = @"E:\Software-Projekte\OnDoc\Unterschriften\tg6112.jpg";
|
||||
ws.sign_doc(ref word, ul, ur, "1234", "1089");
|
||||
docWord.Activate();
|
||||
word.Visible = true;
|
||||
|
||||
string ul = txtunterschriftlinks.Text;
|
||||
string ur = txtunterschriftrechts.Text;
|
||||
|
||||
|
||||
|
||||
ws.sign_doc(ref word, ul, ur, "", txtdoktypnr.Text);
|
||||
docWord.Activate();
|
||||
word.Visible = true;
|
||||
|
||||
docWord = null;
|
||||
word = null;
|
||||
|
||||
@@ -326,5 +322,27 @@ namespace ZZ_Signature_C
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void Form1_Load(object sender, EventArgs e)
|
||||
{
|
||||
string[] lines = System.IO.File.ReadAllLines(System.Windows.Forms.Application.StartupPath + "\\params.txt");
|
||||
int i = -1;
|
||||
foreach (string line in lines)
|
||||
{
|
||||
i = i + 1;
|
||||
switch (i)
|
||||
{
|
||||
case 0: this.txtconnectionstring.Text = line;break;
|
||||
case 1: this.txtdoktypnr.Text = line;break;
|
||||
case 2: this.txtfilename.Text = line;break;
|
||||
case 3: this.txtunterschriftlinks.Text= line;break;
|
||||
case 4: this.txtunterschriftrechts.Text = line; break;
|
||||
default:break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user