Prev: Hash enumeration returning nulls?
Next: Class of the calling Object, is there someway to fetch it (from the called method)?
From: Mario Antonetti on 26 Mar 2010 15:56 [Note: parts of this message were removed to make it a legal post.] Hello all, I'm wondering what would be the best method to print to a label printer? I need to print many labels from a rails application, and I need to do it on a windows box (until we get a linux server up and running). It's been horrid so far, the printer doesn't seem to want to respond to commands like system("print /d:\\name\printer file_to_print") or even the command itself run in the command line (applications like notepad print out their contents fine, though). Is there a better way? Mario
From: Charles Oliver Nutter on 28 Mar 2010 16:27
Java has a pretty good set of printing APIs that I have use in the past for everything from PDF to plain text. Perhaps you could use JRuby to do it? On Friday, March 26, 2010, Mario Antonetti <mjtanton(a)gmail.com> wrote: > Hello all, > I'm wondering what would be the best method to print to a label printer? Â I > need to print many labels from a rails application, and I need to do it on a > windows box (until we get a linux server up and running). Â It's been horrid > so far, the printer doesn't seem to want to respond to commands like > system("print /d:\\name\printer file_to_print") or even the command itself > run in the command line (applications like notepad print out their contents > fine, though). Â Is there a better way? > > Mario > |