Announcement

Collapse
No announcement yet.

printing graphics screens

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Jonathan Simpson
    replied
    Wanted to add... like I said, it DOES NOT always work, but it usually works,
    especially on older printers that are not Host based. It works on some
    host based printers as well. But be warned, if it does not work, you
    better have the printers power button or cord ready to go


    ------------------
    Jonathan Simpson

    Leave a comment:


  • Jonathan Simpson
    replied
    Well, heres a cool trick that works with some of the HP printers...
    It's useless for on the fly images, but if you can create an image
    in advance and know what printer will be used, you can try this.
    It should work with all printers, but I've had problems with a few.
    First things first, you install a new printer using the driver for your
    target printer, but set the port to "file". Then print your graphic (from paint or wherever)
    using that printer. Choose an appropriate file name. Next, open the file
    in edit, or notepad... or create a program which does the next step for you.
    Finally, remove the LAST chr$(12) (form feed) from the file.

    You now have a driver created image of... your image. Without the form feed,
    it should print where you tell it to, so you can print text before and after it.
    This is great for adding a signature or logo to a form that you will
    print out on a known printer.



    ------------------
    Jonathan Simpson

    Leave a comment:


  • Davide Vecchi
    replied
    aarggghh... it had to be
    http://www.powerbasic.com/support/pb...read.php?t=298

    i hope i didn't push anyone into an endless loop

    ------------------
    davide vecchi
    [email protected]

    Leave a comment:


  • Lance Edmonds
    replied
    Uh, that's <U>this</U> topic, Davide.

    GRAPHICS.COM is fine but only if your printer supports DOS -- that is, a USB or Windows-only printer will sink you.

    A more flexible way would be to save the screen as a BITMAP file, and then print it from a windows app (or print to *ANY* printer from your DOS app using a product like my DOSPRINT utility. Note: DOSPRINT supports about six different image file formats such as PCX, JPG, etc, so you are not limited to BMP).

    Source code to create a bitmap from a DOS graphics screen can be found at www.allbasiccode.com

    You might also find some useful stuff in the DOS GRAPHICS area at http://www.powerbasic.com/files/pub/pbdos/graphics/

    I hope this helps!


    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>

    Leave a comment:


  • Davide Vecchi
    replied
    check this post to see if it can help you: http://www.powerbasic.com/support/pb...ead.php?t=1240
    i didn't read it deeply though.

    ------------------
    davide vecchi
    [email protected]

    Leave a comment:


  • wolfgang miller
    replied
    Adrian,

    To print a graphics screen you would need to load graphics.com first.
    You can use a DOS shell command, or load it when DOS starts-up.

    You can even call interupt 5 to print.

    Graphics.com should be in the DOS directory.

    Regards,

    Wolfgang

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

    Leave a comment:


  • Mel Bishop
    replied
    Well, LPRINT is to the printer what PRINT is to the monitor.
    Just make sure you have a printer attached to your LPT port.
    DOS programs can't get to USB port(s) so if you have a USB
    printer, you'll have to look elsewhere (maybe Lance's DOSPRINT).

    In as far as dumping a graphics screen to printer, good luck.
    The only way that I can think to do it would be to read the
    screen pixels, put the data into a string$ (in accordance with
    your printer specifications) then LPRINT the string to your
    printer.


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

    Leave a comment:


  • Adrian Camacho
    started a topic printing graphics screens

    printing graphics screens

    i am new using PB3.5 and maybe this question is so easy to you,
    i made a program where i use VIEW to define an area on the screen,
    this area is used to made a graphic of dispertion using coordinates
    unitedes by a line each pair of coordinates,and i would
    like to know how could i send this information to my printer.
    Maybe something like LPRINT is to PRINT.


    ------------------
Working...
X