print a BMP with a string in line

print a BMP with a string in line

Postby dbSoft » Fri Sep 12, 2008 10:48 am

Hi in all
I would want your help
I have in a field of BDF File a string with address from a BMP picture
I want to print a situation in which
The place of picture c:\bmp\test 01. bmp and the picture
How does become this?

I thank,
With price Yannis
User avatar
dbSoft
 
Posts: 16
Joined: Thu Oct 13, 2005 8:31 pm
Location: Greece

Re: print a BMP with a string in line

Postby Patrick Mast » Fri Sep 12, 2008 11:07 am

Hello,

Try this:
Code: Select all  Expand view  RUN
#include "FiveWin.ch"

PROCEDURE Main()

   LOCAL cFile:="C:\Bitmaps\agua2.bmp"
   LOCAL oBMP,oPrn
   
   IF MsgYesNo("Print " + cFile + "?")
   
      DEFINE BITMAP oBmp FILE (cFile)
     
      PRINT oPrn
        PAGE
          oPrn:SayBitmap( 1, 1, cFile )
        ENDPAGE
      ENDPRINT
     
      MsgInfo(cFile + " sent to printer.")
     
   ENDIF   

RETURN


You can assign cFile also from your database like cFile:=field->BITMAP

Patrick
User avatar
Patrick Mast
 
Posts: 246
Joined: Sat Mar 03, 2007 8:42 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 67 guests