[REBOL] Re: Using a printer in Windows
From: ronald:free at: 19-Apr-2002 0:43
Bonjour Ammon,
Thursday, April 18, 2002, 11:18:40 PM, vous avez écrit:
AJ> you can even go as far as placing "window.close()" (without the quotes) after
AJ> the "self.print()" to have the document close itself when it is printed. ;-))
AJ> Enjoy!!
AJ> Ammon
AJ> A short time ago, Ronald Gruss, sent an email stating:
>> This script was sent a time ago, but it works well on my W98 SE system
>>
>>
>> REBOL [
>> Title: "Auto printing via Browser."
>> File: %"HTML Print.r"
>> Author: "Andrew Martin"
>> eMail: [Al--Bri--xtra--co--nz]
>> ]
>>
>> File: %PrintMe.html
>> text: "Ceci est une tentativ d'impression..."
>>
>> write File rejoin [{
>> <HTML>
>> <HEAD>
>> </HEAD>
>> <BODY>
>> <SCRIPT LANGUAGE="JavaScript">
>> self.print();
>> </SCRIPT>}
>> text
>> {</BODY>
>> </HTML>
>> }]
>>
>> browse File
>>
>> HIH
I'm not the author of this script that I retrieved in my mail client
archive ; thanks to Andrew Martin !!
I tried your tip, but it does'nt work : the browser asks if I want the
window to be closed, but no printing in that case !!
--
Regards,
Ronald