lokeshj / jzebra

Automatically exported from code.google.com/p/jzebra
0 stars 0 forks source link

Printing to network printer, server-side #67

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In looking through your source code, it appeared that printing directly to a 
network printer using the PrintToFile function, boiled down to these lines of 
code:
        OutputStream out = new FileOutputStream(outputPath.get());
        out.write(rawCmds.get().getBytes(charset.get().name()));
        out.close();
With outputPath being something like "\\PrinterServer\Labeler." I used the 
jZebra applet and was successful in carrying out this PrintToFile approach.
I am trying to duplicate this functionality using asp.net, so that printing can 
be done from other browsers (Internet Explorer Mobile 6 specifically) since 
then the printing will just be carried out server-side. It appears though that 
the FileStream class in C# won't accept a network socket like 
"\\PrinterServer\Labeler" but instead requires a file with an extension 
"\\server\folder\here.txt"
Do you know of an easy way to duplicate the functionality using asp.net? I 
thought it would be easy since the java code is basically those 3 lines. Any 
thoughts would be much appreciated.

Original issue reported on code.google.com by bvjon...@gmail.com on 1 Jun 2012 at 3:50

GoogleCodeExporter commented 9 years ago
Is there supposed to be a bug or enhancement request here?  It would help if 
the mailing list were used for questions and the bug tracker was left for bugs. 
 Marking as invalid.  Please reopen if this is in error.

To answer your question, no I dont know but this feature was requested by a 
company that was previously doing it with another language so there should be 
some info out there if you dig.

Original comment by tres.fin...@gmail.com on 1 Jun 2012 at 8:46

GoogleCodeExporter commented 9 years ago

Original comment by tres.fin...@gmail.com on 1 Jun 2012 at 8:47