Printing on (network) printer: output of formatted documents
[1/3] from: coussement:c:itc:mil:be at: 21-Dec-2000 11:40
Hi Rebolians: After getting the answer of Mr Ric Shepard [[ric_shepard--fishgame--state--ak--us]] concerning my question about printing on a network printer, I got to work and wanted to find any way for printing good formatted documents like MS Word or HTML pages. Well, here is description of the result. It's just another hack, but it might help peoples out of troubles, as printing remains important in today's professional life. Sorry for the users of other OS, but I only test it with the MS-World. first connect our network printer (proposed by Ric) - using Rebol/Command or DOS Prompt:
>> call "NET USE LPTx \\SERVER\PRINTER"
open a port in Rebol:
>> ptr: open/lines %LPTx
Your printer is ready to serve. Now we have to provide it with printer formatted data... Those are easy to get, following this procedure (valid for most MS applications): Create your document, let's say a *.doc one, format it as you like. Choose in the menu > File > Print and thick the option 'print to file'. Save your *.prn creation. this one is formatted into your choosen printer language (like postcript, PS-Adobe or other...) Back to REBOL, just send it to the printer:
>> insert tail ptr %the-file.prn >> close ptr
The document is printed. Just kill the net connection:
>> call "NET USE LPTx /DELETE"
Again, it's just a hack, waiting for better from RT. Hope it helps ... Regards, Christophe
[2/3] from: gchiu:compkarori at: 22-Dec-2000 6:38
On Thu, 21 Dec 2000 11:40:30 +0100 "CRS - Psy Sel/SPO, COUSSEMENT Christophe, CPN" <[COUSSEMENT--C--ITC--mil--be]> wrote:
> Create your document, let's say a *.doc one, format it as > you like.
<<quoted lines omitted: 3>>> choosen printer > language (like postcript, PS-Adobe or other...)
What can you do if you have hundreds of documents to print, and you don't want to do file > print for each one? -- Graham Chiu
[3/3] from: larry::ecotope::com at: 21-Dec-2000 10:14
Hi Cristophe Actually, printing to a network printer under Windows can be done with Core and View as well as Command. If the network printer is in Network Neighborhood as \\server\printer and you have a prn file myfile.prn (which may be binary!) in the current dir you can just use write/binary %/server/printer read/binary %myfile.prn Cheers -Larry ----- Original Message ----- From: CRS - Psy Sel/SPO, COUSSEMENT Christophe, CPN <[COUSSEMENT--C--ITC--mil--be]> To: REBOL List (E-mail) <[rebol-list--rebol--com]> Sent: Thursday, December 21, 2000 2:40 AM Subject: [REBOL] Printing on (network) printer: output of formatted documents
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted