;resolved!! DIB is the solution
;=========

PrintFileBitmap:

;simple is this one but i dont want that...
;call ShellExecuteA,,print,FileName, 0, 0, SW_HIDE

mov dword ,DOCINFO_size
mov dword ,thyssen
mov dword ,0
mov dword ,0
mov dword ,0

call CreateDCA, NULL,printername, NULL, NULL
mov ,eax
call StartDocA,,dinf
call StartPage,
call CreateCompatibleDC,
mov ,eax
call LoadImageA, , FileName,IMAGE_BITMAP, 0, 0,LR_LOADFROMFILE | LR_CREATEDIBSECTION
mov ,eax <- ok :) bmp is in format DIB
call CreateCompatibleBitmap,,201,189
mov ,eax
call SelectObject, ,
call BitBlt,,50,50,201,189,,0,0,SRCCOPY
;call Ellipse,,0,0,201,189


call DeleteDC,
call TextOutA,,100,100,YourTextHeHe,18

call EndPage,
call EndDoc,
call DeleteDC,

ret
;--------------
Posted on 2001-07-23 14:43:02 by Nguga