TExporters 2.0

for Delphi 1/2/3



What is exporters?

"Exporters" are special kind of TComponent. It make text-data export into seleral formats, via TCanals (Canal mean Chanell in many languages). Interface is absolutely open! Your program look like this:

With AbstractExporter Do
Begin
Open;
QuickParagraph('Hello',?????????);
Close;
End;
{Sorry for bad style, but this is HTML :o) }

EASY-FAST-POWERFULL :o)


Version hystory

Version hystory
Ver Date Remark
1 0 1997 First Build
2 0 1997 Adding Canals,
THTMLExporter begin get it-own versions
- 12.1997 Adding TAbstractFileCanal
- 01.1998 Adding TTextHTMLExporter

What exporters avail in this moment?

We have:

TAbstractExporter Abstract Base Object, look it source code for details...
TTextExporter Export data into plane text
TTextHTMLExporter Export data into plane text, with some HTML tags for best viewing with WWW browser.
It inherit TText exporter.
THTMLExporter
Wow!
Export data into Hyper Text MarkUp Language (WWW page) support HTML title, background image, tables, block_indent_control e.c.t.
Here are file generated by HTML Exporter.
U CAN SEE MORE FOR THTMLEXPORTER HERE
TGRVExporter Export data to *.GRF (GReader or Gounev report viewer). GReader is copyright by Vasil Gounev
TRTFExporterBeta
Wow!
Export data to Rich Text Format. Free Beta Version. Support only Global_Font and Paragraph aligment. Not support tables for now, but it is free and with source code!!!!
TPostScriptExporter Export data to PostScript format. Not ready yet...

Remarks :

TCanals are special type who help to write data on some device/component/file. Evere exporter work with TCanal

TAbstractCanal Abstract Object
TAbstractFileCanal Abstract Object for output data to file
TFileCanal Canal for output data to disk file (like *.TXT for example). This Component is like TTextExporter 1.0. Support ReWrite file, OEMConvert e.c.t.
TPrinterCanal Canal for output data to printer (default printer). This Component is like TPrinterExporter 1.0. Support paper orientation and printer font
TConsoleCanal Canal for output data to System_Standart_Output
TMemoCanal Canal for output data to TMemo component (for preview for example). This Component is like TMemoExporter 1.0
TApplCanal It derive TFileCanal, but after CLOSE, It lounch some application (For example THTMLExporter and Netscape or TTextExporter and Notepad)
U Can use following macros:
{FILE} Path + File Name + File Ext
{PATH} Path
{NAME} File Name + File Ext
{EXT} Only File Ext
TCGICanal
Wow
Canal for output data to CGI. It work only with Delphi 3. It use Delphi 3 CGI APPL interface. Program look like this:

procedure TWebModule1.WebModule1WebActionItem2Action(Sender: TObject;Request:

TWebRequest; Response: TWebResponse; var Handled: Boolean);

Begin

{Do some here}
Response.Content:=CGICanal1.Buffer;

End;

Remark:

  • TCGICanal is not exactly CGI Canal. It work with large memory buffer. U can use this exporter for diferent tasks also!!!!
  • If u want to use another CGI component for your CGI appl, u can write simple TYoursCGICanal!!!!

Pack include also some tools:

Tool Remark
TDataDump Dump TDataSet with some exporter - ideal for one-level table report !!!
Export only visible rows.
TStrDump Dump String - formated data with some exporter.
Format fields are:
<*T*> table row
<*I+*> Increate/Decreate Indent
<*I-*>
{DLRCJBIUT1234567890} format (see down for details)
Align
(DLCRJ)
  • D - default
  • L - left
  • R - right
  • C - center
  • J - just.
Font Styles
(BIUT)
  • B - bold
  • I - italic
  • U - underline
  • T - teletype
Font Size
(0-9)
  • 1 - Bigger
  • 2 - Big
  • 3
  • 4
  • 5 - Average
  • 6
  • 7
  • 8 - Small
  • 9 - Smaller
  • 0 - Default

Register

Exporters are free except THTMLExporter. U may register it for $ 20 USD. This tax include THTMLExporter source code. Look Register document.

If u use TGRVExporter u must register GReader!!! Look GReader for register notes...