Reputation: 24535
How can I send a string to the printer from a Racket program? I tried to find examples on the internet but could not find it. The Racket documentation has these pages but how to send string to printer is not clear: https://docs.racket-lang.org/reference/printing.html https://docs.racket-lang.org/reference/Printer_Extension.html Thanks for your comments/answers.
Upvotes: 1
Views: 73
Reputation: 10643
The documentation here suggests that you need to create a printer-dc%
object and draw to that. When you are done, call the end-doc
method to send a request to the OS to actually do the printing.
Upvotes: 2