Skip to main content

Notifications

Microsoft Dynamics RMS forum
Suggested answer

Receipt print in Custom POS Button

Posted on 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 

 

 

 

 

 

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    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
    Pandayan IT 330 on at
    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
    elizas 55 on at
    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
    Ansuman Sahu 1,360 on at
    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
    Jeff @ FirstTECH 120 on at
    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

Helpful resources

Quick Links

Dynamics 365 Community Update

Welcome to the inaugural Community Platform Update. As part of our commitment to…

Dynamics 365 Community Newsletter - August 2024

Catch up on the latest D365 Community news

Community Spotlight of the Month

Kudos to Mohana Yadav!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,115 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 227,971 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans