Help RoR Masters,
I need to print a report that has a escape sequence but every time I
try The Dot matrix printer also prints the escape sequence.
example
escape sequence here + ‘!’ +escape sequence here Hello World + ‘!’
The hard copy output should be like this
Hello World! Again
but it outputs :
Hello World + ‘!’ + Again
Help me pls…
or If there is such way to just print a report in a dot matrix printer
where you can control the style, example the font size and etc.
On Jan 5, 10:04pm, Christian Bautista
[email protected] wrote:
The hard copy output should be like this
Hello World! Again
but it outputs :
Hello World + ‘!’ + Again
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…
–Matt J.
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()”) %>
On Mon, Jan 9, 2012 at 4:01 AM, Matt J. [email protected] wrote:
<%=link_to_function(“Print this Page”, “javascript:print()”) %>
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?
–
Greg A.
http://twitter.com/akinsgre
On Jan 8, 8:00pm, Christian Bautista
[email protected] wrote:
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…
–Matt J.
Thanks for all your responds…
We finally did it… we used jzebra
Hi Christian,
could you please be so kind and share your knowledge HOW you did it?
Best regards
Klaus
On 10 Jan., 01:50, Christian Bautista
On Mon, Jan 9, 2012 at 7:50 PM, Christian Bautista
[email protected] wrote:
Thanks for all your responds…
We finally did it… we used jzebra
Thanks… I honestly didn’t know why you’d want to do this; reading a
bit about JZebra indicated some use cases I wasn’t thinking about.
Good knowledge for the future.
–
Greg A.
http://twitter.com/akinsgre