Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem when trying to print an Image to the Printer. #235

Open
aquari93 opened this issue Jul 10, 2023 · 0 comments
Open

Problem when trying to print an Image to the Printer. #235

aquari93 opened this issue Jul 10, 2023 · 0 comments

Comments

@aquari93
Copy link

So basically I'm trying to add a stamp after a receipt. I add the image after the text and it prints but doesn't add space after the stamp, although I've tried with FeedLines, FullCut. (This happens when the printer starts from cold boot )

IMG_2877 2

When I'm trying to print another receipt it doesn't print the begining of the receipt like in the picture.

IMG_2878

This is the code

` var e = new EPSON();
var buffer = ByteSplicer.Combine(

            e.SetStyles(PrintStyle.Bold),
             e.FeedLines(3),
             e.LeftAlign(),
            e.PrintLine($"------------------------------------------------"),
            e.SetStyles(PrintStyle.None),
            e.FeedLines(1),

            e.PrintLine("S.C. ALTEX LOGISTIC & DISTRIBUTION SRL"),
            e.PrintLine("Str. Olteniei nr. 22, Piatra Neamt, Jud. Neamt"),
            e.PrintLine("CIF: RO14966155     J27/563/2002"),
            e.FeedLines(3),
            e.PrintLine("CHITANTA RAMBURS CONT COLECTOR"),
            e.PrintLine("SERIA "+ serieChitanta +" NR. "+ NumarChitanta+ ""),
            e.FeedLines(3),
            e.PrintLine("Am primit de la  " + client),
            e.PrintLine("CIF "+ cif +" , J: "+ j+""),
            e.PrintLine("Suma de " + suma +" lei"),
            e.PrintLine("Adica OSutaNouaZeciSiNouaDeLei"),
            e.PrintLine("Reprezentand ramburs AWB: " + awb),
            e.PrintLine("Tiparit la data de "+ datePrint +""),
            e.PrintLine("Curier: "+ curier),
            e.FeedLines(3),
            e.LeftAlign(),
            e.PrintLine("Va multumim ca ati apelat la serviciile"),
            e.PrintLine("ALTEX CURIER"),
            e.FullCutAfterFeed(2),
            e.PrintImage(m_Bytes,false,true,-1,0),
            

            e.FullCutAfterFeed(3),
            e.FeedLines(3)
           
           
          
              ) ; ; ; ;

        await bluetoothSocket.OutputStream.WriteAsync(buffer, 0, buffer.Length);`

Sorry for my bad English, since is not my main language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant