I had problems printing larger bmp-files with EasyReport.
Now I check if the image is a bmp file and if yes I use method SayBitmap.
Now it is working fine.
I changed method PrintItem in VRD.prg like this:
- Code: Select all Expand view
if UPPER( cFileExt( cText ) ) = "BMP"
::oPrn:SayBitmap( ::ToPix( nItemTop, .T. ), ;
::ToPix( ::nLeftMargin + oItem:nLeft, .F. ), ;
cText, ;
::ToPix( oItem:nWidth, .F. ), ;
::ToPix( oItem:nHeight, .T. ) )
else
oImg:LoadImage( IIF( AT( "RES:", UPPER( cText ) ) <> 0, ;
SUBSTR( ALLTRIM( cText ), 5 ), NIL ), ;
VRD_LF2SF( cText ) )
//oImg:LoadBmp( VRD_LF2SF( IIF( cValue = NIL, cText, ALLTRIM( cValue ) ) ) )
::oPrn:SayImage( ::ToPix( nItemTop, .T. ), ;
::ToPix( ::nLeftMargin + oItem:nLeft, .F. ), ;
oImg, ;
::ToPix( oItem:nWidth, .F. ), ;
::ToPix( oItem:nHeight, .T. ) )
oImg:End()
endif
Best regards,
Otto