![]() ZPL II is the most widely used programming language for Zebra printers, and allows yout a lot of flexibility/specificity with regards to printer output. I would argue that in a well-designed system, your users really shouldn’t be manipulating zpl files. printing information about a specific item the user is looking at, or a specific shipment, etc)? a corporate logo), or does the zpl file change depending on context (i.e. Maybe you can further elaborate on your workflow? What is the label your are trying to print? Is it a static label (i.e. You will also want to investigate Asgard Labels, which has already built most of the PrintNode solution for you with a nice GUI for management: This can get complicated depending on which screen you want to modify to do this.īottom line….elaborate on what you want to do exactly and I can provide further advice. You would create a PXAction that kicks off this print job, and then call it from the mobile app. I have already done a lot of testing re: DeviceHub and label printing… see here:īottom line, DeviceHub is not the best way to print labels from Acumatica for performance reasons (bur you can code up a solution to do it this way if you really want to).Īs mentioned in the post I reference, you can use a service called PrintNode to print labels from Acumatica to a mobile printer. In either case, you are ultimately running code on the Acumatica server, so you can have the DeviceHub print to the Zebra Label printer directly. Presumably, since you are on the Acumatica Community forum, what you are actually asking is “How can I print from the Acumatica Android App to a Zebra printer?”.but you should clarify whether I am right aboiut this or not.Īcumatica is a “client/server” application, with the client being either a web browser, or in the case of the Android mobile app a MSDL interpreter that presents the interface for mobile consumption. 'ag.DrawString("*******", New Font("Arial", 9), Brushes.Black, x, y + 20)Īrgs.HasMorePages = False 'We print only one page each time the Button1 is pressed.You are going to have to elaborate on what you’re trying to do exactly.Īndroid can print directly to a Zebra printer via Bluetooth using an app like this, for example: 'ag.DrawString(w_exp_dat, New Font("Arial Narrow", 7), Brushes.Black, x + 2, y + 9)Īg.DrawString("F/ " & w_uni_pri, New Font("Arial", 12), Brushes.Black, x + 7, y + 6)Īg.DrawImage(img, x + 1, y + 11) 'Position of the left-top corner of the barcode relatively to the left-top corner of the page (millimeters). EMF, 31, 12) 'Generates a barcode picture, 50x30mm.Īg.DrawString(Space(10) & "Botica Paradera", New Font("Arial Narrow", 8), Brushes.Black, x, y + 0.5) 'A text label near the barcodeĪg.DrawString(v1, New Font("Arial Narrow", 8), Brushes.Black, x + 2, y + 3)Īg.DrawString(v2, New Font("Arial Narrow", 8), Brushes.Black, x + 2, y + 6) Img = barcode.GetPictureHandle(e numFormats. Private Sub PrintHandler(ByVal sender As Object, ByVal args As Printing.PrintPageEventArg s)ĭim barcode = AxStrokeScribe1 'This name is assigned to the barcode ActiveX by default.'To check which name the ActiveX actually has, select the ActiveX, press Alt-Enter and look for the Design group in the Properties box.īarcode.Alphabet = enumAlphabet.CODE128 'Change this to produce barcode of the desired type.īarcode.CtlText = w_bar_cod 'This text will be stored in the barcode.ĭim img As Image, x As Integer = -2, y As Integer = 0, ph As Integer = 45, v0 As String, v1 As String, v2 As String RemoveHandler pd.PrintPage, AddressOf PrintHandler Pd.PrinterSettings.Printer Name = "Label Printer" '- Uncomment this to select a specific printer.ĪddHandler pd.PrintPage, AddressOf PrintHandler ![]() Private Sub form1_load(sender As Object, e As EventArgs) Handles MyBase.Load Is there any way I can get to print my labels?ĭim w_pro_cod As String, w_bar_cod As String, w_pro_des As String, w_uni_pri As String, w_exp_dat As String, w_qty As String ![]() Now this is a very small source code that Works just fine on the real zebra printer,īut in the zpl printer only shows a blank label
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |