FastReport: PDF export

FastReport: PDF export

Postby Marco Turco » Mon Sep 16, 2013 3:30 pm

Hi all,
I'm succesfully using Fastreport (spirin class) for my FWH apps.
I need to provide my customers a function to export in PDF just some pages of the report.
I know the method FrPrn:SetProperty("RTFExport","FileName",cfile) but it exports all the report, not single pages.
Any ideas ? Thanks in advance.
Best Regards,

Marco Turco
SOFTWARE XP LLP
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: FastReport: PDF export

Postby James Bott » Mon Sep 16, 2013 3:55 pm

This is not a good solution but maybe you can create a new report that only shows the pages you want exported to the PDF.
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: FastReport: PDF export

Postby Marco Turco » Mon Sep 16, 2013 4:55 pm

Hi James,
it's a bit complex that way.
I checked it is easy to generate an image file for each report page.
Do you know if there is a way to generate a PDF file from FW adding tiff or jpg files ?
Best Regards,

Marco Turco
SOFTWARE XP LLP
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: FastReport: PDF export

Postby nageswaragunupudi » Mon Sep 16, 2013 5:14 pm

Regards

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

Re: FastReport: PDF export

Postby Marco Turco » Mon Sep 16, 2013 8:43 pm

Solved, thank you for the suggest Rao.
Best Regards,

Marco Turco
SOFTWARE XP LLP
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: FastReport: PDF export

Postby Otto » Mon Sep 16, 2013 9:18 pm

Marco, would you be so kind to post how.
Thanks in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6005
Joined: Fri Oct 07, 2005 7:07 pm

Re: FastReport: PDF export

Postby Marco Turco » Tue Sep 17, 2013 7:55 am

Hi Otto,
I had a single FRH report with multiple letters inside.
My target was to estract each letter from the report, convert it in a PDF document and send each via email to the recipient.

To do this I have found the following solution:
- using the method oFRH:Calc("Page#") and adding 1 when each letter is added to the report I know which is the report page number where the letter start
- when the report is complete I export it in jpg using the jpeg export method. This method automatically create multiple jpg files with the page number (example tmp.1.jpg,tmp.2.jpg...)
- due the fact I know which is the starting page no. for each letter I also know which is the name of the jpg files related, so using the FWPDF class as Rao suggested I can create a PDF merging the jpg related to the single letters.
Best Regards,

Marco Turco
SOFTWARE XP LLP
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: FastReport: PDF export

Postby nageswaragunupudi » Wed Sep 18, 2013 12:46 pm

We introduced a new function
FWJPGTOPDF( aJpgFiles, cPdf )
in FWH13.08 revised build now available for download.
Regards

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 93 guests