[REBOL] Re: Using a printer in Windows
From: riusa:email:it at: 18-Apr-2002 9:59
Hi,
I have a non-profit organization, I solved the printing problem making a
rebol program which...
1) format my DB data in HTML format
2) save the file to disk
3) open the HTML file using function "BROWSE"
I think this is a very good solution.
bye!
--Alessandro--
> Andrew,
>
> Thanks for responding. Does this mean that there is no way to print
> directly to a printer? I have been unable to find even one reference to
> printing hardcopy in any of the 3 rebol books I have or on the rebol
website.
> Here is my dilemma: we have a database that holds data of donations to
our
> non-profit organization. I have made a program to create a receipt for
> each donation, and email it to the donor. Problem: some donors don't
have
> email addresses. To them I must print out a receipt on paper. Also, I
> need to be able to print out mailing labels.
>
> Is there really actually no easy way to do this?
>
> The printer I use is not shared, but local to my computer (if that helps).
>
> Louis
>
> At 08:43 PM 4/17/2002 +1200, you wrote:
> >That code doesn't work well over a network operating system.
> >
> >Andrew Martin
> >ICQ: 26227169 http://valley.150m.com/
> >-><-
> >
> >----- Original Message -----
> >From: "Dr. Louis A. Turk" <[louisaturk--eudoramail--com]>
> >To: <[rebol-list--rebol--com]>
> >Sent: Wednesday, April 17, 2002 11:08 AM
> >Subject: [REBOL] Re: Using a printer in Windows
> >
> >
> > > Hi rebols,
> > >
> > > There doesn't seem to be much in the archives about printing to a real
> > > printer (in my case a HP LaserJet III). I found the following
code from
> > > Andrew, but I can't seem to get it to work. Perhaps my problem is
that my
> > > printer is on port lpr2:
> > >
> > > I thought that I had this figured out once, but I can't seem to
find the
> > > script that used it.
> > >
> > > I'm using Windows 2000, but also would like to do it running under
Linux.
> > >
> > > For my particular need right now I want to print plain text
directly to
> >the
> > > printer. I would rather not have to make html or pdf files first.
> > >
> > > Louis
> > >
> > > At 09:19 AM 1/9/2002 +1300, you wrote:
> > > >Philippe wrote:
> > > > > I want to know if it's possible to user a printer from a rebol
program
> >?
> > > >
> > > >Try something like this:
> > > >
> > > >REBOL [
> > > > Name: 'Printer
> > > > Title: "Printer"
> > > > File: %"Printer.r"
> > > > Author: "Andrew Martin"
> > > > eMail: [Al--Bri--xtra--co--nz]
> > > > Date: 27/Sep/2001
> > > > Example: [
> > > > Printer "This goes to the printer!"
> > > > Printer/Page "This prints this line and feeds a page!"
> > > > ]
> > > > ]
> > > >
> > > >Printer: func [
> > > > "Sends text to printer on //prn."
> > > > [catch]
> > > > Text [string!] "The text to be printed."
> > > > /Page "Append Carriage Return (CR) and Page Feed."
> > > > ][
> > > > throw-on-error [
> > > > secure [
> > > > %//prn [allow write]
> > > > ]
> > > > write %//prn Text
> > > > if Page [write/binary %//prn "^(0D)^(page)"]
> > > > Text
> > > > ]
> > > > ]
> > > >
> > > >]
> > > >
> > > >It works OK on Windows PCs. For other computers, you might have
to change
> > > >the %//PRN to something else.
> > > >
> > > >Andrew Martin
> > > >ICQ: 26227169 http://valley.150m.com/
> > > >-><-
> > > >
> > > >
> > > >
> > > >--
> > > >To unsubscribe from this list, please send an email to
> > > >[rebol-request--rebol--com] with "unsubscribe" in the
> > > >subject, without the quotes.
> > >
> > > --
> > > To unsubscribe from this list, please send an email to
> > > [rebol-request--rebol--com] with "unsubscribe" in the
> > > subject, without the quotes.
> > >
> >
> >
> >--
> >To unsubscribe from this list, please send an email to
> >[rebol-request--rebol--com] with "unsubscribe" in the
> >subject, without the quotes.
>
> --
> To unsubscribe from this list, please send an email to
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
>
++++++++++++++++++++++++++++++++++++++++++++
Alessandro Manotti
Presidente dell'Associazione "RIUSA"
Sito web: http://riusa.apritisesamo.net
email: [riusa--email--it]
mailing-list: [riusa-ml--yahoogroups--com]
Telefono: 347.63.43.231
--
Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f
Sponsor:
Cambia le casse del tuo Pc! Scegli i potentissimi speaker Hercules XPS510
Qualit=E0 elevata e costo contenuto!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=360&d=18-4