[Rails] Re: How to send a ASCII escape sequence to a Dot Matrix Printer
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 7 Ene, 23:44, Matt Jones <al2o...@gmail.com> wrote:
> On Jan 5, 10:04 pm, Christian Bautista
>
>
>
>
>
>
>
>
>
> <christianbautista.i...@gmail.com> wrote:
> > 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 + '!'
> > + Again
>
> > 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 Jones
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home