The Render() method of a ReportListener is what does the rendering of the
objects on the report. You could put code in this method to render in a
different position. From the help file .. here's the parameter list that
gets passed in:
oReportListener.Render(nFRXRecNo,;
nLeft,nTop,nWidth,nHeight,;
nObjectContinuationType, ;
cContentsToBeRendered, GDIPlusImage)
Put code in this method to figure out the new Left position you want and
then issue a DODEFAULT.
nMyNewLeft = {Your calculations or whatever you want to figure out where to
place it}
NODEFAULT
DODEFAULT(nFRXRecNo,;
nMyNewLeft,nTop,nWidth,nHeight,;
nObjectContinuationType, ;
cContentsToBeRendered, GDIPlusImage)
> Hi All,
> Can any one help me with the (ReportListener Class) to how to change
[quoted text clipped - 5 lines]
> Best Regards;
> Tarik
t.alkathiri@gmail.com - 01 Jul 2008 08:02 GMT
> The Render() method of a ReportListener is what does the rendering of the
> objects on the report. You could put code in this method to render in a
[quoted text clipped - 30 lines]
> > Best Regards;
> > Tarik
Dear Cathy Pountney,
Thank you very much for your reply.
I have tried your example but I got some errors, and I really lost.
So could you please kindly send me a complete example as .prg and I
will tune it to my needs.
your help will be highly appreciated.
Thank again.
Best Regards;
Tarik
Cathy Pountney - 01 Jul 2008 13:10 GMT
> Dear Cathy Pountney,
> Thank you very much for your reply.
[quoted text clipped - 6 lines]
> Best Regards;
> Tarik
I wish I could provide such individualized service to each and every FoxPro
programmer .. but I don't have that much time on my hands. I can, however,
point you to an article on the MSDN website that I wrote a few years ago. It
has a bunch of reportlistener examples and maybe it's enough to get you
started.
http://msdn.microsoft.com/en-us/library/ms965281.aspx
~Cathy Pountney
t.alkathiri@gmail.com - 03 Jul 2008 10:10 GMT
> I wish I could provide such individualized service to each and every FoxPro
> programmer .. but I don't have that much time on my hands. I can, however,
[quoted text clipped - 5 lines]
>
> ~Cathy Pountney
Dear Cathy Pountney,
Your articles titled 'Report Writer In Action and What is new in the
VFP9 Report Writer' were so great and helpful to me,
Thank you very much for those article, and please do not just stop
there we always love to see new articles from you.
I did my flipping positions with your guidance (with many thanks to
you) and I managed to make a mirror form the report in the run time,
but I stuck in changing the alignments of the field (the offset) since
it is not in the Render Parameters, so could you kindly help me in
this thing.
your help will be very appreciated.
I know you are so busy but please give it a try.
Thank you so much for those articles.
Best Regards;
Tarik Alkathiri
Cesar - 04 Jul 2008 04:39 GMT
Hi Tarik,
There are some samples that deal with the render event:
1 - Full Justified texts in reports with GdiPlusX - REVISITED
http://weblogs.foxite.com/vfpimaging/archive/2008/06/15/6268.aspx
This sample allows you to draw full justified texts in your reports.
It contains code that deals with the case when the text does not fit in the
page, and a piece is left for the next page
2 - GDIPlusX and ReportListeners
http://blog.donnael.com/2007/10/gdiplusx-and-reportlisteners/
From Garret Fitzgerald, this is another sample that deals with the render
event, in this case for changing the stringtrimming behavior.
Hope this helps !
Cesar
>> The Render() method of a ReportListener is what does the rendering of the
>> objects on the report. You could put code in this method to render in a
[quoted text clipped - 42 lines]
> Best Regards;
> Tarik
t.alkathiri@gmail.com - 05 Jul 2008 10:45 GMT
> Hi Tarik,
>
[quoted text clipped - 12 lines]
>
> Cesar
Dear Cesar;
Thank you very much for your reply, I will check those 2 sites and I
hope I found my needs in them.
Thanks a lot for your help.
Best Regards,
Tarik