123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709 |
- using Common.system;
-
- using Spire.Pdf;
-
- using System;
- using System.Collections.Generic;
- using System.Data;
- using System.Drawing;
- using System.Drawing.Printing;
- using System.IO;
- using System.Threading;
- using System.Windows;
- using System.Windows.Input;
- using System.Windows.Media.Imaging;
- using System.Windows.Threading;
-
- using TmatrixLibrary;
-
- namespace XHWK.WKTool
- {
- /// <summary>
- /// 打印
- /// </summary>
- public partial class PrintWindow : Window
- {
- /// <summary>
- /// 下拉框数据源
- /// </summary>
- public DataTable data = new DataTable();
- private DataTable dtComponentsUniqueNo;
-
- private System.Timers.Timer times;
- public PrintWindow()
- {
- InitializeComponent();
- double proportion = 1036.0 / 1290.0;
- double Widths = (PrimaryScreen.ScaleWorkingAreaSize.Height) / proportion - (BorderThickness.Left + BorderThickness.Right);
- double Heights = PrimaryScreen.ScaleWorkingAreaSize.Height - (BorderThickness.Top + BorderThickness.Bottom);
- Width = Widths / 1.42;
- Height = Heights / 1.71;
- GridContent.Width = Width + 5;
- GridContent.Height = Height;
- ResizeMode = ResizeMode.NoResize;
- List<string> defaList = LatticeFileHelper.GetPrinterList(out string defa);
- if (defaList.Count > 0)
- {
- data.Columns.Add("Value");
- data.Columns.Add("Key");
- for (int i = 0; i < defaList.Count; i++)
- {
- //创建一行
- DataRow row = data.NewRow();
- //将此行添加到table中
- data.Rows.Add(row);
- data.Rows[i]["Value"] = defaList[i];
- data.Rows[i]["Key"] = i.ToString();
- }
- dtComponentsUniqueNo = data.DefaultView.ToTable();
- cmbClass.ItemsSource = dtComponentsUniqueNo.DefaultView;
- cmbClass.SelectedIndex = 0;
- }
-
- Dictionary<int, int> dicItem = new Dictionary<int, int>();
- dicItem.Add(0, 600);
- dicItem.Add(1, 1200);
- CbxDpi.ItemsSource = dicItem;
- CbxDpi.SelectedIndex = 0;
-
- Dictionary<int, string> dictypeItem = new Dictionary<int, string>();
- dictypeItem.Add(0, "2x2");
- dictypeItem.Add(1, "3x3");
- dictypeItem.Add(2, "4x4");
- CbxType.ItemsSource = dictypeItem;
- CbxType.SelectedIndex = 0;
- }
-
- private double wit = 0;
- private double hei = 0;
- public void Initialize(string _imgPath, double _wit, double _hei)
- {
- wit = _wit;
- hei = _hei;
- if (!string.IsNullOrWhiteSpace(_imgPath))
- {
- imgPri.Source = new BitmapImage(new Uri(_imgPath));
- }
- else
- {
- imgPri.Source = null;
- }
- tip_outer.Visibility = Visibility.Collapsed;
- TQLInit();
- }
-
- #region TQL打印
- /// <summary>
- /// 授权文件位置
- /// </summary>
- string TQLAuthorizationPath;
- /// <summary>
- /// 授权码
- /// </summary>
- string gKeyStr;
- TmatrixClass TMC = new TmatrixClass();
- public static string gPrintFileName;
- //string gDirectory = Application.StartupPath;
- //string gFileName = "";
- bool gbInitDone = false;
- //string gUserName = "";
- //string gPassword = "";
- private string gEKeyStr;
-
-
- iTextSharp.text.Document document;
-
- enum TMATRIX_POINT_TYPE
- {
- TmatrixPointType_2x2 = 0, // 2x2 Point Type
- TmatrixPointType_3x3 = 1, // 3x3 Point Type
- };
- enum TMATRIX_OBJECT_TYPE
- {
- TMATRIX_OT_ElementCode = 0, // 此类型对象的Index范围是:75497472~83886079(十六进制为:0x04800000~0x04ffffff)
- TMATRIX_OT_PositionCode, // 此类型对象没有Index
- };
- /// <summary>
- /// 初始化打印
- /// </summary>
- void TQLInit()
- {
- ///初始化
- if (TMC.TmatrixInitialize() == false)
- {
- //MessageBox.Show(this, "点阵码初始化失败!", "生成点阵码", MessageBoxButtons.OK, MessageBoxIcon.Error);
- //Close();
- }
- else
- {
- gbInitDone = true;
- }
- document = new iTextSharp.text.Document(iTextSharp.text.PageSize.A4, 0, 0, 0, 0);
- try
- {
- TQLAuthorizationPath = FileToolsCommon.GetFileAbsolutePath("/LatticeXML/S0_O000_B0000_P000-255.tmx");
-
- StreamReader gsr = new StreamReader(TQLAuthorizationPath);
- gKeyStr = gsr.ReadLine();
- gsr.Close();
- string KeyCheckResult = TMC.TmatrixKeyCheck_OID4(gKeyStr);
-
- if (KeyCheckResult.Substring(0, 1) == "1")
- {
- MessageWindow.Show("打印服务授权过期,请联系厂家更换授权!");
- LogHelper.WriteErrLog("打印服务授权过期:" + KeyCheckResult, null);
- gbInitDone = false;
- }
- else if (KeyCheckResult.Substring(0, 1) == "0")
- {
- }
- }
- catch (Exception ex)
- {
- LogHelper.WriteErrLog("打印服务授权失败:" + ex.Message, ex);
- MessageWindow.Show("打印服务授权失败,请联系厂家!");
- gbInitDone = false;
- }
- }
-
- /// <summary>
- /// 铺码
- /// </summary>
- private bool GenerateCode(string PDFPath)
- {
- try
- {
- if (gbInitDone == false)
- {
- MessageWindow.Show("打印功能无法使用,无效授权。");
- return false;
- }
- try
- {
- string directoryPath = FileToolsCommon.GetDirectoryName(PDFPath);
- FileToolsCommon.DeleteDirectory(directoryPath + "Bg with Images/");
- FileToolsCommon.DeleteDirectory(directoryPath + "Bg with Vector Images/");
- FileToolsCommon.DeleteDirectory(directoryPath + "Bg without Vector Images/");
- FileToolsCommon.DeleteDirectory(directoryPath + "Vector Images/");
- }
- catch (Exception)
- {
- }
- int i;
- for (i = 0; i < 4; i++)
- {
- int DPIValue = 0;
- int TypeValue = 0;
- try
- {
- DPIValue = CbxDpi.SelectedIndex;
- //TypeValue = CbxType.SelectedIndex;
-
- }
- catch (Exception)
- {
- }
- APP.gPointType[i] = TypeValue;
- APP.gPointDPI[i] = DPIValue;
- }
-
- APP.gbGenerateBGWithVImage = false;
- APP.gbGenerateVImage = false;
- APP.gbGenerateBGWithoutVImage = false;
- APP.gbGenerateBGWithImage = true;
-
- //初始页
- int SPID = 0;
- //int PointType = (int)(TMATRIX_POINT_TYPE.TmatrixPointType_3x3);
- //string sGenerateResult = TMC.GenerateTmatrixCode(gKeyStr, PDFFileName, SPID, PointType, GlobalClass.gbGenerateBGWithVImage, GlobalClass.gbGenerateVImage, GlobalClass.gbGenerateBGWithoutVImage, GlobalClass.gbGenerateBGWithImage);
- bool[] bPublishImageType = new bool[4];
- bPublishImageType[0] = APP.gbGenerateBGWithVImage;
- bPublishImageType[1] = APP.gbGenerateVImage;
- bPublishImageType[2] = APP.gbGenerateBGWithoutVImage;
- bPublishImageType[3] = APP.gbGenerateBGWithImage;
- PDFPath = PDFPath.Replace("/", "\\");
- string sGenerateResult = TMC.GenerateTmatrixCode_OID4(gKeyStr, PDFPath, SPID, APP.gPointType, bPublishImageType, APP.gPointDPI);
- if (sGenerateResult.Substring(0, 1) == "1")
- {
- Dispatcher.Invoke(() =>
- {
- MessageWindow.Show("打印功能无法使用,无效授权。");
- });
-
- return false;
- }
- else if (sGenerateResult.Substring(0, 1) == "0")
- {
- //生成成功
- //打印
- //Dispatcher.Invoke(() =>
- //{
- //});
- }
- return true;
-
- }
- catch (Exception ex)
- {
- Dispatcher.Invoke(() =>
- {
- MessageWindow.Show("打印失败:" + ex.Message);
- });
- return false;
- }
- }
- #endregion
-
- /// <summary>
- /// 打印
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void BtnPrint_Click(object sender, RoutedEventArgs e)
- {
- if (string.IsNullOrWhiteSpace(cmbClass.Text))
- {
- MessageWindow.Show("请设置打印机!");
- return;
- }
- btnClose.IsEnabled = false;
- btnPrint.IsEnabled = false;
- Thread myThread = new Thread(StartPrint);
- List<string> StrList = new List<string>();
-
- int ipdf = 102;
- string imgPath = FileToolsCommon.GetFileAbsolutePath("temp/");
- string tempImgPath = imgPath;
- imgPath += "101.pdf";
- while (File.Exists(imgPath))
- {
- imgPath = tempImgPath + ipdf.ToString() + ".pdf";
- ipdf++;
- }
- StrList.Add(imgPath);
- //打印数量
- int PrinterNum = Convert.ToInt32(txbNumberOfCopies.Text);
- StrList.Add(PrinterNum.ToString());
- //打印机名称
- string PrinterName = cmbClass.Text;
- StrList.Add(PrinterName);
-
- num = 0;
- tip_outer.Visibility = Visibility.Visible;
- myThread.Start(StrList);
- times = new System.Timers.Timer(100);
- times.Elapsed += Times_ElapsedClick;
- times.Start();
- }
-
- private int num = 0;
- /// <summary>
- /// 计时器
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void Times_ElapsedClick(object sender, System.Timers.ElapsedEventArgs e)
- {
- Dispatcher.Invoke(() =>
- {
- pgbProcess.Value = num;
- lbProcess.Content = num.ToString() + "%";
- if (num < 99)
- {
- num++;
- times.Interval += (num / 2);
- }
- else
- {
- times.Stop();
- }
- });
- }
-
- /// <summary>
- /// 开始打印
- /// </summary>
- private void StartPrint(object obj)
- {
- try
- {
- document = new iTextSharp.text.Document(iTextSharp.text.PageSize.A4, 0f, 0f, 0f, 0f);
-
- //iTextSharp.text.Rectangle page = new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.A4., 250f);//cs
- ////设置纸张横向
- //document.SetPageSize(iTextSharp.text.PageSize.A4.Rotate());
-
- List<string> objStr1 = (List<string>)obj;
- string SourcePath1 = objStr1[0];
- try
- {
- SourcePath1 = SourcePath1.Replace("/", "\\");
- FileStream fs = new FileStream(SourcePath1, FileMode.Create, FileAccess.ReadWrite);
- document.AddAuthor("星火微课");//作者
- document.AddCreationDate();//创建时候
- document.AddCreator("星火微课");//创建者
- document.AddSubject("点阵文件");//主题
- document.AddTitle("PrintTmatrixCode");//标题
- document.AddKeywords("Print");
-
- document.AddHeader("TmatrixCode", "0");
- Thread.Sleep(300);
- //iTextSharp.text.pdf.PdfDocument pdfDocument = new iTextSharp.text.pdf.PdfDocument();
-
- //document.AddDocListener(pdfDocument);
- //iTextSharp.text.pdf.PdfWriter pdfWriter = new iTextSharp.text.pdf.PdfWriter(pdfDocument, fs);
- //pdfDocument.AddWriter(pdfWriter);
-
- iTextSharp.text.pdf.PdfWriter.GetInstance(document, fs);
- }
- catch (Exception)
- {
-
- }
- document.Open();
- iTextSharp.text.Image image;
- for (int i = 0; i < APP.PageDrawList.Count; i++)
- {
- long ii = Timestamp();
- string directoryPath = AppDomain.CurrentDomain.BaseDirectory + "Temp\\";
- string filePathOutPut = Path.Combine(directoryPath, string.Format("print{0}{1}.jpg", ii, i));
- RectangleF rectangleFs = new RectangleF();
- MergerImg("", filePathOutPut, rectangleFs, out string errmsg);
- image = iTextSharp.text.Image.GetInstance(filePathOutPut);
- if (string.IsNullOrEmpty(APP.PageDrawList[i].PageImagePath))//没有图片
- {
-
- }
- else if (APP.PageDrawList[i].ImgDocumentation == true && !APP.PageDrawList[i].Type.Equals("ppt"))
- {
- image = iTextSharp.text.Image.GetInstance(APP.PageDrawList[i].PageImagePath);
- }
- else
- {
- RectangleF rectangleF = new RectangleF(0, 0, 0, 0);
- Dispatcher.Invoke(() =>
- {
- rectangleF = new RectangleF
- {
- Width = (float)APP.PageDrawList[i].ImageSizes.CenterX,
- Height = (float)APP.PageDrawList[i].ImageSizes.CenterY,
- X = (float)APP.PageDrawList[i].ImageLocation.X,
- Y = (float)APP.PageDrawList[i].ImageLocation.Y
- };
- });
- string msgs = string.Empty;
-
- bool isImg = MergerImg(APP.PageDrawList[i].PageImagePath, filePathOutPut, rectangleF, out msgs);
- if (isImg)
- {
- image = iTextSharp.text.Image.GetInstance(filePathOutPut);
- }
- else
- {
- image = iTextSharp.text.Image.GetInstance(APP.PageDrawList[i].PageImagePath);
- }
-
-
- }
- if (image.Height > iTextSharp.text.PageSize.A4.Height)
- {
- image.ScaleToFit(iTextSharp.text.PageSize.A4.Width, iTextSharp.text.PageSize.A4.Height);
- }
- else if (image.Width > iTextSharp.text.PageSize.A4.Width)
- {
- image.ScaleToFit(iTextSharp.text.PageSize.A4.Width, iTextSharp.text.PageSize.A4.Height);
- }
- image.Alignment = iTextSharp.text.Image.ALIGN_MIDDLE;
- document.NewPage();
- document.Add(image);
- //iTextSharp.text.Chunk c1 = new iTextSharp.text.Chunk("Hello World");
- //iTextSharp.text.Phrase p1 = new iTextSharp.text.Phrase();
- //p1.Leading = 150; //行间距
- //document.Add(p1);
- }
- //Console.WriteLine("转换成功!");
- document.Close();
- }
- catch (Exception ex)
- {
- Dispatcher.Invoke(() =>
- {
- btnClose.IsEnabled = true;
- btnPrint.IsEnabled = true;
- times.Stop();
- tip_outer.Visibility = Visibility.Collapsed;
- MessageWindow.Show(ex.Message);
- return;
- });
- LogHelper.WriteErrLog("打印转换PDF失败,原因:" + ex.Message, ex);
- }
-
-
-
- List<string> objStr = (List<string>)obj;
- //PDF位置
- string SourcePath = objStr[0];
- int PrinterNum = int.Parse(objStr[1]);
- string PrinterName = objStr[2];
-
- Thread.Sleep(500);
- //腾千里生成点阵文件
- if (GenerateCode(SourcePath))
- {
- //打印机名称
- string directoryPath = FileToolsCommon.GetDirectoryName(SourcePath) + "Bg with Images/";
- string[] strs = FileToolsCommon.GetFileNames(directoryPath);
-
- try
- {
- foreach (string fileName in strs)
- {
- Print(fileName, PrinterName, (short)PrinterNum);
- }
- }
- catch (Exception ex)
- {
- Dispatcher.Invoke(() =>
- {
- MessageWindow.Show("打印失败:" + ex.Message);
- btnClose.IsEnabled = true;
- btnPrint.IsEnabled = true;
- times.Stop();
- tip_outer.Visibility = Visibility.Collapsed;
- return;
- });
- }
- Dispatcher.Invoke(() =>
- {
- btnClose.IsEnabled = true;
- btnPrint.IsEnabled = true;
- num = 99;
- times.Stop();
- pgbProcess.Value = 100;
- lbProcess.Content = "100%";
- tip_outer.Visibility = Visibility.Collapsed;
- MessageWindow.Show("已加入打印机队列,打印中。");
-
-
- ////打印机名称
- //string directoryPath = FileToolsCommon.GetDirectoryName(SourcePath) + "Bg with Images/";
- //string[] strs = FileToolsCommon.GetFileNames(directoryPath);
- //foreach (string fileName in strs)
- //{
- // pdfPrint(directoryPath, PrinterName);
- //}
- //MessageWindow.Show("生成点阵文件成功!");
- //string TPFPath = FileToolsCommon.GetFileAbsolutePath("temp/");
- //FileToolsCommon.CreateDirectory(TPFPath);
- });
- }
- else
- {
- Dispatcher.Invoke(() =>
- {
- btnClose.IsEnabled = true;
- btnPrint.IsEnabled = true;
- times.Stop();
- tip_outer.Visibility = Visibility.Collapsed;
- return;
- });
- }
-
- #region 拓思德生成点阵文件
- ////TPF文件位置
- //string TPFPath = FileToolsCommon.GetFileAbsolutePath("temp/");
- //FileToolsCommon.CreateDirectory(TPFPath);
- //TPFPath += "101.TPF";
- ////生成点阵文件
- //LatticeFileHelper.GeneratingPDF(SourcePath, TPFPath, out int pr, out string msg, out string outPut/*, pyte*/);
- //while (!FileToolsCommon.IsExistFile(TPFPath))
- //{
- // Thread.Sleep(100);
- //}
- //while (string.IsNullOrWhiteSpace(pr.ToString()))
- //{
- // Thread.Sleep(100);
- //}
- //Thread.Sleep(1000);
- #endregion
-
- #region 拓思德打印
- ////打印
- //LatticeFileHelper.PrinterTPFFile(TPFPath, PrinterNum, PrinterName, out int printResult, out string standardError, out string standardOutput);
- //if (printResult == 0)
- //{
- // Dispatcher.Invoke(() =>
- // {
- // btnClose.IsEnabled = true;
- // btnPrint.IsEnabled = true;
- // num = 99;
- // times.Stop();
- // pgbProcess.Value = 100;
- // lbProcess.Content = "100%";
- // MessageWindow.Show("打印成功!");
- // tip_outer.Visibility = Visibility.Collapsed;
- // });
- //}
- //else
- //{
- // Dispatcher.Invoke(() =>
- // {
- // btnClose.IsEnabled = true;
- // btnPrint.IsEnabled = true;
- // times.Stop();
- // tip_outer.Visibility = Visibility.Collapsed;
- // MessageWindow.Show(standardError);
- // });
- //}
- #endregion
- }
- /// <summary>
- /// 调用打印机打印
- /// </summary>
- /// <param name="PDFPath">PDF文件路径</param>
- /// <param name="PrinterName">打印机名称</param>
- void Print(string PDFPath, string PrinterName, short PrinterNum = 1)
- {
- //加载PDF文档
- PdfDocument doc = new PdfDocument();
- doc.LoadFromFile(PDFPath);
-
- //指定打印机
- doc.PrintSettings.PrinterName = PrinterName;
-
- //静默打印PDF文档
- doc.PrintSettings.PrintController = new StandardPrintController();
-
- ////设置文档打印页码范围
- //doc.PrintSettings.SelectPageRange(1, 5);
-
- //打印不连续的页面
- //doc.PrintSettings.SelectSomePages(new int[] { 1, 3, 5, 7 });
-
- //设置打印份数为2份
- doc.PrintSettings.Copies = PrinterNum;
- //打印PDF文档
- doc.Print();
- }
- /// <summary>
- /// 返回一个时间戳到毫秒
- /// </summary>
- /// <returns></returns>
- public static long Timestamp()
- {
- TimeSpan ts = DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, 0);
- long timestr = Convert.ToInt64(ts.TotalMilliseconds);
- return timestr;
- }
- /// <summary>
- /// 生成图片
- /// </summary>
- /// <param name="_path">图片地址</param>
- /// <param name="_saveimg">保存位置</param>
- /// <param name="_rectangle">图片位置</param>
- /// <param name="errmsg">错误消息</param>
- /// <returns></returns>
- private bool MergerImg(string _path, string _saveimg, RectangleF _rectangle, out string errmsg)
- {
- errmsg = null;
- try
- {
- Bitmap bitmap = null;
-
- //创建要显示的图片对象,根据参数的个数设置宽度
- Bitmap backgroudImg = new Bitmap((int)/*gridM.ActualWidth*/wit, (int)/*gridM.ActualHeight*/hei);
- Graphics g = Graphics.FromImage(backgroudImg);
- //清除画布,背景设置为白色
- g.Clear(System.Drawing.Color.White);
-
- if (!string.IsNullOrWhiteSpace(_path))
- {
- bitmap = ImageHelper.ReadBitmapFile(_path);
- g.DrawImage(bitmap, _rectangle);
- }
- #region 添加箭头
- string Str = "↑";
- SolidBrush mybrush = new SolidBrush(Color.Black); //设置默认画刷颜色
- Font myfont = new Font("黑体", 14); //设置默认字体格式
- g.DrawString(Str, myfont, mybrush, new Rectangle((int)wit - 50, 20, 50, 50));
-
- #endregion
- backgroudImg.Save(_saveimg);
-
- g.Dispose();
- backgroudImg.Dispose();
- if (bitmap != null)
- {
- bitmap.Dispose();
- }
-
- GC.Collect();
- return true;
- }
- catch (Exception ex)
- {
- errmsg = ex.Message;
- LogHelper.WriteErrLog("【截图合成】(MergerImg)图片合成失败:" + ex.Message, ex);
- return false;
- }
-
- }
-
- /// <summary>
- /// 窗口移动
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
- {
- DragMove();
- }
- /// <summary>
- /// 关闭
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void BtnClose_Click(object sender, RoutedEventArgs e)
- {
- Hide();
- TMC.TmatrixUninitialize();
- }
- /// <summary>
- /// 减
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void BtnLess_Click(object sender, RoutedEventArgs e)
- {
- int num = Convert.ToInt32(txbNumberOfCopies.Text);
- if (num > 1)
- {
- num--;
- txbNumberOfCopies.Text = num.ToString();
- }
- }
- /// <summary>
- /// 新增
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void BtnAdd_Click(object sender, RoutedEventArgs e)
- {
- int num = Convert.ToInt32(txbNumberOfCopies.Text);
- if (num > 0)
- {
- num++;
- txbNumberOfCopies.Text = num.ToString();
- }
- }
- /// <summary>
- /// 打印说明
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void btnPrintExplain_Click(object sender, RoutedEventArgs e)
- {
- System.Diagnostics.Process.Start(FileToolsCommon.GetFileAbsolutePath("/星火微课点阵码打印及印刷指导手册.docx"));
- }
- }
- }
|