Request image2pdf/go to of rpreview.prg

Request image2pdf/go to of rpreview.prg

Postby kkyung » Mon Nov 30, 2009 5: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
kkyung
 
Posts: 12
Joined: Thu Nov 17, 2005 2:53 am

Re: Request image2pdf/go to of rpreview.prg

Postby Otto » 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=3&t=17499#p91098

To send emails is a standard option in FastReport.

Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6144
Joined: Fri Oct 07, 2005 7:07 pm

Re: Request image2pdf/go to of rpreview.prg

Postby Richard Chidiak » Mon Nov 30, 2009 2: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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Re: Request image2pdf/go to of rpreview.prg

Postby kkyung » Tue Dec 01, 2009 1:57 am

Dear Richard

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

thank you !!

kkyung
kkyung
 
Posts: 12
Joined: Thu Nov 17, 2005 2:53 am

Re: Request image2pdf/go to of rpreview.prg

Postby nageswaragunupudi » Tue Dec 01, 2009 3: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: Select all  Expand view
  RPrevUserBtns( { |oPreview, oBar| ReportExtend( oPreview, oBar ) } )
 

and the function ReportExtend:
Code: Select all  Expand view
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
User avatar
nageswaragunupudi
 
Posts: 10335
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Request image2pdf/go to of rpreview.prg

Postby anserkk » Tue Dec 01, 2009 4: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
User avatar
anserkk
 
Posts: 1331
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Request image2pdf/go to of rpreview.prg

Postby kkyung » Tue Dec 01, 2009 4:22 am

I have checked that is the new features of FWH 9.05
kkyung
 
Posts: 12
Joined: Thu Nov 17, 2005 2:53 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 111 guests