Привет, в то время как develeoping bluetooth print inw windows mobile 6 и C # использует код EPL / ZPL [Zebra Printer] Не печатает при добавлении в него динамически данных ...
SerialPort comPort1 = new SerialPort("COM5", 57600, Parity.None, 8, StopBits.One);
comPort1.Open();
StringBuilder sb = new StringBuilder();
sb.Append(@"! 0 200 200 400 1
LABEL
CONTRAST 0
TONE 0
SPEED 5
PAGE-WIDTH 600
BAR-SENSE
;// PAGE 0000000006000400
T 0 0 154 4 Location Transfer
T 0 0 28 101 PDACode :
T 0 0 5 77 Trans.Ref No:
T 0 0 114 105 " + Utility.PdaCode + @"
T 0 0 80 183 To:
T 0 0 114 129 " + FromTrnsfr + @"
T 0 0 12 126 From.Ref No:
T 0 0 54 223 Route:
T 0 0 63 154 From:
T 0 0 115 183 " + cbToLocation.Text + @"
T 0 0 390 211 " + vehicleId + @"
T 0 0 302 208 Vehicle No:
T 0 0 115 156 " + cbFromLocation.Text.ToString() + @"
T 0 0 289 184 Travel Mode:
T 0 0 390 186 " + TraveType + @"
BOX 100 275 446 299 1
T 0 0 107 278 SL No
T 0 0 246 278 MU Code
T 0 0 115 224 " + RouteCode + @"
BT 0 0 0
VB 128 2 0 30 519 348 RefNo
BT OFF
LINE 172 298 172 277 2
LINE 445 299 101 299 2
T 0 0 114 83 DummyTrnsfrNu
FORM
PRINT
");
comPort1.WriteLine(sb.ToString());//"PRINT");
System.Threading.Thread.Sleep(800);
comPort1.Close();
---------------> Вверху ничего не напечатано .....
----------------> Ниже печатается .......
sb.Append(@"! 0 200 200 400 1
LABEL
CONTRAST 0
TONE 0
SPEED 5
PAGE-WIDTH 600
BAR-SENSE
;// PAGE 0000000006000400
T 0 0 154 4 Location Transfer
T 0 0 28 101 PDACode :
T 0 0 5 77 Trans.Ref No:
T 0 0 114 105 DummyPDACode
T 0 0 80 183 To:
T 0 0 114 129 Dummyfrom
T 0 0 12 126 From.Ref No:
T 0 0 54 223 Route:
T 0 0 63 154 From:
T 0 0 115 183 ToLocDummy
T 0 0 390 211 DummyVehicle
T 0 0 302 208 Vehicle No:
T 0 0 115 156 FromLoDummy
T 0 0 289 184 Travel Mode:
T 0 0 390 186 DummyMode
BOX 100 275 446 299 1
T 0 0 107 278 SL No
T 0 0 246 278 MU Code
T 0 0 115 224 DummyRoute
BT 0 0 0
VB 128 2 0 30 519 348 RefNo
BT OFF
LINE 172 298 172 277 2
LINE 445 299 101 299 2
T 0 0 114 83 DummyTrnsfrNu
FORM
PRINT");
кто-нибудь может помочь ???