Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > print to a label printer directly

Reply
Thread Tools

print to a label printer directly

 
 
Mario Antonetti
Guest
Posts: n/a
 
      03-26-2010
[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

 
Reply With Quote
 
 
 
 
Charles Oliver Nutter
Guest
Posts: n/a
 
      03-28-2010
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 <> wrote:
> Hello all,
> I'm wondering what would be the best method to print to a label printer? =

=C2=A0I
> need to print many labels from a rails application, and I need to do it o=

n a
> windows box (until we get a linux server up and running). =C2=A0It'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 itsel=

f
> run in the command line (applications like notepad print out their conten=

ts
> fine, though). =C2=A0Is there a better way?
>
> Mario
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to print pdf file directly to printer pavan Java 3 11-05-2008 12:57 AM
How to print pdf file directly to printer =?iso-8859-1?q?Ricardo_R=EDos?= Java 17 08-17-2007 10:16 AM
Print directly to printer RicLo ASP .Net 0 11-25-2006 11:35 AM
[reportlab] print directly to printer Karlheinz Klingbeil Python 1 12-18-2003 09:53 PM
Term::ANSIColor How can I print the color directly to a printer Joe Hasting Perl Misc 1 08-05-2003 06:55 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57