Update 20241215
This commit is contained in:
@@ -19,6 +19,8 @@ using BroadcastListener.Classes;
|
||||
using BroadcastListener.Interfaces;
|
||||
using static BroadcastListener.Classes.Factory;
|
||||
using OnDoc.Helper;
|
||||
using DOCGEN;
|
||||
using System.Globalization;
|
||||
|
||||
namespace OnDoc.DocMgmt
|
||||
{
|
||||
@@ -234,5 +236,19 @@ namespace OnDoc.DocMgmt
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void btnOfficePrint_Click(object sender, EventArgs e)
|
||||
{
|
||||
clsdok dok = new clsdok("", "", "");
|
||||
OfficePrinter.OnDocOffice op = new OfficePrinter.OnDocOffice();
|
||||
DocGet gd = new DocGet(AppParams.connectionstring);
|
||||
{
|
||||
dok = gd.GetDoc(dokumentid);
|
||||
}
|
||||
Helper.FileHelper fh = new Helper.FileHelper();
|
||||
string Filename = AppParams.tempdir + dokumentid + "." + dok.extension;
|
||||
fh.SaveBase64ToFile(dok.dokument, Filename );
|
||||
op.PrintInWord(Filename, AppParams.wordprintmacro);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user