資源簡介
C# 調用Bartender打印的2種方式,一種是直接調用,一種是間接調用
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?System.Data.SqlClient;
namespace?FilmPackingSystem
{
????public?partial?class?FASNCheck?:?Form
????{
????????SqlConnection?SqlCon?=?new?SqlConnection(Program.Connt);
????????public?string?UserMac?=?““;
????????public?string?OldASNCartonNo?=?““;
????????public?FASNCheck()
????????{
????????????InitializeComponent();
????????????UserMac?=?Program.GetMACadd();
????????????this.txt_ASN_no.Text?=?““;
????????????this.Txt_Cartonno.Text?=?““;
????????????this.lab_ASN_PN.Text?=?““;
????????????this.lab_Carton_PN.Text?=?““;
????????????base.WindowState?=?FormWindowState.Maximized;
????????}
????????public?enum?MSGType
????????{
????????????Error
????????????Warning
????????????OK
????????}
????????public?void?Show_Message(string?sText?MSGType?type)
????????{
????????????int?frequency?=?800;
????????????int?duration?=?200;
????????????this.txtMsg.Text?=?sText;
????????????switch?(type)
????????????{
????????????????case?MSGType.Error:
????????????????????this.txtMsg.ForeColor?=?Color.Red;
????????????????????this.txtMsg.BackColor?=?Color.Silver;
????????????????????Console.Beep(frequency?duration);
????????????????????//??soundPlay.PlaySound(Application.StartupPath?+?@“\Packing\ERR.WAV“);
????????????????????break;
????????????????case?MSGType.Warning:
????????????????????this.txtMsg.ForeColor?=?Color.Blue;
????????????????????this.txtMsg.BackColor?=?Color.FromArgb(0xff?0xff?0x80);
????????????????????Console.Beep(frequency?duration);
????????????????????break;
????????????????default:
????????????????????this.txtMsg.ForeColor?=?Color.Green;
????????????????????this.txtMsg.BackColor?=?Color.White;
????????????????????//?soundPlay.PlaySound(Application.StartupPath?+?@“\Packing\OK.WAV“);
????????????????????break;
????????????}
????????}
????????private?void?dgvContent_KeyDown(object?sender?KeyEventArgs?e)
????????{
????????????if?(e.Control?&&?e.KeyCode?==?Keys.C)
????????????????e.Handled?=?true;
????????}
????????private?void?txt_ASN_no_KeyDown(object?sender?KeyEventArgs?e)
????????{
????????????this.lab_ASN_PN.BackColor?=?Color.MediumSlateBlue;
????????????if?(e.KeyCode?==?Keys.Enter)
????????????{
????????????????if?(this.Txt_Cartonno.Text?==?““)
????????????????{
????????????????????this.Show_Message(“外箱標簽Carton?No不能為空!“?MSGType.Error);
????????????????????Txt_Cartonno.SelectAll();
????????????????????Txt_Cartonno.Focus();
????????????????????return;
????????????????}
????????????????if?(this.txt_ASN_no.Text?==?““)
????????????????{
????????????????????this.Show_Message(“ASN?標簽Carton?No不能為空!“?MSGType.Error);
????????????????????txt_ASN_no.SelectAll();
????????????????????txt_ASN_no.Focus();
????????????????????return;
????????????????}
????????????????//if?(OldASNCartonNo?!=?““)
?????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????7821??2015-09-24?11:09??FilmPackingSystem\123\FPartMaintain.cs
?????文件??????13415??2015-09-24?10:57??FilmPackingSystem\123\FPartMaintain.Designer.cs
?????文件???????5817??2015-09-24?11:09??FilmPackingSystem\123\FPartMaintain.resx
?????文件??????35423??2015-09-24?16:04??FilmPackingSystem\123\FrmTrayPack.cs
?????文件??????28587??2015-09-24?16:04??FilmPackingSystem\123\FrmTrayPack.Designer.cs
?????文件???????6188??2015-09-24?16:04??FilmPackingSystem\123\FrmTrayPack.resx
?????文件????????797??2015-11-22?11:39??FilmPackingSystem\app.config
?????文件????1093632??2008-10-17?16:48??FilmPackingSystem\bin\Debug\Excel.dll
?????文件?????315392??2015-11-22?11:34??FilmPackingSystem\bin\Debug\FilmPackingSystem.exe
?????文件????????797??2015-11-22?11:39??FilmPackingSystem\bin\Debug\FilmPackingSystem.exe.config
?????文件?????353792??2015-11-22?11:34??FilmPackingSystem\bin\Debug\FilmPackingSystem.pdb
?????文件?????114688??2014-07-24?15:03??FilmPackingSystem\bin\Debug\Interop.BarTender.dll
?????文件???11869616??2011-07-21?16:58??FilmPackingSystem\bin\Debug\Label\bartend.exe
?????文件??????32496??2015-08-13?11:39??FilmPackingSystem\bin\Debug\Label\CARTON_LABEL.btw
?????文件??????50362??2015-08-22?08:27??FilmPackingSystem\bin\Debug\Label\CustPNlistFormat.jpg
?????文件??????13024??2014-05-28?08:46??FilmPackingSystem\bin\Debug\Label\ERR.WAV
?????文件??????10015??2015-08-25?13:51??FilmPackingSystem\bin\Debug\Label\HUAWEIONLINELABEL.btw
?????文件??????46709??2015-09-24?17:26??FilmPackingSystem\bin\Debug\Label\LESHI_TRAY_LABEL.btw
?????文件???????9220??2014-12-24?14:40??FilmPackingSystem\bin\Debug\Label\OK.wav
?????文件??????16477??2015-08-28?11:31??FilmPackingSystem\bin\Debug\Label\SZCARTON_LABEL.btw
?????文件???????9736??2015-11-05?14:37??FilmPackingSystem\bin\Debug\Label\SZ_TXT_CARTON_LABEL.btw
?????文件??????25045??2015-09-02?16:21??FilmPackingSystem\bin\Debug\Label\TRAY_LABEL.btw
?????文件??????40044??2014-08-20?13:43??FilmPackingSystem\bin\Debug\Label\WARNING.wav
?????文件??????21438??2015-09-07?14:10??FilmPackingSystem\bin\Debug\Label\YULONG_LABEL?-?副本.btw
?????文件??????21438??2015-09-07?14:10??FilmPackingSystem\bin\Debug\Label\YULONG_LABEL.btw
?????文件??????16927??2015-10-09?14:35??FilmPackingSystem\bin\Debug\Label\YULONG_LABEL_onFile.btw
?????文件??????64088??2007-10-10?09:48??FilmPackingSystem\bin\Debug\Microsoft.Vbe.Interop.dll
?????文件?????223800??2007-10-10?09:48??FilmPackingSystem\bin\Debug\office.dll
?????文件???????1150??2011-01-19?14:11??FilmPackingSystem\bin\Debug\Print.ico
?????文件?????275536??2014-04-01?15:23??FilmPackingSystem\bin\Debug\Seagull.BarTender.Print.dll
............此處省略249個文件信息
- 上一篇:EditorA.zip
- 下一篇:ASP.Net如何制作注冊頁和登陸頁視頻
評論
共有 條評論