|
Configuring eDocEngine |
Top Previous Next |
|
eDocEngine provides switches that needs to be configured appropriately to interact with other components. For example Indy, FastNet etc. The configuration file provided by eDocEngine is 'gtDocDefines.inc' located at <eDocEngine InstallDir>\Source.
You can configure the following that are supported by eDocEngine:
1. Mailing Support: - Indy or Fastnet 3. GIF Support 4. Configuring eDocEngine for PNGDelphi Support
You need to configure these switches provided in eDocEngine configuration file and re-compile eDocEngine to activate the changes.
To enable an option, remove the dot(.) before $DEFINE to look as {$DEFINE ...} To disable an option, add a dot(.) before $DEFINE to look as {.$DEFINE ...}
For mailing eDocEngine's output documents, eDocEngine supports two third party components(Indy and Fastnet). Configuring eDocEngine with these third party components you could send mails from eDocEngine.
a) Configuring eDocEngine for Indy
Install Indy component to support e-Mail. The email component 'Indy' comes with Delphi.
To configure eDocEngine with Indy, need to configure the switches 'DEFINE EMailWithIndy', 'DEFINE Indy900Up'(If you use Indy v9.0 and below v10.0) and 'DEFINE Indy1000Up'(If you use Indy v10.0 or above) provided in file: "<eDocEngine Install Dir>\Source\gtDocDefines.inc".
a. Open the file "<eDocEngine Install Dir>\Source\gtDocDefines.inc". b. Search for the below mentioned code in the 'gtDocDefines.inc'
---- E-Mail using Indy units {.$DEFINE EMailWithIndy} {.$DEFINE Indy900Up} {.$DEFINE Indy1000Up}
The code mentioned above needs to be modified appropriately for e-mail support in eDocEngine. To configure them for 'Indy' component, replace '{.$DEFINE EMailWithIndy}' to {$DEFINE EMailWithIndy} by removing the dot. Also for 'Indy' component, you need to configure for versions. Suppose you have installed Indy having version higher than v9.0 and lower than v10.0, you need to modify {.$DEFINE Indy900Up} to {$DEFINE Indy900Up} by removing the dot. If you use Indy v10.0 or above, you need to modify {.$DEFINE Indy1000Up} to {$DEFINE Indy1000Up} by removing the dot.
Note: Do not modify the '{.$DEFINE Indy900Up}' if you have installed Indy Version lower than 9.00.
c. After modifying 'gtDocDefines.inc' file, you need to re-compile eDocEngine to activate the changes.
b) Configuring eDocEngine for Fastnet
Install FastNet component to support e-Mail. To configure eDocEngine with FastNet, you need to configure the switch {.$DEFINE EMailWithFastNet} provided in file: "<eDocEngine Install Dir>\Source\gtDocDefines.inc".
a. Open the file "<eDocEngine Install Dir>\Source\gtDocDefines.inc". b. Search for the below mentioned code in the 'gtDocDefines.inc'
---- E-Mail using FastNet units {.$DEFINE EMailWithFastNet}
The code mentioned above needs to be modified appropriately for e-mail support in eDocEngine. Configure them for ' FastNet ' component. Replace '{.$DEFINE EMailWith FastNet} ' to {$DEFINE EMailWithFastNet} by removing the dot.
c. After modifying 'gtDocDefines.inc' file you need to re-compile eDocEngine to activate the changes.
Configuring eDocEngine for RichEdit Support
eDocEngine supports export of RichText using RichEdit components like TRichEdit98 and TJvRichEdit (JEDI RichEdit)
a) RichEdit Support Using RichEdit98 Follow the below mentioned instructions to configure eDocEngine for RichEdit98 a) In 'gtDocDefines.inc' file look for '{.$DEFINE RichEdit98}' b) Remove the dots(.) from '{.$DEFINE RichEdit98}' switch as '{$DEFINE RichEdit98}' to get built-in support for RichEdit98. c) Re-compile eDocEngine
b) RichEdit Support Using JEDI RichEdit Follow the below mentioned instructions to configure eDocEngine for TJvRichEdit a) In 'gtDocDefines.inc' file look for '{.$DEFINE JediRichEdit}' b) Remove the dots(.) from '{.$DEFINE JediRichEdit}' switch as '{$DEFINE JediRichEdit}' to get built-in support for TJvRichEdit. c) Re-compile eDocEngine
For more details on implementation of JEDI Component see DrawRichText.
Configuring eDocEngine for GIF Support
There are two third party components for GIF format support in eDocEngine . They are 'RxGIF' and 'Anders Melander's GIF'. You could install one of them and configure the switch appropriately for eDocEngine to support GIF format.
a) GIF Support using RxGIF
Follow the below mentioned instructions to configure eDocEngine for RxGIF
a) In 'gtDocDefines.inc' file look for '{.$DEFINE GIFByRx}'
b) Remove the dots(.) from '{.$DEFINE GIFByRx}' switch as '{$DEFINE GIFByRx}' to get built-in support for GIF images.
c) Re-compile eDocEngine
b) GIF Support using Anders Melander's GIF
Follow the below mentioned instructions to configure eDocEngine for Anders Melander's GIF
a) In 'gtDocDefines.inc' file look for '{.$DEFINE GIFByAM}'
b) Remove the dots(.) from '{.$DEFINE GIFByAM}' switch as '{.$DEFINE GIFByAM}' to get built-in support for GIF images.
c) Re-compile eDocEngine
Configuring eDocEngine for PNGDelphi Support
eDocEngine supports PNGDelphi component for using PNG images with DrawImage methods. Please ensure that the PNGDelphi component (http://pngdelphi.sourceforge.net) is installed on the system before using this configuration. Follow the below mentioned instructions to configure eDocEngine for PNGDelphi Support:
a) In 'gtDocDefines.inc' file look for '{.$DEFINE PNGDelhpi}'
b) Remove the dot(.) from '{.$DEFINE PNGDelhpi}' switch as '{$DEFINE PNGDelhpi}' to enable the PNGDelphi support.
c) Re-compile eDocEngine
Some of the eDocEngine Export Interface components, QuickReport Export and ReportBuilder Export, use global variables to manage property values. eDocEngine itself does not use any global variables. Enable the below switch to configure eDocEngine to NOT use any global variables.
Note: It maybe required ONLY if there are problems using eDocEngine in threaded applications.
{.$DEFINE NOGlobalSettingsVar}
|