update 20250711

This commit is contained in:
Stefan Hutter
2025-07-11 15:01:53 +02:00
parent 68e4725ff5
commit df8777631a
86 changed files with 236 additions and 68 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1656,6 +1656,7 @@ namespace OnDocOffice
}
public class word_signature
{
@@ -1672,6 +1673,9 @@ namespace OnDocOffice
bool is_protected = false;
Microsoft.Office.Interop.Word.Document docWord;
Microsoft.Office.Interop.Word.Application word;
public bool sign_doc(ref Microsoft.Office.Interop.Word.Application word, string imagepath_ul, string imagepath_ur, string dokumentid, string dokumenttypnr)
{
Logging.Logging.Debug("Sign_Doc", "OnDoc", dokumentid);
@@ -1679,10 +1683,26 @@ namespace OnDocOffice
this.word = word;
DB db = new DB(this.ConnectionString);
int pages = 0;
try
{
object miss = System.Reflection.Missing.Value;
//pages = word.ActiveDocument.Words.Last.Information[WdInformation.wdActiveEndPageNumber];
Microsoft.Office.Interop.Word.WdStatistic stat = Microsoft.Office.Interop.Word.WdStatistic.wdStatisticPages;
pages = word.ActiveDocument.ComputeStatistics(stat, ref miss);
}
catch (Exception e)
{
Logging.Logging.Debug("Sign_Doc - Pages not found "+e.Message, "OnDoc", dokumentid);
}
db.clear_parameter();
db.add_parameter("@dokumenttypnr",dokumenttypnr.ToString());
db.add_parameter("@officeversion", "2016");
db.add_parameter("@machinname", System.Environment.MachineName);
db.add_parameter("dokumentid", dokumentid);
db.add_parameter("pages",pages.ToString());
db.Get_Tabledata("sp_signatureposition", true,false);
System.Data.DataTable position = db.dsdaten.Tables[0];
db = null;
@@ -1693,11 +1713,13 @@ namespace OnDocOffice
is_protected = true;
}
int w = 0;
int h = 0;
int l = 0;
int t = 0;
int type = 1;
try
{
List<string> list = new List<string>();