#include "FiveWin.ch"
function Main()
USE Customer
Browse()
USE
return nil
function cTempFile( cPath, cExtension ) // returns a temporary filename
local cFileName
static cOldName
DEFAULT cPath := "", cExtension := ""
if ! "." $ cExtension
cExtension = "." + cExtension
endif
while File( cFileName := ( cPath + LTrim( Str( GetTickCount() ) ) + cExtension ) ) .or. ;
cFileName == cOldName
end
cOldName = cFileName
return cFileName
static func PrintImage( oImage )
local oPrn, nVeces, oDlg, oSay
DEFINE DIALOG oDlg TITLE "Generando la impresión" SIZE 200, 100
@ 1, 1 SAY oSay PROMPT "Página número 0"
ACTIVATE DIALOG oDlg NOWAIT CENTER
oImage:LoadBmp("eva.jpg")
PRINT oPrn NAME "Image Printing" PREVIEW
FOR nVeces = 0 TO 100
oSay:SetText( "Página número " + AllTrim( Str( nVeces + 1 ) ) )
PAGE
oPrn:SayImage( 0, 0, oImage, 2000, 3000 )
ENDPAGE
NEXT
oDlg:End()
ENDPRINT
return nil
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: Google [Bot], SantaCroya and 54 guests