Spanish espacio entre lineas al imprimir libreria wifipt impresora epson ticket

Discussion in 'Spanish Forum' started by resti, Oct 31, 2019.

  1. resti

    resti Member Licensed User

    Hola estoy intentado imprimir en una impresora de red epson de ticket, utilizo la libreria Wifipt. El problema esque me deja mucho espacio entre lineas.

    ejemplo:
    hola mundo

    hola mundo

    quiero que quede asi:
    hola mundo

    hola mundo

    Gracias.
     
  2. resti

    resti Member Licensed User

    'CODIGO

    #Region Project Attributes
    #ApplicationLabel: B4A Example
    #VersionCode: 1
    #VersionName:
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: unspecified
    #CanInstallToExternalStorage: False
    #BridgeLogger: True
    #End Region

    #Region Activity Attributes
    #FullScreen: False
    #IncludeTitle: True
    #End Region

    Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.

    End Sub

    Sub Globals

    Dim pt As wifiprint
    End Sub

    Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    Activity.LoadLayout("1")
    pt.initialize

    End Sub

    Sub Activity_Resume

    End Sub

    Sub Activity_Pause (UserClosed As Boolean)

    End Sub


    Sub Button1_Click

    pt.connectPT("192.168.10.103",9100) 'HERE connet YOUr DEVICE"

    End Sub

    Sub Button2_Click
    pt.printstring ("hola mundo")
    pt.printstring ("hola mundo")
    'pt.printtest 'TEST PAPER
    ' Sleep(3000)
    'pt.cut
    End Sub

    Sub Button3_Click
    Dim pic As Bitmap
    pic.Initialize(File.DirAssets,"look.bmp")


    pt.printstring ("hola mundo")


    pt.Print_BMP(pt.POSPrintBMP(pic,500,0)) '(PICTURE,PAPER WIDTH,0)


    'Sleep(1000)



    'pt.cut 'CUT PAPAR
    'pt.Printbeep 'VOICE BEEP
    End Sub
     

    Attached Files:

  3. Gustsp

    Gustsp Member Licensed User

    Buen Dia
    Se que puede ser una opción rebuscada, pero tambien podrias considerar a guardar todo en una variable string, manejar tus propios saltos de linea y mandarla a imprimir de una.
    Aclaro que no he podido probar la librería porque no tengo una impresora acorde.

    saludos
    Gustavo
     
  4. resti

    resti Member Licensed User

    Otro problema no imprime la Ñ ñ
     
  5. Gustsp

    Gustsp Member Licensed User

    posiblemente, si no imprime la Ñ o ñ, tampoco imprima las letras acentuadas correctamente.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice