Printing problem using ZPL

Discussions regarding 1C:Enterprise for mobile devices with Android, iOS, or Windows Phone.

#1
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Mar 23, 2016
Company: SmartID

Hello ! I am trying to print labels from mobile via bluetooth on a zebra printer. I send to the printer a spreadsheet with zpl commands, but no printing, just blank space. If I write text instead of zpl commands,it will print . What is the problem ? Is there any way to send zpl commands in 1c ? Is spreadsheet the only object that I can print ? Thank you !

Edited: Sebastian Dan - Mar 23, 2016 03:20 AM
 
#2
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Sebastian Dan!

Which version of 1C:Enterprise mobile platform do you use?

And yes, you can use only spreadsheet document as for now, not directly sending ZPL commands.

 
#3
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Mar 23, 2016
Company: SmartID

I am using 1C : Enterprise 8.3 (8.3.8.46). So there is not any chance to generate and print a barcode from mobile platform ?

Edited: Sebastian Dan - Mar 23, 2016 05:48 AM
 
#4
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

You maybe can send a request to the server where you can generate an image with barcode and insert it into the spreadsheet document after that.

But I will double check that for you.

 
#5
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Mar 23, 2016
Company: SmartID

Ok.Thank you very much !

 
#6
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

I'm sorry. As for now there is no way to generate a barcode inside the mobile platform, so you need some external way, for example the one I suggested you above.

 
#7
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Mar 23, 2016
Company: SmartID

I understand. I will do like you said . Thank you !

 
#8
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Apr 18, 2012
Company:

Also you can connect your zebra printer to print server with ftp support (for example D-Link DP-301U), generate text file and upload it.

Code
BarcodeText = New TextDocument;
BarcodeText.AddLine("I8,C,001");
BarcodeText.AddLine("OD");
BarcodeText.AddLine("N");
BarcodeText.AddLine("D8");
BarcodeText.AddLine("S4");
BarcodeText.AddLine("B30,10,0,1,3,3,80,N,""DL2210""");
BarcodeText.AddLine("A30,100,0,4,2,2,N,""DL2210""");
BarcodeText.AddLine("B30,160,0,1,3,3,80,N,""1234567890""");
BarcodeText.AddLine("A30,250,0,4,1,1,N,""SERIAL: 1234567890""");
BarcodeText.AddLine("A30,300,0,4,1,1,N,""Monitor Dell 2210""");
BarcodeText.AddLine("P1");
­
FileName = TempFilesDir() + "epl.txt";
BarcodeText.Write(FileName, TextEncoding.ANSI);
­
FTP = New FTPConnection("192.168.0.99");                               
FTP.SetCurrentDirectory("PORT1");
FTP.Put(FileName, "epl.txt");
­

 
#9
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Mar 23, 2016
Company: SmartID

I needed to do the print via bluetooth. I solved the problem. Thank you !

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.