Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8938929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:44:11+00:00 2026-06-15T10:44:11+00:00

I am using Pos for .net. Below is a vb code, how can I

  • 0

I am using Pos for .net.

Below is a vb code, how can I convert to c# to print receipt:

   Public Const ESC = Chr(&H1B) & "|"
        Public Const SetBold = ESC & "bC"
        Public Const SetUnderline = ESC & "uC"
        Public Const SetItalic = ESC & "iC"
        Public Const SetCentre = ESC & "cA"
        Public Const SetRight = ESC & "rA"
        Public Const ResetFormatting = ESC & "N"

 Dim msg As String = "This is a test" & vbCrLf & SetBold & SetSize(3) & SetCentre & "it works" & SetSize(1) & " pretty well" & vbCrLf & "OK"
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T10:44:12+00:00Added an answer on June 15, 2026 at 10:44 am

    replace vbCrLf with "\r\n"

    Public Const ESC = Chr(&H1B) + "|" ;
            Public Const SetBold = ESC+ "bC";
            Public Const SetUnderline = ESC + "uC";
            Public Const SetItalic = ESC +"iC" ;
            Public Const SetCentre = ESC + "cA" ;
            Public Const SetRight = ESC + "rA" ;
            Public Const ResetFormatting = ESC + "N" ;
    
     String msg = "This is a test" + "\r\n"+ SetBold + SetSize(3)+ SetCentre + "it works" +SetSize(1) + " pretty well" + "\r\n" + "OK" ;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In a web application I want to print a receipt using a POS (Point
Using the following code in Delphi 2007: procedure TfrmTest.PaintBox1Paint(Sender: TObject); const Rect_Size = 10;
I'am using the Rs232 Class Library in a vb.net application to print text to
I am a newbie in using asp.net with code behind of vb.net I just
I am creating login pages using asp.net with code behind in vb.net, I am
I'm writing an application for a POS and using POS for .NET. I've found
my purpose is to parse several text files using the POS parser HunPos http://code.google.com/p/hunpos/wiki/UserManualI
I'm using openerp 6.1.1 and in the web client, the pos receipt doesn't have
i'm using db4o with objects: public Tra(String x, int y, int z, int pos,
I'm using vb.net 2005, I've got the following code running a thread to download

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.