I'm trying to use your printer dll file to print out a bitmap for my colouring book program.
I've downloaded the dll but do you put it in the windows/system folder or the project folder for my program?
Also here is the code that IanM supplied for saving a bitmap
function SaveBitmap(File as string, Bmp as integer)
local x as integer
local y as integer
local Colour as dword
local OldBmp as integer
local Width as integer
local Height as integer
local PadSize as integer
OldBmp=current bitmap()
set current bitmap Bmp
Width=bitmap width()
Height=bitmap height()
PadSize=4-((Width*3) mod 4)
if PadSize=4 then PadSize=0
if file exist(File) then delete file File
open to write 1, File
write byte 1, asc("B")
write byte 1, asc("M")
write long 1, 26+( ((Width*3)+PadSize) * Height )
write word 1, 0
write word 1, 0
write long 1, 26
write long 1, 12
write word 1, Width
write word 1, Height
write word 1, 1
write word 1, 24
Width=Width-1
Height=Height-1
lock pixels
for y=Height to 0 step -1
for x=0 to Width
Colour=point(x,y)
write byte 1, Colour
write byte 1, Colour >> 8
write byte 1, Colour >> 16
next x
if PadSize > 0
for x=1 to PadSize
write byte 1,0
next x
endif
next y
unlock pixels
close file 1
set current bitmap OldBmp
endfunction
How would I incorporate your code to print the bitmap out?
Heres what I'm trying to do:
My screen size is 800x600 on bitmap 0, the part of the screen I need to save and print out is start x,y= 139,10 and width=640 height=430.
Please help.
Also does anyone know of a program to create an install exe like when you get a game, so I can put all my files into it and then the person downloading the program has to run it and my program then installs onto the hard drive with all the correct files in place?

New to DBPro comin from AMOS on the Amiga!
http://homepage.ntlworld.com/paul.harthen/banner.jpg[/img]