1. prt screen

Hi Euphorians,

I did a program which displays diagrams on the screen,
and I want to print them (A partial print screen).
Can somebody give me an idea how to do that ?
Thank you for any suggestion.
Jean.Hendrickx

new topic     » topic index » view message » categorize

2. Re: prt screen

On Sun, 1 Jun 1997 16:24:08 +0100 Jean Hendrickx
<jean.hendrickx at EURONET.BE> writes:

>Hi Euphorians,
>
>I did a program which displays diagrams on the screen,
>and I want to print them (A partial print screen).
>Can somebody give me an idea how to do that ?
>Thank you for any suggestion.
>Jean.Hendrickx
>

Don't know what your doing here.
LPT1 is the printer.
You should be able to do this.

integer printer
printer = open ("lpt1", "wb")
puts (printer, "Text going to printer.\n")
puts (printer, "More stuff to printer.\n")
close (printer)

\n is a linefeed you may need to include a
carriage return.

integer printer
printer = open ("lpt1", "wb")
puts (printer, "Text going to printer.")
puts (printer, {13, 10}) -- carriage return and linefeed.
puts (printer, "More stuff to printer.\n")
puts (printer, {13, 10}) -- carriage return and linefeed.
close (printer)

If you want to print graphics you will have to get or
develop a graphics driver for your printer.

new topic     » goto parent     » topic index » view message » categorize

3. Re: prt screen

Jean Hendrickx wrote:

> I did a program which displays diagrams on the screen,
> and I want to print them (A partial print screen).
> Can somebody give me an idea how to do that ?

Is it graphical???
What printer, Deskjet, Epson, Dot-matrix???

--
Regards,
        Daniel Berstein
        architek at geocities.com
        http://www.geocities.com/SiliconValley/Heights/9316

new topic     » goto parent     » topic index » view message » categorize

4. prt screen

hi,

JH> I did a program which displays diagrams on the screen,
JH> and I want to print them (A partial print screen).

    Lucius L Hilley III wrote :
> Don't know what your doing here.
> LPT1 is the printer.
    Ok sorry, I forget to say that's in graphical mode.
    Thank You yet for the help, it's useful.

    Daniel Berstein wrote :
> Is it graphical???
> What printer, Deskjet, Epson, Dot-matrix???
    It is in graphical mode 18
    The printer is a Deskjet 520.

  Sorry too.
  My question was a little confuse. My wish is to print
  a rectangular area of the screen. Always the same. This
  area shows every time another diagram. e.g.

------------------------

new topic     » goto parent     » topic index » view message » categorize

5. prt screen

hi,

JH> I did a program which displays diagrams on the screen,
JH> and I want to print them (A partial print screen).

    Lucius L Hilley III wrote :
> Don't know what your doing here.
> LPT1 is the printer.
    Ok sorry, I forget to say that's in graphical mode.
    Thank You yet for the help, it's useful.

    Daniel Berstein wrote :
> Is it graphical???
> What printer, Deskjet, Epson, Dot-matrix???
    It is in graphical mode 18
    The printer is a Deskjet 520.
  Sorry too.
  My question was a little confuse. My wish is to print
  a rectangular area of the screen. Always the same. This
  area shows every time another diagram. e.g.

------------------------
---------



----------------------i
--------              i
                      i  <- screen
                      i
   map     --------   i
                      i
-------        /\  <------- area
           /\_/  \    i
           --------   i
                      i
  title               i
                      i
                      i
                      i
                      i
----------------------i

Many thanks.
Jean.Hendrickx

new topic     » goto parent     » topic index » view message » categorize

6. prt screen

Jean Hendrickx writes:
JH> I did a program which displays diagrams on the screen,
JH> and I want to print them (A partial print screen).

1. Use save_screen() to save a rectangular region of the screen
   as a bitmap (.BMP) file.

2. Use a graphics program to print the .BMP file on your printer.
   The Accessories/"Paint" program on Windows 95 will do this. So will th=
e
   Accessories/"Paintbrush" program on Windows 3.1. They even print corre=
ctly =

   in color on my HP 550C.
   =

Regards,
  Rob Craig
  Rapid Deployment Software

new topic     » goto parent     » topic index » view message » categorize

7. Re: prt screen

Jean Hendrickx wrote:

>     It is in graphical mode 18
>     The printer is a Deskjet 520.

        Mmmhh... If you have the know the adecuate printer ecape codes
for the your Deskjet printer, maybe I can help you code an Euphoria
graphics print routine (sounds great!). I have an HP 660C abd tried
several times get these guys at Hewlett Pachard CHILE fax me the info
(in the user manual they say they fax this info!!!). People at Epson
are better ;) in the user manual of my stylus 800+ comes a small (but
useful) documentation about setting the printer for graphics printing.

        If you have time, search the web for information about "PCL",
that's the HP printing "protocol" (Epson uses ESC/P2).

--
Regards,
        Daniel Berstein
        architek at geocities.com
        http://www.geocities.com/SiliconValley/Heights/9316

new topic     » goto parent     » topic index » view message » categorize

8. Re: prt screen

To Jean (and anyone who has an HP Deskjet):

I found some info about PCL at HP's homepage, the URL is:

Hope this help a bit.

--
Regards,
        Daniel Berstein
        architek at geocities.com
        http://www.geocities.com/SiliconValley/Heights/9316

new topic     » goto parent     » topic index » view message » categorize

9. prt screen

hi,
Thanks for all the help. I thought it'll be easy but with several
printers and different codes ... Well we did the survey of
the situation. Keeping in mind the 'philosophy' of sharring programs
the best for me is to save the screen and use a different program to
print the .BMP file, instead of making one working with _my_ hardware
only.
Regards,
jean.hendrickx at infoboard.be

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu