If the + characters are actually appearing in the output, I'd suspect
there's some unmatched quotes and/or an incorrectly formatted
interpolation involved. Can you post the actual code?
As for the control codes, that's going to be heavily dependent on the
environment you're using to print. I'm not even entirely sure if a web
browser *can* send raw text like you're intending...
Hello,
I dont have any code yet for it. I dont know how to do it because I
need first to know how to send ascii to a dot matrix printer.
I've tried this typical printing code so far.
<%=link_to_function("Print this Page", "javascript:print()") %>
This is almost certainly not going to work - the browser is going to
format the document before sending it to the printer. For
experimentation, it's probably easiest to start with a static text/
plain file and get *that* printing.
However. after doing some more digging, it looks like what you're
looking for is nearly-impossible; I did find this:
which sounds like it would do EXACTLY what you're looking for.
Unfortunately it's IE-only, ActiveX, and $500...
I'm not sure I understand the point of sending raw ascii here.
Despite being a dot matrix printer, doesn't it handle print jobs send
just like any other printer? Can you format your output as a PDF and
just print that?