[jcifs] Shared printers

Michael B Allen mba2000 at ioplex.com
Tue May 20 04:40:24 EST 2003


On Mon, 19 May 2003 Michael.Colemen at anixter.com wrote:

> Hi Michael,
> 
>       Thank you for your quick reply. I'm not sure if you want people to
> reply directly to you or back to the list so correct me if I'm in error.

Yes, please reply to the list.

>       In regard to printing, I'm actually not using a standard printer such
> as a laser to print either text or graphics. I'm actually developing a
> product that uses barcode printers which receive plain text commands and
> then render the output in the firmware built into the printer. (Printers
> such as Intermec and Zebra www.intermec.com and www.zebra.com.) So in a
> sense it is kind of like rendering postscript, but not quite.
> 
>       Anyway, thanks for any help you can give. If I had the time I'd try
> and figure it out myself.

You could figure out pretty quickly what needs to happen by taking
a packet capture with Ethereal of one of these print jobs or one like
it. Then look at what jCIFS does using SmbFileOutputStream. Look closely
at flags and such. It might be possible to get away with making a few
small changes or possibly none at all.

Mike
> 
> Michael B Allen <mba2000 at ioplex.com> on 05/16/2003 05:36:42 PM
> 
> To:    Michael.Colemen at anixter.com
> cc:    jcifs at lists.samba.org
> 
> Subject:    Re: [jcifs] Shared printers
> 
> 
> On Fri, 16 May 2003 Michael.Colemen at anixter.com wrote:
> 
> > By any chance, did anyone ever figure out how to print to an NT shared
> > printer? I know two messages were posted, and the response was that this
> > feature it not supported at the present time. I'm hoping some one may
> have
> > figurred it out.
> 
> This was never really explored. It would not be difficult to write
> data to a shared printer but what would you print? There is no way to
> generate PostScript, PCL, or driver agnostic output in Java. You cannot
> just write a PDF file to the printer. It may need to be interpreted and
> converted to PostScript, PCL, or rasterized by a driver.
> 
> Mike
> 
> 
> 
> 
> 
> 

-- 
A  program should be written to model the concepts of the task it
performs rather than the physical world or a process because this
maximizes  the  potential  for it to be applied to tasks that are
conceptually  similar and, more important, to tasks that have not
yet been conceived. 




More information about the jcifs mailing list