adding graphics to printing

adding graphics to printing

Postby hag » Sat Feb 27, 2010 10:31 pm

I'm Printing a xbrowse I'd like to add some graphics to the header and even columns headings.
Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California

Re: adding graphics to printing

Postby nageswaragunupudi » Sun Feb 28, 2010 2:02 am

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  Expand view
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
User avatar
nageswaragunupudi
 
Posts: 10627
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: adding graphics to printing

Postby hag » Sun Feb 28, 2010 2:42 am

Thanks for the quick response. I don't use oBrw:report() i use oPrn, oReport.
Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California

Re: adding graphics to printing

Postby alfonso » Sun Feb 28, 2010 10:51 am

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.
alfonso
 
Posts: 46
Joined: Fri Mar 09, 2007 1:31 pm
Location: España

Re: adding graphics to printing

Postby nageswaragunupudi » Sun Feb 28, 2010 10:51 am

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

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10627
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

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