Home > Archive > Programming with dBASE > April 2006 > print pictures









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author print pictures
Otto

2006-04-07, 3:27 am

I have a program which prints data from a table to the printer using the ?
streaming output. I also would like to print pictures from a bitmap file
called 'picture.bmp'. What do I have to do?

Thanks in advance

Otto


Les Shewchuk

2006-04-07, 1:23 pm

I don't think you can. At least not with the streaming output. (? commands)

Look in the DUFLP with Vic's printer class. It converts streaming commands
to windows output and I think it can do some graphics, but I don't know if
it can print a bitmap.

I user the dBase report generator myself. It's a little tricky and lacks a
couple of features, but once you get over the learning curve, it's quite
powerful for putting things exactly where and when you want them.

If you are using a HP PCL compatible printer and you are feeling REALLY
adventurous, you could go in and decode and draw the images manually. We
used to do this with black and white signatures in dBase V for DOS and PCL
5, but this is not for those who wish to maintain their sanity.

Les Shewchuk


"Otto" < otto_slembeck@rogers
.com> wrote in message
news:5EjkcEfWGHA.1176@news-server...
>I have a program which prints data from a table to the printer using the ?
>streaming output. I also would like to print pictures from a bitmap file
>called 'picture.bmp'. What do I have to do?
>
> Thanks in advance
>
> Otto
>
>



Jean-Pierre Martel

2006-04-08, 3:23 am

In article <5EjkcEfWGHA.1176@news-server>, otto_slembeck@rogers
.com
says...
>
> I also would like to print pictures from a bitmap file
> called 'picture.bmp'. What do I have to do?


f = new form()
f.image1 = new image(f)
f.image1.datasource = "filename picture.bmp"
f.image1.alignment = 4 // true size
f.image1.anchor = 6
f.height = f.image1.height
f.width = f.image1.width
f.visible = false
f.open()
f.print(false,false)
f.close()

Jean-Pierre Martel, editor
The dBASE Developers Bulletin
Blue Star dBASE Plus Core Concepts Graduate
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com