[Jslib] using jslib to send data to a printer

Joseph McDonald superjoe at gmail.com
Fri Feb 9 17:29:48 PST 2007


That worked!
Thank you so much!
-joe


On 2/9/07, Pete Collins <pete at mozdevgroup.com> wrote:
>
>
> Joseph McDonald wrote:
>
> >Thanks for that lookUpError pointer, very handy.
> >
> >pix1 is the name of the printer.  It is not actually a file.  But in a
> >dos shell you can do:
> >copy file.prn \\DELL1\pix
> >and it will send the file to the printer raw.
> >
> >
>
> That's what I thought.
>
> Try this:
>
>   var fu = new FileUtils;
>
>   var f = fu.nsIFile("c:\\test.prn");
>   var d = fu.nsIFile("\\\\DELL1\\pix");
>
>   f.copyTo(d, null);
>
> See if that works ...
>
> --pete
>
> --
> Pete Collins - Founder, Mozdev Group Inc.
> www.mozdevgroup.com
> Mozilla Software Development Solutions
> tel: 1-719-302-5811
> fax: 1-719-302-5813
>
> _______________________________________________
> Jslib mailing list
> Jslib at mozdev.org
> http://mozdev.org/mailman/listinfo/jslib
>


More information about the Jslib mailing list