rffr3 20manual
rffr3 20manual
rffr3 20manual
0 Users Manual
Users Manual
www.rarefind.com
Page 1 of 58
Table of Contents
Introduction.............................................................................................3
Installation Trial Edition........................................................................4
Installation Registered Edition..............................................................5
Re-Compiling/Re-Installing through Batch Files - Registered Edition......6
Re-Compiling/Re-Installing Manually - Registered Edition.....................10
Un-Installation.......................................................................................14
Architectural overview - Class Hierarchy................................................15
How to use RareFind FastReport Export Filters?.....................................16
Exporting Reports Programmatically......................................................16
Using FastReport ExportFilters in Web Server Applications....................17
Using Email and FTP...............................................................................18
Properties and Events explained............................................................19
Using LicenseKey property.....................................................................44
Ordering and Delivery.............................................................................44
How to Buy the product..........................................................................44
Contact...................................................................................................48
www.rarefind.com
Page 2 of 58
Introduction
FastReport ExportFilters is a suite of export filters for FastReport. It is compatible
with Borland Delphi and C++Builder. You can now save your reports as PDF, HTML,
DOC, Excel, JPEG, GIF, BMP, EMF and WMF. Its WYSIWYG and generates crisp
looking copies of your reports, exactly as they appear in the preview. FastReport
ExportFilters requires NO additional software. It is 100% native Object Pascal and
compiles compactly into your executable file.
Enjoy!
www.rarefind.com
Page 3 of 58
Invoke the Setup program. The Setup program copies all files to a folder of your
choice and automatically registers FastReport ExportFilters into the development
environment of Delphi.
A new tab named 'RF FastReport Export' should now appear on the
component palette!
www.rarefind.com
Page 4 of 58
Invoke the Setup program. The Setup program copies all files to a folder of your
choice and automatically registers FastReport ExportFilters into the development
environment of Delphi or C++Builder.
Note:
Setup compiles the packages while installing. If the components fail to install,
please refer to section "Re-compiling/Re-Installing - Registered Edition".
www.rarefind.com
Page 5 of 58
Close Delphi.
Open the <FastReport ExportFilters>\Source folder and run the file
'COMPILED4.bat'.
Run Delphi.
If the 'RF FastReport Export' tab is not present on the component palette, follow the
installation instructions below.
Installing:
Run Delphi.
Choose File|Close All on the main menu.
Make sure the Library path is updated with <FastReport ExportFilters>\Lib\D4
Choose Tools|Environment Options... on the main menu.
Select the Library tab.
Check under Library Path under Directories.
Example:
If the original Library Path was "$(DELPHI)\Lib" and you installed FastReport
ExportFilters to
"C:\Program Files\RareFind\FastReport ExportFilters 3.0"
you should see the new Library Path as
"$(DELPHI)\Lib;C:\Program Files\RareFind\FastReport ExportFilters
3.0\Lib\D4"
Choose Component|Install Packages...
Click Add... and Open DCLRFFRED40.bpl from <FastReport ExportFilters>\Lib\D4
Click OK.
A new tab named 'RF FastReport Export' should now appear on the
component palette!
www.rarefind.com
Page 6 of 58
Close Delphi.
Open the <FastReport ExportFilters>\Source folder and run the file
'COMPILED5.bat'.
Run Delphi.
If the 'RF FastReport Export' tab is not present on the component palette, follow the
installation instructions below.
Installing:
Run Delphi.
Choose File|Close All on the main menu.
Make sure the Library path is updated with <FastReport ExportFilters>\Lib\D5
Choose Tools|Environment Options... on the main menu.
Select the Library tab.
Check under Library Path under Directories.
Example:
If the original Library Path was "$(DELPHI)\Lib" and you installed FastReport
ExportFilters to
"C:\Program Files\RareFind\FastReport ExportFilters 3.0"
you should see the new Library Path as
"$(DELPHI)\Lib;C:\Program Files\RareFind\FastReport ExportFilters
3.0\Lib\D5"
Choose Component|Install Packages...
Click Add... and Open DCLRFFRED50.bpl from <FastReport ExportFilters>\Lib\D5
Click OK.
A new tab named 'RF FastReport Export' should now appear on the
component palette!
www.rarefind.com
Page 7 of 58
Close Delphi.
Open the <FastReport ExportFilters>\Source folder and run the file
'COMPILED6.bat'.
Run Delphi.
If the 'RF FastReport Export' tab is not present on the component palette, follow the
installation instructions below.
Installing:
Run Delphi.
Choose File|Close All on the main menu.
Make sure the Library path is updated with <FastReport ExportFilters>\Lib\D6
Choose Tools|Environment Options... on the main menu.
Select the Library tab.
Check under Library Path under Directories.
Example:
If the original Library Path was "$(DELPHI)\Lib" and you installed FastReport
ExportFilters to
"C:\Program Files\RareFind\FastReport ExportFilters 3.0"
you should see the new Library Path as
"$(DELPHI)\Lib;C:\Program Files\RareFind\FastReport ExportFilters
3.0\Lib\D6"
Choose Component|Install Packages...
Click Add... and Open DCLRFFRED60.bpl from <FastReport ExportFilters>\Lib\D6
Click OK.
A new tab named 'RF FastReport Export' should now appear on the
component palette!
www.rarefind.com
Page 8 of 58
Close Delphi.
Open the <FastReport ExportFilters>\Source folder and run the file
'COMPILED7.bat'.
Run Delphi.
If the 'RF FastReport Export' tab is not present on the component palette, follow the
installation instructions below.
Installing:
Run Delphi.
Choose File|Close All on the main menu.
Make sure the Library path is updated with <FastReport ExportFilters>\Lib\D7
Choose Tools|Environment Options... on the main menu.
Select the Library tab.
Check under Library Path under Directories.
Example:
If the original Library Path was "$(DELPHI)\Lib" and you installed FastReport
ExportFilters to
"C:\Program Files\RareFind\FastReport ExportFilters 3.0"
you should see the new Library Path as
"$(DELPHI)\Lib;C:\Program Files\RareFind\FastReport ExportFilters
3.0\Lib\D7"
Choose Component|Install Packages...
Click Add... and Open DCLRFFRED70.bpl from <FastReport ExportFilters>\Lib\D7
Click OK.
A new tab named 'RF FastReport Export' should now appear on the
component palette!
www.rarefind.com
Page 9 of 58
Close Delphi.
Open the <FastReport ExportFilters>\Source folder and run the file
'COMPILED9.bat'.
Run Delphi.
If the 'RF FastReport Export' tab is not present on the component palette, follow the
installation instructions below.
Installing:
Run Delphi.
Choose File|Close All on the main menu.
Make sure the Library path is updated with <FastReport ExportFilters>\Lib\D9
Choose Tools|Options|Environment Options... on the main menu.
Select the DelphiOptions|Library Win32.
Check under Library Path under Directories.
Example:
If the original Library Path was "$(BDS)\Lib" and you installed FastReport
ExportFilters to
"C:\Program Files\RareFind\FastReport ExportFilters 3.0"
you should see the new Library Path as
"$(BDS)\Lib;C:\Program Files\RareFind\FastReport ExportFilters
3.0\Lib\D9"
Choose Component|Install Packages...
Click Add... and Open DCLRFFRED90.bpl from <FastReport ExportFilters>\Lib\D9
Click OK.
A new tab named 'RF FastReport Export' should now appear on the
component palette!
www.rarefind.com
Page 10 of 58
www.rarefind.com
Page 11 of 58
Close Delphi.
Open the <FastReport ExportFilters>\Source folder and run the file
'COMPILED10.bat'.
Run Delphi.
If the 'RF FastReport Export' tab is not present on the component palette, follow the
installation instructions below.
Installing:
Run Delphi.
Choose File|Close All on the main menu.
Make sure the Library path is updated with <FastReport ExportFilters>\Lib\D10
Choose Tools|Options|Environment Options... on the main menu.
Select the DelphiOptions|Library Win32.
Check under Library Path under Directories.
Example:
If the original Library Path was "$(BDS)\Lib" and you installed FastReport
ExportFilters to
"C:\Program Files\RareFind\FastReport ExportFilters 3.0"
you should see the new Library Path as
"$(BDS)\Lib;C:\Program Files\RareFind\FastReport ExportFilters
3.0\Lib\D10"
Choose Component|Install Packages...
Click Add... and Open DCLRFFRED10.bpl from <FastReport
ExportFilters>\Lib\D10
Click OK.
A new tab named 'RF FastReport Export' should now appear on the
component palette!
www.rarefind.com
Page 12 of 58
Run Delphi.
Choose File|Close All on the main menu.
Make sure the Library path is updated with <FastReport ExportFilters>\Lib\D4
Choose Tools|Environment Options... on the main menu.
Select the Library tab.
Check under Library Path under Directories.
Example:
If the original Library Path was "$(DELPHI)\Lib" and you installed FastReport
ExportFilters to "C:\Program Files\RareFind\FastReport ExportFilters 3.0"
you should see the new Library Path as
"$(DELPHI)\Lib;C:\Program Files\RareFind\FastReport ExportFilters
3.0\Lib\D4"
Choose File|Open... on the main menu.
Open the <FastReport ExportFilters>\Source\Main folder
Select RFExportD40.dpk and click open
Click Compile on the package editor
Choose File|Open... on the main menu.
Open the <FastReport ExportFilters>\Source folder
Select RFFRED40.dpk and click Open
Click Compile on the package editor
Copy RFFRED40.bpl from <FastReport ExportFilters>\Source to Windows\System
(or WinNT\System32 if you are on WindowsNT/2000)
Choose File|Open... on the main menu.
Select DCLRFFRED40.dpk and click Open
Click Compile on the package editor
Choose File|Close All on the main menu.
If the 'RF FastReport Export' tab is not present on the component palette, follow the
installation instructions below.
Rarefind Engineering Innovations
www.rarefind.com
Page 13 of 58
Installing:
A new tab named 'RF FastReport Export' should now appear on the
component palette!
Delphi 5
IMPORTANT - before you proceed with this installation:
Make sure you have the latest version of FastReport installed (www.fastreport.com).
Make sure the Setup program has copied all files to a folder of your choice and
included the <FastReport ExportFilters>\Lib\D5 path under Library Path of
Environment Options. Default path is C:\Program Files\RareFind\FastReport
ExportFilters 3.0\Lib\D5
FastReport ExportFilters provides many useful additional features that needs to be
enabled explicitly. Please open file 'PsDefines.inc' under <FastReport
ExportFilters>\Source to enable them.
Compiling:
Run Delphi.
Choose File|Close All on the main menu.
Make sure the Library path is updated with <FastReport ExportFilters>\Lib\D5
Choose Tools|Environment Options... on the main menu.
Select the Library tab.
Check under Library Path under Directories.
Example:
If the original Library Path was "$(DELPHI)\Lib" and you installed FastReport
ExportFilters to "C:\Program Files\RareFind\FastReport ExportFilters 3.0"
you should see the new Library Path as
"$(DELPHI)\Lib;C:\Program Files\RareFind\FastReport ExportFilters
3.0\Lib\D5"
Choose File|Open... on the main menu.
Open the <FastReport ExportFilters>\Source\Main folder
Select RFExportD50.dpk and click open
Click Compile on the package editor
Choose File|Open... on the main menu.
Open the <FastReport ExportFilters>\Source folder
Select RFFRED50.dpk and click Open
Click Compile on the package editor
Copy RFFRED50.bpl from <FastReport ExportFilters>\Source to Windows\System
(or WinNT\System32 if you are on WindowsNT/2000)
Choose File|Open... on the main menu.
Select DCLRFFRED50.dpk and click Open
Click Compile on the package editor
Choose File|Close All on the main menu.
If the 'RF FastReport Export' tab is not present on the component palette, follow the
installation instructions below.
www.rarefind.com
Page 14 of 58
Run Delphi.
Choose File|Close All on the main menu.
Make sure the Library path is updated with <FastReport ExportFilters>\Lib\D6
Choose Tools|Environment Options... on the main menu.
Select the Library tab.
Check under Library Path under Directories.
Example:
If the original Library Path was "$(DELPHI)\Lib" and you installed FastReport
ExportFilters to "C:\Program Files\RareFind\FastReport ExportFilters 3.0"
you should see the new Library Path as
"$(DELPHI)\Lib;C:\Program Files\RareFind\FastReport ExportFilters
3.0\Lib\D6"
Choose File|Open... on the main menu.
Open the <FastReport ExportFilters>\Source\Main folder
Select RFExportD60.dpk and click open
Click Compile on the package editor
Choose File|Open... on the main menu.
Open the <FastReport ExportFilters>\Source folder
Select RFFRED60.dpk and click Open
Click Compile on the package editor
Copy RFFRED60.bpl from <FastReport ExportFilters>\Source to Windows\System
(or WinNT\System32 if you are on WindowsNT/2000)
Choose File|Open... on the main menu.
Select DCLRFFRED60.dpk and click Open
Click Compile on the package editor
Choose File|Close All on the main menu.
If the 'RF FastReport Export' tab is not present on the component palette, follow the
installation instructions below.
Installing:
www.rarefind.com
Page 15 of 58
A new tab named 'RF FastReport Export' should now appear on the
component palette!
www.rarefind.com
Page 16 of 58
Delphi 7
IMPORTANT - before you proceed with this installation:
Make sure you have the latest version of FastReport installed (www.fastreport.com).
Make sure the Setup program has copied all files to a folder of your choice and
included the <FastReport ExportFilters>\Lib\D7 path under Library Path of
Environment Options. Default path is C:\Program Files\RareFind\FastReport
ExportFilters 3.0\Lib\D7
FastReport ExportFilters provides many useful additional features that needs to be
enabled explicitly. Please open file 'PsDefines.inc' under <FastReport
ExportFilters>\Source to enable them.
Compiling:
Run Delphi.
Choose File|Close All on the main menu.
Make sure the Library path is updated with <FastReport ExportFilters>\Lib\D7
Choose Tools|Environment Options... on the main menu.
Select the Library tab.
Check under Library Path under Directories.
Example:
If the original Library Path was "$(DELPHI)\Lib" and you installed FastReport
ExportFilters to "C:\Program Files\RareFind\FastReport ExportFilters 3.0"
you should see the new Library Path as
"$(DELPHI)\Lib;C:\Program Files\RareFind\FastReport ExportFilters
3.0\Lib\D7"
Choose File|Open... on the main menu.
Open the <FastReport ExportFilters>\Source\Main folder
Select RFExportD70.dpk and click open
Click Compile on the package editor
Choose File|Open... on the main menu.
Open the <FastReport ExportFilters>\Source folder
Select RFFRED70.dpk and click Open
Click Compile on the package editor
Copy RFFRED70.bpl from <FastReport ExportFilters>\Source to Windows\System
(or WinNT\System32 if you are on WindowsNT/2000)
Choose File|Open... on the main menu.
Select DCLRFFRED70.dpk and click Open
Click Compile on the package editor
Choose File|Close All on the main menu.
If the 'RF FastReport Export' tab is not present on the component palette, follow the
installation instructions below.
Installing:
A new tab named 'RF FastReport Export' should now appear on the
component palette!
www.rarefind.com
Page 17 of 58
Delphi 2005
IMPORTANT - before you proceed with this installation:
Make sure you have the latest version of FastReport installed (www.fastreport.com).
Make sure the Setup program has copied all files to a folder of your choice and
included the <FastReport ExportFilters>\Lib\D9 path under Library Path of
Environment Options. Default path is C:\Program Files\RareFind\FastReport
ExportFilters 3.0\Lib\D9
FastReport ExportFilters provides many useful additional features that needs to be
enabled explicitly. Please open file 'PsDefines.inc' under <FastReport
ExportFilters>\Source to enable them.
Compiling:
Run Delphi.
Choose File|Close All on the main menu.
Make sure the Library path is updated with <FastReport ExportFilters>\Lib\D9
Choose Tools|Options|Environment Options... on the main menu.
Select the DelphiOptions|Library-Win32.
Check under Library Path under Directories.
Example:
If the original Library Path was "$(BDS)\Lib" and you installed FastReport
ExportFilters to "C:\Program Files\RareFind\FastReport ExportFilters 3.0"
you should see the new Library Path as
"$(BDS)\Lib;C:\Program Files\RareFind\FastReport ExportFilters
3.0\Lib\D9"
Choose File|Open... on the main menu.
Open the <FastReport ExportFilters>\Source\Main folder
Select RFExportD90.dpk and click open
Copy RFExportD90.bpl from <FastReport ExportFilters>\LibD9 to
Windows\System (or WinNT\System32 if you are on WindowsNT/2000)
Click Compile on the package editor
Choose File|Open... on the main menu.
Open the <FastReport ExportFilters>\Source folder
Select RFFRED90.dpk and click Open
Click Compile on the package editor
Copy RFFRED90.bpl from <FastReport ExportFilters>\LibD9 to Windows\System
(or WinNT\System32 if you are on WindowsNT/2000)
Choose File|Open... on the main menu.
Select DCLRFFRED90.dpk and click Open
Click Compile on the package editor
Choose File|Close All on the main menu.
If the 'RF FastReport Export' tab is not present on the component palette, follow the
installation instructions below.
Installing:
A new tab named 'RF FastReport Export' should now appear on the
component palette!
Rarefind Engineering Innovations
www.rarefind.com
Page 18 of 58
Delphi 2006
IMPORTANT - before you proceed with this installation:
Make sure you have the latest version of FastReport installed (www.fastreport.com).
Make sure the Setup program has copied all files to a folder of your choice and
included the <FastReport ExportFilters>\Lib\D10 path under Library Path of
Environment Options. Default path is C:\Program Files\RareFind\FastReport
ExportFilters 3.0\Lib\D10
FastReport ExportFilters provides many useful additional features that needs to be
enabled explicitly. Please open file 'PsDefines.inc' under <FastReport
ExportFilters>\Source to enable them.
Compiling:
Run Delphi.
Choose File|Close All on the main menu.
Make sure the Library path is updated with <FastReport ExportFilters>\Lib\D10
Choose Tools|Options|Environment Options... on the main menu.
Select the DelphiOptions|Library-Win32.
Check under Library Path under Directories.
Example:
If the original Library Path was "$(BDS)\Lib" and you installed FastReport
ExportFilters to "C:\Program Files\RareFind\FastReport ExportFilters 3.0"
you should see the new Library Path as
"$(BDS)\Lib;C:\Program Files\RareFind\FastReport ExportFilters
3.0\Lib\D10"
Choose File|Open... on the main menu.
Open the <FastReport ExportFilters>\Source\Main folder
Select RFExportD10.dpk and click open
Copy RFExportD10.bpl from <FastReport ExportFilters>\LibD10 to
Windows\System (or WinNT\System32 if you are on WindowsNT/2000)
Click Compile on the package editor
Choose File|Open... on the main menu.
Open the <FastReport ExportFilters>\Source folder
Select RFFRED10.dpk and click Open
Click Compile on the package editor
Copy RFFRED10.bpl from <FastReport ExportFilters>\LibD10 to Windows\System
(or WinNT\System32 if you are on WindowsNT/2000)
Choose File|Open... on the main menu.
Select DCLRFFRED10.dpk and click Open
Click Compile on the package editor
Choose File|Close All on the main menu.
If the 'RF FastReport Export' tab is not present on the component palette, follow the
installation instructions below.
Installing:
www.rarefind.com
Page 19 of 58
A new tab named 'RF FastReport Export' should now appear on the
component palette!
www.rarefind.com
Page 20 of 58
Run C++Builder
Choose File|Close All on the main menu
Make sure the Library path is updated with < FastReport ExportFilters >\Lib\C5
Choose Tools|Environment Options... on the main menu
Select the Library tab
Check under Library Path under Directories
Example:
If the original Library Path was "$(BCB)\Lib" and you installed FastReport
ExportFilters to
"C:\Program Files\Pragnaan\ FastReport ExportFilters 3.20"
you should see the new Library Path as
"$(BCB)\Lib;C:\Program Files\Pragnaan\ FastReport ExportFilters
3.20\Lib\C5"
Choose File|Open... on the main menu
Open the <FastReport ExportFilters>\Source\Main folder
Select RFExportC50.dpk and click open
Click Compile on the package editor
Choose File|Open... on the main menu
Open the folder where you installed FastReport ExportFilters
Open the < FastReport ExportFilters >\Source folder
Select PsFREC50.bpk and click Open
Click Options and switch to the Directories/Conditionals tab
Under the BPI/LIB output enter '..\Lib\C5' and click OK
Click Compile on the package editor
Copy RFFREC50.bpl from < FastReport ExportFilters >\Lib\C5 to Windows\System
or (Winnt\System32 if you are on WinNT/2000)
Choose File|Open... on the main menu
Select DCLRFFREC50.dpk and click Open
Click Options and switch to the Directories/Conditionals tab
Under the BPI/LIB output enter '..\Lib\C5' and click OK
Click Compile on the package editor
Move all .hpp files from < FastReport ExportFilters >\Source to < FastReport
ExportFilters >\Lib\C5 folder
Choose File|Close All on the main menu
Choose Component|Install Packages...
Click Add... and Open DCLRFFREC50.bpl from < FastReport ExportFilters >\Lib\C5
Click OK
Installing:
www.rarefind.com
Page 21 of 58
Click Add... and Open DCLRFFREC50.bpl from < FastReport ExportFilters >\Lib\C5
Click OK.
A new tab named 'RF FastReport Export' should now appear on the
component palette!
IMPORTANT - before you proceed with this installation:
C++Builder 6
Make sure you have the latest version of FastReport installed (www.fastreport.com).
Make sure the Setup program has copied all files to a folder of your choice and
included the < FastReport ExportFilters >\Lib\C6 path under Library Path of
Environment Options. Default path is C:\Program Files\Pragnaan\ FastReport
ExportFilters 3.20\Lib\C6
FastReport ExportFilters provides many useful additional features that needs to be
enabled explicitly. Please open file 'PsDefines.inc' under < FastReport ExportFilters
>\Source to enable them.
Compiling:
Run C++Builder
Choose File|Close All on the main menu
Make sure the Library path is updated with < FastReport ExportFilters >\Lib\C6
Choose Tools|Environment Options... on the main menu
Select the Library tab
Check under Library Path under Directories
Example:
If the original Library Path was "$(BCB)\Lib" and you installed
PsFRExportFilters to
"C:\Program Files\Pragnaan\ FastReport ExportFilters 3.20"
you should see the new Library Path as
"$(BCB)\Lib;C:\Program Files\Pragnaan\ FastReport ExportFilters
3.20\Lib\C6"
Choose File|Open... on the main menu
Open the <FastReport ExportFilters>\Source\Main folder
Select RFExportC60.dpk and click open
Click Compile on the package editor
Choose File|Open... on the main menu
Open the folder where you installed FastReport ExportFilters
Open the < FastReport ExportFilters >\Source folder
Select PsFREC60.bpk and click Open
Click Options and switch to the Directories/Conditionals tab
Under the BPI/LIB output enter '..\Lib\C6' and click OK
Click Compile on the package editor
Copy RFFREC60.bpl from < FastReport ExportFilters >\Lib\C6 to Windows\System
or (Winnt\System32 if you are on WinNT/2000)
Choose File|Open... on the main menu
Select DCLRFFREC60.dpk and click Open
Click Options and switch to the Directories/Conditionals tab
Under the BPI/LIB output enter '..\Lib\C6' and click OK
Click Compile on the package editor
Move all .hpp files from < FastReport ExportFilters >\Source to < FastReport
ExportFilters >\Lib\C6 folder
Choose File|Close All on the main menu
www.rarefind.com
Page 22 of 58
Installing:
A new tab named 'RF FastReport Export' should now appear on the
component palette!
www.rarefind.com
Page 23 of 58
Un-Installation
1.
2.
3.
4.
Go to Start|Settings|Control Panel
Open Add/Remove Programs
Remove RareFind FastReport Export Filters 3.0 from the list
Un-install will complete
Note:
www.rarefind.com
Page 24 of 58
TfrxCustomExportFilter
TfrxCustomExportFilter
TRFExportMain
TRFExportMain
TRFExportGraphic
TRFExportGraphic
TRFExportDocument
TRFExportDocument
TRFExportPDF
TRFExportPDF
TRFExportHTML
TRFExportHTML
TRFExportDoc
TRFExportDoc
TRFExportExcel
TRFExportExcel
TRFExportJPEG
TRFExportJPEG
TRFExportBMP
TRFExportBMP
TRFExportGIF
TRFExportGIF
www.rarefind.com
TRFExportWMF
TRFExportWMF
TRFExportEMF
TRFExportEMF
Page 25 of 58
www.rarefind.com
Page 26 of 58
Delphi:
Add the unit RfFR_Routines to the uses clause of the WebModule unit
procedure TWebModule1.WebModule1WebActionItem1Action(Sender: TObject;
Request: TWebRequest; Response: TWebResponse; var Handled:
Boolean);
var
S: TMemoryStream;
begin
S := TMemoryStream.Create;
// REMOVE 'ReportForm' from the Auto-create forms list
with TReportForm.Create(nil) do
try
ExportToPDFInStream(frxReport1, S);
ExportToHMTLInStream(frxReport1, S);
ExportToDOCInStream(frxReport1, S);
ExportToExcelInStream(frxReport1, S);
ExportToJPEGInStream(frxReport1, S);
ExportToBMPInStream(frxReport1, S);
ExportToGIFInStream(frxReport1, S);
ExportToWMFInStream(frxReport1, S);
ExportToEMFInStream(frxReport1, S);
finally
Free;
end;
Response.ContentType := 'application/pdf';
Response.ContentStream := S;
// Do NOT free the stream,
// the response object will handle that task.
end;
ContentType
application/pdf
text/html
application/rtf
www.rarefind.com
Page 27 of 58
application/excel
image/gif
image/jpeg
image/bmp
Note: When exporting to HTML from a Web Server application, follow these tips:
1. Set SeparateFilePerPage property of PsRBExportHTML component to False.
2. Images, styles and script files will be created on the server. So, specify separate
folders for these files. (Otherwise, all the files will be created in the cgi-bin
directory.) Example:
RFExportHTML.ImageFolder := images;
RFExportHTML.CSSFileName := styles\myreport.css;
RFExportHTML.JavaScriptFileName := scripts\myreport.js;
Make sure these folder have READ permission.
3. The images, styles and script files that are created on the server will not be
deleted by PsRBExportDevices. Your application will have to periodically delete the
files.
FTP Reports:
Follow the steps below to FTP reports using FastReport ExportFilters.
Set FTPAfterGenerate to True.
Provide a handler for OnFTP event to set the FTP information which will then be
used for FTP. File Transfer is done using Indy components.
www.rarefind.com
Page 28 of 58
EmailAfterGenerate
FTPAfterGenerate
FileName
www.rarefind.com
Page 29 of 58
Type: string
Specifies the Licence key of FastReport ExportFilters
which shall be built in to the component, when user buys
the product.
OpenAfterGenerate
OpenFolder
OutputToUserStream
SilentExport
the
report
should
be
exported
www.rarefind.com
Page 30 of 58
Type: Boolean
Default: True
Specifies whether Property dialog should be displayed
before exporting the report.
ShowProgressDialog
UserStream
Events
OnCancelJob
Type: TNotifyEvent
TNotifyEvent = procedure(Sender: TObject) of object;
Triggers when an export operation is cancelled.
Example:
Delphi:
procedure TForm1.RFFRExportCancelJob (Sender:
TObject);
begin
// StatusBar1 should be there on TForm1.
StatusBar1.SimpleText :=
'Job cancelled';
end;
www.rarefind.com
Page 31 of 58
Type: TRFEMailEvent
TRFEMailEvent = procedure(Sender: TObject; EMailInfo:
TPsEMailInfo; var Continue: Boolean) of object;
Triggers just before sending E-Mail. Provide a handler for
this event to set E-Mail information which will then be
used to E-Mail report files. E-Mail is sent using Indy
components. Set Continue to True to trigger the event
continuously so that multiple E-Mails can be sent. Set
EMailInfo.CancelEMail to True inorder to cancel EMail
operation after OnEMail event is triggered. Set
EMailInfo.DeleteFilesAfterEMail to True to delete all
disk files that were created during export process, after
EMail operation is completed.
Note:
Enable
EMailFTPWithIndy
option
in
"PsDefines.inc" to get built-in support for FastNet or Indy
Components. "FRDefines.inc" is located in the directory
<FastReport ExportFilters>\Source.
Example:
Delphi:
var
AHost, AUserID, APassword: string;
ASubject, AReplyTo: string;
AFromAddress, AFromName: string;
ABody, AToAddressList: TStringList;
ACCList, ABCCList: TStringList;
procedure TForm1.RFFRExportPDFEMail (Sender:
TObject; EMailInfo: TPsEMailInfo; var
Continue: Boolean);
begin
with EMailInfo do
begin
Host := AHost;
UserID := AUserID;
Password := APassword;
Body.Assign(ABody);
Date := Now;
FromAddress := AFromAddress;
FromName := AFromName;
ReplyTo := AReplyTo;
Subject := ASubject;
RecipientList.Assign(AToAddress);
CCList. Assign(ACCList);
BCCList. Assign (ABCCList);
end;
end;
www.rarefind.com
Page 32 of 58
Type: TnotifyEvent
TNotifyEvent = procedure(Sender: TObject) of object;
Note:
This
event
is
available
only
when
EMailFTPWithIndy
is
enabled.
Enable
the
EMailFTPWithIndy option in "PsRBDefines.inc" to get
built-in support for Indy Components. "PsRBDefines.inc"
is
located
in
the
directory
<FastReport
ExportFilters>\Source.
Triggers when a connection is established.
Example:
Delphi:
OnEMailDisConnecte
d
procedure TForm1.
RFFRExportEMailConnected(Sender: TObject);
begin
ShowMessage('Connected');
end;
Type: TnotifyEvent
TNotifyEvent = procedure(Sender: TObject) of object;
Note:
This
event
is
available
only
when
EMailFTPWithIndy
is
enabled.
Enable
the
EMailFTPWithIndy option in "PsDefines.inc" to get
built-in support for Indy Components. "PsDefines.inc" is
located
in
the
directory
<FastReport
ExportFilters>\Source.
Triggers when a connection to a server is disconnected.
Example:
Delphi:
OnEMailError
www.rarefind.com
Page 33 of 58
OnEMailSuccess
procedure TForm1.
RFFRExportEMailStatus(axSender: TObject;
const axStatus: TIdStatus; const
asStatusText: string);
begin
ShowMessage(
'Status = ' + asStatusText);
end;
Type: TNotifyEvent;
Example:
Delphi:
www.rarefind.com
Page 34 of 58
OnFTPConnected
Type: TNotifyEvent
TNotifyEvent = procedure(Sender: TObject) of object;
Note:
This
event
is
available
only
when
EMailFTPWithIndy
is
enabled.
Enable
the
EMailWithIndy option in "PsDefines.inc" to get built-in
support for Indy Components. "PsRBDefines.inc" is
located in the directory < PsFRExportFiletrs >\Source.
Triggers when a connection is established.
Example:
Delphi:
OnFTPDisConnected
procedure TForm1.
RFFRxportEMailConnected(Sender: TObject);
begin
ShowMessage('Connected');
end;
Type: TNotifyEvent
TNotifyEvent = procedure(Sender: TObject) of object;
Note: This event is available only when EMailWithIndy
is enabled. Enable the EMailWithIndy option in
"PsRBDefines.inc" to get built-in support for Indy
Components. "PsDefines.inc" is located in the directory <
PsFRExportFiletrs >\Source.
Triggers when a connection to a server is disconnected.
Example:
Delphi:
procedure TForm1. RFFRExportEMailDisConnected
(Sender: TObject);
begin
ShowMessage('DisConnected');
end;
www.rarefind.com
Page 35 of 58
Type: TPsEMailErrorEvent;
TPsEMailErrorEvent = procedure(Sender: TObject; const
ErrMsg: string) of object;
Note: This event is available only when EMailWithIndy
is enabled.: Enable the EMailWithIndy option in
"PsRBDefines.inc" to get built-in support for Indy
Components. "PsDefines.inc" is located in the directory <
PsFRExportFiletrs >\Source.
Triggers when error is encountered while transferring the
files.
Example:
Delphi:
OnFTPStatus
www.rarefind.com
Page 36 of 58
Type: TNotifyEvent;
Example:
Delphi:
procedure TForm1.RFFRExportEMailSuccess (Sender:
TObject);
begin
ShowMessage('File Transfer Successful');
end;
OnStart
Type: TNotifyEvent;
TNotifyEvent = procedure(Sender: TObject) of object;
Triggers at the end of the document. Provide a handler
for this event to access the device object after the
document has been exported.
Example:
Delphi:
OnStartPage
www.rarefind.com
Page 37 of 58
OnFinish
OnFinishPage
www.rarefind.com
Page 38 of 58
TRFFRExportDocument = class(TRFFRExportMain)
Author
Type: string
This property stores the name of the author of the
report.
ExportImageFormat
Set the value for the Author Meta content, that will be
encoded into the document. The value you usually
specify is your name, the author of the report.
Type: TPsExportImageFormat
Default: ifJPG
TPsExportImageFormat = (ifJPG, ifBMP)
Specifies the Linked image file format for image controls
used in the report.
IncludetShapes
IncludeImages
ImagePixelFormat
JPEGQuality
www.rarefind.com
Page 39 of 58
Keywords
Subject
Title
TRFFRExportHTML = class(TRFFRExportDocument)
Properties: Run-time and Design-time
CSSFileName
Type: string
Stores the name of the CSS file.
DefaultFont
Image Folder
www.rarefind.com
Page 40 of 58
JavaScriptFileName
LinkTextFirst
LinkTextNext
Type: string
Default: 'Next'
LinkTextPrev
Type: string
Default: 'Previous'
LinkTextLast
Type: string
Default: 'Last'
LinkBackColor
LinkHoverForeColor
Type: TColor
Default: clWhite
LinkHoverBackColor
Type: TColor
Default: clBlue
LinkImgSRCFirst
LinkImgSRCNext
Type: string
Default:
LinkImgSRCPrev
Type: string
Default:
LinkImgSRCLast
Type: string
Default:
www.rarefind.com
Page 41 of 58
LinkFont
NavigatorType
PageEndLines
ShowNavigator
OptimizeForIE
www.rarefind.com
Page 42 of 58
OutputScriptsToJava
ScriptFile
OutputStylesToCSSFi
le
ShowNavigator
www.rarefind.com
Page 43 of 58
TRFFRExportPDF = class(TRFFRExportDocument)
Properties: Run-time and Design-time
AlwaysEmbedFonts
Type: Boolean
Default: False
AlwaysEmbedFontLis
t
CompressionMethod
EmbedUsedFonts
EncryptFile
EncryptionLevel
www.rarefind.com
Page 44 of 58
NeverEmbedFonts
NeverEmbedFontList
Type: TstringList
Default:
Specify the List of the fonts not to be embedded in the file
OwnerPassword
Type: string
Specifies the owner password of the encrypted PDF
document.
Permissions
PresentationMode
Type: TPsPDFPresentationMode
TPsPDFPresentationMode = class
Duration: Integer;
TransitionEffects: TPsPDFTransitionEffects;
end;
TPsPDFTransitionEffects = (teSplitHorizontalInward,
teSplitHorizontalOutward, teSplitVerticalInward,
teSplitVerticaloutward, teBlindsHorizontal,
teBlindsVertical, teBoxInward, teBoxOutward,
teWipeLeftToRight, teWipeBottomToTop,
www.rarefind.com
Page 45 of 58
www.rarefind.com
Page 46 of 58
UserPassword
Type: string
Specifies the
document.
UseCompression
user
password
of the
encrypted
ViewerPreferences
PageLayout
www.rarefind.com
Page 47 of 58
PageMode
HideToolbar
HideMenubar
HideWindowUI
FitWindow
Type: TPsPDFPageMode
Valid
Values:
pmUseNone,
pmUseOutlines,
pmUseThumbs, pmFullScreen
Default: pmUseNone
Description: PageMode specifies how the document
should be displayed when opened. If the value is
pmUseNone then neither document outlines nor thumbnail
images are visible. If the value is pmUseOutlines then
document outline is visible. If the value is pmUseThumbs
then thumbnail images are visible. If the value is
pmFullScreen then document is opened in Full Screen
mode with no menu bar, window controls, or any other
window visible.
Type: Boolean
Valid Values: True, False
Default: False
Description: This is a ag specifying whether to hide the
viewer applications toolbars when the document is active.
If the value is True then the viewer applications toolbars
are hidden.
Type: Boolean
Valid Values: True, False
Default: False
Description: This is a ag specifying whether to hide the
viewer applications menu bar when the document is
active. If the value is True then the viewer applications
menu bar is hidden.
Type: Boolean
Valid Values: True, False
Default: False
Description: This is a ag specifying whether to hide user
interface elements in the documents window (such as
scroll bars and navigation controls), leaving only the
documents contents displayed. If the value is True then
documents user interface elements are hidden.
Type: Boolean
Valid Values: True, False
Default: False
Description: This is a ag specifying whether to resize the
documents window to t the size of the rst displayed
page. If the value is True then the first page displayed is
resized to fit the documents window.
Type: Boolean
Valid Values: True, False
Default: False
www.rarefind.com
Page 48 of 58
NonFullScreenPageMo
de
Type: TPsPDFNonFullScreenPageMode
Valid Values: fsUseNone, fsUseOutlines, fsUseThumbs
Default: pmUseNone
Description: NonFullScreenPageMode specifies how to
display the document on exiting full screen mode. This is
meaningful only if the PageMode entry is pmfullScreen. If
the value is fsUseNone then neither document outlines nor
thumbnail images are visible. If the value is fsUseOutlines
then document outline is visible. If the value is
fsUseThumbs then thumbnail images are visible.
www.rarefind.com
Page 49 of 58
TRFFRExportDoc = class(TRFFRExportDocument)
Properties: Run-time and Design-time
OptimizationMode
Type: TPsDOCOptimizationMode
Default: omPositionalAccuracy
TPsDOCOptimizationMode = (omPositionalAccuracy,
omEaseOfEditing);
Specifies the type of encoding.
GraphicDataInBinar
y
TRFFRExportExcel = class(TRFFRExportDocument)
Properties - Run-time and Design-time
AllTextInGeneralFor Type: Boolean
mat
Default: False
Specifies whether all the text in the report should be
converted to general format or the format of the text
should be detected and encoded accordingly.
indicate whether all the text in the report should be
converted to general format or the format of the text
should be detected and encoded accordingly. Set
AllTextInGeneralFormat to True encode all the text
contents in the report in general format. General format
text
have
no
specific
number
format.
Set
AllTextInGeneralFormat to False to detect the format of
the text and encode accordingly. In this case number and
other formats are identified and encoded. This helps to
include formulae in the exported excel document.
AllPagesInOneSheet
Type: Boolean
Default: True
Specifies whether all the pages should be stored in one
excel sheet.
www.rarefind.com
Page 50 of 58
Type: Boolean
Default: False
Specifies whether each page in the report should be
encoded into separate excel sheets or all the pages
should be encoded in a single excel sheet.
Indicate whether each page in the report should be
encoded into separate excel sheets or all the pages
should be encoded in a single excel sheet.
RemoveSpaces
Type: Boolean
Default: False
Specifies whether to delete any un necessary leading
and trailing spaces in each cell
ShowPreview
Type: Boolean
Default: True
Specifies whether to show the Priew dialog before
exporting
SeparateFilePerPag
e
Type: Boolean
Default: False
ScaleY
www.rarefind.com
Page 51 of 58
TRFFRExportBMP = class(TRFFRExportGraphics)
Properties: Run-time and Design-time
Monochrome
Type: Boolean
Default: False
Specifies whether images produced are color or
monochrome images.
PixelFormat
PixelFormat
ProgressiveEncodin
g
www.rarefind.com
Page 52 of 58
Quality
Type: TJPEGQualityRange
Default: 100
TJPEGQualityRange = 1..100;
PixelFormat
produced
are
color
or
www.rarefind.com
Page 53 of 58
online
over
the
Internet
at
Delivery
Delivery is INSTANT for credit card transactions. For Bank transfers and other
modes of payment, delivery is upon receipt of full payment.
As soon as your order is passed you should receive an email giving you the download
link to the registered version Setup program. Please follow the steps listed in the
email to download the registered version.
If you are having problems in downloading or installing FastReport ExportFilters
please visit http://www.rarefind.com/fr/support.html
www.rarefind.com
Page 54 of 58
2. Buy Online
www.rarefind.com
Page 55 of 58
4. Enter the Product License Key and click Finish to complete Registration.
www.rarefind.com
Page 56 of 58
www.rarefind.com
Page 57 of 58
Contact
If you have any queries or feedback on the components please feel free to contact
us:
Rarefind Engineering Innovations
Pragnaan Software Group
#347, 17th cross
RMV II Stage
Bangalore - 560 094
INDIA
Web: http://www.rarefind.com/
www.rarefind.com
Page 58 of 58