Skip to main content
Post a question

Notifications

Community site session details

Community site session details

Session Id : O4cfZN0AYr+w3S8yP4JPSb
Microsoft Dynamics RMS (Archived)

Receipt print in Custom POS Button

Like (0) ShareShare
ReportReport
Posted on 25 Mar 2009 04:52:45 by 1,360

Hi ,

How should I go about printing a receipt using vb.net code, from my Custom POS button ? 

Currently I'm using the Printnormal method and some ESC commands , but it only works for a specific printer.In other printers there are alignment issues.

Is there any method I can use to print receipt from my code irrespective of the printer attached to the POS and also from any drivers (Windows or OPOS) ?

Please help.

thanks

Ansuman 

 

 

 

 

 

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    on 10 Aug 2014 at 17:02:44
    RE: Receipt print in Custom POS Button

    Elizas:

    This is not easily down.  You have to create a custom addon for the PrintReceipt Hook.  You would have to set a global variable in qsrules for the command, then interpret that variable in your addon.  Also that addon has to either interface with the windows printer or the opos printer.  Make sure to "Share OPOS printer with other applications" option is checked within RMS Manager.

    IF you need someone to do this for you, let me know. I have done this several and would be willing to talk to you about it.

    Pandayan IT:

    You can NOT edit any internal commands.  You would have to create your own but you first have to figure out the compression type for the journal entry for the receipt.

  • Pandayan IT Profile Picture
    330 on 06 Aug 2014 at 05:59:56
    RE: Receipt print in Custom POS Button

    Mabuhay! Can we ask also how to see the command PrintLastReceipt so that we can edit it to print just ta trnasaction type #? Thanks

  • elizas Profile Picture
    55 on 25 Jan 2010 at 11:50:06
    Re: Receipt print in Custom POS Button
    In RMS some times we need to print receipt like Sales Receipt, Gift Receipt etc by POS printer. Before printing the receipt we need to make a string with using escape sequences, that escape sequences recognized by the printer. If an escape sequence specifies an operation that is not supported by the printer station, it is ignored. Thank You Eliza http://bit.ly/8XjcaR
  • Ansuman Sahu Profile Picture
    1,360 on 03 Apr 2009 at 02:59:43
    Re: Re: Receipt print in Custom POS Button

    Hello Jeff, 

    thanks for the reply. I need a way to print the customized string (very similar to the sales receipt) on click of a button in Custom Form.The string needs to be generated using the grid data in the custom form.

    Is there some way to print this ?

    thanks

     

     

     

     

  • Jeff @ FirstTECH Profile Picture
    120 on 02 Apr 2009 at 17:06:49
    Re: Receipt print in Custom POS Button

    Hello,

    There is a way to print the last receipt from RMS using a FireEvent command. To do so:

    In Store Operations Manager go to Custom POS Buttons. Create a new button and choose Internal Command as the style. You can use something like Reprint Last Receipt or whatever you choose for the Caption. For the command, type "PrintLastReceipt" without the double quotes, no parentheses or anything else, just the words, then click OK.

    Now when you open POS the button should be there and when you click it, you should get the last receipt that was generated in POS.

    Thanks,

    Jeff

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,406 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,552 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Loading complete