Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics RMS (Archived)

Anyway to disable or enable a printer by code?

Posted on by 60

Hi All

I am trying to disable and enable my receipt printers by code.

I have 2 receipt printers in RMS, which I need to disable or enable one of them by different situations so I can choose which receipt I will get (small or A4 receipt). so far I have found I could disable any one of them by 

Register.ReceiptPrinter.Disable()

or Register.ReceiptPrinter2.Disable()

but I could not make it enable again after I disable it, I cannot found the command to enable it again. Can anyone know how to enable any receipt pinter from the code?

Thanks very much for the help

*This post is locked for comments

  • Kelvin yuan Profile Picture
    Kelvin yuan 60 on at
    RE: Anyway to disable or enable a printer by code?

    Thanks for the suggestion, the only problem is when it is prompt to the cashier, cashier sometimes make the wrong choice, that is why I try to do this in code, for example, If a customer was selected in this transaction, I will print with the A4 printer, otherwise I will print in the small receipt. if I could do it in code, then the cashier won't need to do the decision and there won't be any mistakes. I wonder if this could be done.

  • Suggested answer
    raelhefn Profile Picture
    raelhefn on at
    RE: Anyway to disable or enable a printer by code?

    I prefer to use RMS wizard solution when reinitiate RMS parameter it will return to its enable mode.

  • Suggested answer
    RMS Wizard Profile Picture
    RMS Wizard 1,205 on at
    RE: Anyway to disable or enable a printer by code?

    It would be easier to configure Receipt Printer 1 for small receipts and Receipt Printer 2 for A4 and include prompt for cashier to print.

    If certain types of sales always use A4 you could automate the procedure by editing the receipt formats. For example, on Receipt Printer 1 use a small receipt format that only prints Sales, Payments, and X Reports. On Receipt Printer 2 assign an A4 receipt format that only prints Layaways, Quotes, and Work Orders. Set both printers to print automatically.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans