|
@@ -14,6 +14,7 @@ using System.Net;
|
|
|
using System.Text;
|
|
using System.Text;
|
|
|
using System.Web;
|
|
using System.Web;
|
|
|
using System.Diagnostics;
|
|
using System.Diagnostics;
|
|
|
|
|
+using UAS_Web.Properties;
|
|
|
|
|
|
|
|
namespace UAS_Web.tool
|
|
namespace UAS_Web.tool
|
|
|
{
|
|
{
|
|
@@ -303,8 +304,8 @@ namespace UAS_Web.tool
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- int la_width = int.Parse(parameter.First()["LA_WIDTH"].ToString());
|
|
|
|
|
- int la_height = int.Parse(parameter.First()["LA_HEIGHT"].ToString());
|
|
|
|
|
|
|
+ int la_width = 1;
|
|
|
|
|
+ int la_height = 1;
|
|
|
|
|
|
|
|
foreach (var item in barcode)
|
|
foreach (var item in barcode)
|
|
|
{
|
|
{
|
|
@@ -377,7 +378,9 @@ namespace UAS_Web.tool
|
|
|
{
|
|
{
|
|
|
foreach (var item in barcode)
|
|
foreach (var item in barcode)
|
|
|
{
|
|
{
|
|
|
- DataRow dr = dt.NewRow();
|
|
|
|
|
|
|
+ for (int i = 0; i < Settings.Default.Printnum; i++)
|
|
|
|
|
+ {
|
|
|
|
|
+ DataRow dr = dt.NewRow();
|
|
|
//g.CompositingQuality = CompositingQuality.HighQuality;
|
|
//g.CompositingQuality = CompositingQuality.HighQuality;
|
|
|
//g.SmoothingMode = SmoothingMode.HighQuality;
|
|
//g.SmoothingMode = SmoothingMode.HighQuality;
|
|
|
//g.InterpolationMode = InterpolationMode.HighQualityBicubic;
|
|
//g.InterpolationMode = InterpolationMode.HighQualityBicubic;
|
|
@@ -426,6 +429,8 @@ namespace UAS_Web.tool
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
dt.Rows.Add(dr);
|
|
dt.Rows.Add(dr);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if (PRPIC.Checked)
|
|
if (PRPIC.Checked)
|
|
@@ -765,6 +770,11 @@ namespace UAS_Web.tool
|
|
|
PrinterName = print.Controls["Printer"].Text;
|
|
PrinterName = print.Controls["Printer"].Text;
|
|
|
RadioButton PRXA = (RadioButton)print.Controls["PRXA"];
|
|
RadioButton PRXA = (RadioButton)print.Controls["PRXA"];
|
|
|
RadioButton PRPIC = (RadioButton)print.Controls["PRPIC"];
|
|
RadioButton PRPIC = (RadioButton)print.Controls["PRPIC"];
|
|
|
|
|
+
|
|
|
|
|
+ int a = int.Parse(print.Controls["comboBox1"].Text);
|
|
|
|
|
+ Settings.Default.Printnum = a;
|
|
|
|
|
+ Settings.Default.Save();
|
|
|
|
|
+
|
|
|
//获取矩阵图的分辨率
|
|
//获取矩阵图的分辨率
|
|
|
Graphics gr = print.PrintDoc.PrinterSettings.CreateMeasurementGraphics();
|
|
Graphics gr = print.PrintDoc.PrinterSettings.CreateMeasurementGraphics();
|
|
|
print.browser.FocusedFrame.ExecuteJavaScriptAsync("(function(value,value1){dpi=value,printType=value1})('" + gr.DpiX + "','" + PrintType + "')");
|
|
print.browser.FocusedFrame.ExecuteJavaScriptAsync("(function(value,value1){dpi=value,printType=value1})('" + gr.DpiX + "','" + PrintType + "')");
|