Computer Science Canada

[Tutorial] Printing In Turing Using a Network or USB Printer

Author:  Blindmelon_53 [ Mon Apr 26, 2004 6:41 am ]
Post subject:  [Tutorial] Printing In Turing Using a Network or USB Printer

This is what I used to print on my school network (The code is done by Hacker Dan but I discovered which location to print to). All I had to do to get the location of the printer using the File->Print command and it says there the network location of the printer (for me anyways). I just subbed that information into where you would normally put "LPT1" and voila.

code:

%%Network%%
var dataout :int %the var can have any name you want

open: dataout,"//school/room-printer", put % //school/room-printer

put:dataout, "TEXT TO PRINT" %string to print
close: dataout %close the connection to the printer


As for USB you have to right click on your printer and give it sharing rights. You then type //computerName/printerName where you would normally put "LPT1". As far as USB printing I have not had too much luck. My printer will turn on but will not print, I dont know if its just me or for every one so let me know.

code:

%%USB%%
var dataout :int %the var can have any name you want

open:dataout,"//computerName/printerName",put
put:dataout, "TEXT TO PRINT" %string to print
close: dataout %close the connection to the printer

Author:  Flashkicks [ Mon Apr 26, 2004 6:45 am ]
Post subject: 

Hey- thats great man!! IT works! Very Happy

Author:  Raugrist [ Mon Apr 26, 2004 7:17 am ]
Post subject: 

Shouldn't this be in tutorials?

Author:  Blindmelon_53 [ Mon Apr 26, 2004 6:17 pm ]
Post subject: 

Well either way if I was looking for HELP with printing in turing I would probably have looked in the HELP section, but suit your self.

BTW thanks flashkicks, did u use this for the USB or network?

Author:  Flashkicks [ Mon Apr 26, 2004 7:16 pm ]
Post subject: 

Yaeh man- i only tried it for the netwerk. I shall give it a go on the USB tomorrow??..aiighty?... and then ill let you know who that goes.. Toodles
~Flashkicks

Author:  Dan [ Tue Apr 27, 2004 11:08 am ]
Post subject: 

well i tryed to uses this over my wifi network to send a measged to a usb printer on a nother computer and it did not work....

but the printer and network have tecnolgy that are kind of new so turing may need to chech up.

Author:  beard0 [ Mon Sep 19, 2005 12:25 pm ]
Post subject: 

This code allows you to print to any printer installed (user's choice). It pops up the normal dialogue with # of copies, print range, etc.
code:

var dataout :int %the var can have any name you want

open: dataout, "printer", put %yes, litterally the string "printer"
put:dataout, "STRING TO SEND TO PRINTER" %string to print
close: dataout %close the connection to the printer

Author:  jamonathin [ Mon Sep 19, 2005 1:43 pm ]
Post subject: 

It is bad enough that you brought up 2 old topics Beard0, but to say the exact same thing, three times? Two in tutorials, and one in help . . Confused

Author:  beard0 [ Mon Sep 19, 2005 1:59 pm ]
Post subject: 

Tony, in a PM to me, wrote:
hey,

could you repost that code sniplet about printing using Windows? it was an excellent addition to the tutorial, though unfortunatly that was lost in a site rollback.

Thx


Someone is likely to look only at one printing tutorial, not both. I didn't ask the question in help, someone else did. I'm not doing this to be an jerk, but to help other people.

Author:  jamonathin [ Tue Sep 20, 2005 7:46 am ]
Post subject: 

I guess I didn't understand the circumstances, my bad Razz. I juss figured that you discovered something, and tried to put it in where ever you could. Trowing Tomato


: