Update 20250117 12:30
This commit is contained in:
@@ -57,24 +57,28 @@ namespace OnDoc.UIControls
|
||||
}
|
||||
public void Show_Doc(string dokumentid)
|
||||
{
|
||||
PrintDokID= dokumentid;
|
||||
clsdok dok = new clsdok("", "", "");
|
||||
if (dokumentid.Length > 25) { dok.dokument = dokumentid; } else { dok = GetDoc(true, dokumentid); }
|
||||
var stream = new MemoryStream(Convert.FromBase64String(dok.dokument));
|
||||
|
||||
|
||||
//clsGetDoc gd = new clsGetDoc(AppParams.connectionstring);
|
||||
|
||||
if (stream.Length > 0)
|
||||
try
|
||||
{
|
||||
this.pdfViewerControl1.Load(stream);
|
||||
this.pdfViewerControl1.Visible = true;
|
||||
pdfViewerControl1.ZoomMode = ZoomMode.FitWidth;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
PrintDokID = dokumentid;
|
||||
clsdok dok = new clsdok("", "", "");
|
||||
if (dokumentid.Length > 25) { dok.dokument = dokumentid; } else { dok = GetDoc(true, dokumentid); }
|
||||
var stream = new MemoryStream(Convert.FromBase64String(dok.dokument));
|
||||
|
||||
|
||||
//clsGetDoc gd = new clsGetDoc(AppParams.connectionstring);
|
||||
|
||||
if (stream.Length > 0)
|
||||
{
|
||||
this.pdfViewerControl1.Load(stream);
|
||||
this.pdfViewerControl1.Visible = true;
|
||||
pdfViewerControl1.ZoomMode = ZoomMode.FitWidth;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
public void show_base64(string image,string Logtext)
|
||||
|
||||
Reference in New Issue
Block a user