adding graphics to printing

Post Reply
hag
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California
Contact:

adding graphics to printing

Post by hag »

I'm Printing a xbrowse I'd like to add some graphics to the header and even columns headings.
Thank you
Harvey
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: adding graphics to printing

Post by nageswaragunupudi »

We can customize the report object created by xbrowse, in a codeblock provided in the 4th parameter of oBrw:Report( cTitle, lPreview, lModal, bSetUp, aGroupBy ) method.

Code: Select all

oBrw:Report( , , , { | oRep, oBrw, nCall| MyRepSetup( oRep, oBrw, nCall } )

*...
*...

static function MyRepSetUp( oRep, oBrw, nCall )

   if nCall == 1  // called by xbrowse after oRep created but before creation of columns
      return 2 // ask xbrowse to call second time after creation of columns
   endif
   // this call is after creation of columns
   // here we extend oRep and oRep:Columns array 
   // with any additonal features we want

return nil
 
Regards

G. N. Rao.
Hyderabad, India
hag
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California
Contact:

Re: adding graphics to printing

Post by hag »

Thanks for the quick response. I don't use oBrw:report() i use oPrn, oReport.
Thank you
Harvey
alfonso
Posts: 46
Joined: Fri Mar 09, 2007 1:31 pm
Location: España

Re: adding graphics to printing

Post by alfonso »

Hi Hag,

Could you see /fwh/samples/report directory in FWH? I think that you find this funcion (SayBitmap) in some samples prg.

Good luck.
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: adding graphics to printing

Post by nageswaragunupudi »

Then, we need to use oRep:SayBitmap( nRow, nCol, cBitmap, nWidth, nHeight, nScale, nAlphaLevel )
Regards

G. N. Rao.
Hyderabad, India
Post Reply