FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Request image2pdf/go to of rpreview.prg
Posts: 12
Joined: Thu Nov 17, 2005 02:53 AM

Request image2pdf/go to of rpreview.prg

Posted: Mon Nov 30, 2009 05:03 AM

Hi, everybody,

According to my client requirement, they need 2 more options on rpreivew.prg

  • one key to pdf preview for email purpose
  • go to particular page # (it is very useful if the reports has few hundred pages)

I have read from previous posts some FWH user using image2pdf on preview or "go to page #" function

Can someone share experience or examples for me.

Thanks a lot

my email is kkyung@autonet.com.hk

Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM

Re: Request image2pdf/go to of rpreview.prg

Posted: Mon Nov 30, 2009 12:55 PM

Hello Kkyung,

You could try FastReport.

This topic shows how to use the ā€œOutline featureā€.

viewtopic.php?f=3t=17499#p91098

To send emails is a standard option in FastReport.

Best regards,
Otto

&

Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM

Re: Request image2pdf/go to of rpreview.prg

Posted: Mon Nov 30, 2009 02:53 PM

Kkyung,

IMAGE2PDF is an excellent add on to email a previewed report

I have sent to your email a copy of rpreview modified so you can see the changes and a screen hard copy of the preview

I have been using it for several years now, it works great

HTH

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 12
Joined: Thu Nov 17, 2005 02:53 AM

Re: Request image2pdf/go to of rpreview.prg

Posted: Tue Dec 01, 2009 01:57 AM

Dear Richard

I have got your email, I will review it later on,

thank you !!

kkyung

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: Request image2pdf/go to of rpreview.prg

Posted: Tue Dec 01, 2009 03:48 AM
It is now possible to add additional buttons and additional functionality to RPreview, without modifying and recompiling RPreview.prg.

We can place this code at any place in our program before using RPreivew or preferably at the beginning of the program
Code (fw): Select all Collapse
   RPrevUserBtns( { |oPreview, oBar| ReportExtend( oPreview, oBar ) } )

and the function ReportExtend:
Code (fw): Select all Collapse
function ReportExtend( oPreview, oBar )

   DEFINE BUTTON OF oBar ;
      RESOURCE 'SAVE' ;  // from our resource or bitmap file
      TOOLTIP 'Save To PDF' ;
      ACTION Preview2PDF( oPreview )

   DEFINE BUTTON OF oBar ;
      RESOURCE 'MAIL' ; // from our resource or bitmap file
      TOOLTIP 'Mail PDF as Attachment ' ;
      ACTION Preview2Mail( oPreview )

return nil

Now these two buttons appear in the RPreview as if it is a part of the Preview. There is no need to alter RPreview program and recompile
Regards



G. N. Rao.

Hyderabad, India
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM

Re: Request image2pdf/go to of rpreview.prg

Posted: Tue Dec 01, 2009 04:15 AM
Dear Mr.Rao,

It is now possible to add additional buttons and additional functionality to RPreview, without modifying and recompiling RPreview.prg.


That is a great information.

Regards
Anser
Posts: 12
Joined: Thu Nov 17, 2005 02:53 AM

Re: Request image2pdf/go to of rpreview.prg

Posted: Tue Dec 01, 2009 04:22 AM

I have checked that is the new features of FWH 9.05

Continue the discussion