Class TARWordReport
Unit
ARWordReport
Declaration
type TARWordReport = class(TComponent)
Description
ARWordReport - Simple and powerful component for report generation in
Microsoft® Word. Fields
Name | Description |
W |
Word.Application OLE object. All OLE objects becomes available after calling
OpenTemplate |
WDoc |
Word.Application.ActiveDocument object which becomes the complete report after
processing |
xPause |
Temporary property for this version. Pause msec against "Clopboard error" message.
Increase xPause for big reports if you meet this error |
Methods
Overview
Description
constructor Create(AOwner: TComponent); override; |
Constructor
destructor Destroy; override; |
Destructor
procedure ChangeFileOpenDir(Dir: string); |
Sets default folder for Word dialogs 'Open..' and 'Save as..'
Close Word document (if it is not visible)
function GetWordMainVer: integer; |
Getting Word main version number
procedure Notification(AComponent: TComponent; Operation: TOperation); override; |
Open .doc or .txt file as template
Open template + call xParse
Auto-detect needed parameters (not used)
Open template+ Parse + Show Report in Word
Print document (1 copy). You must open Template before calling Print (by calling
Parse or by calling OpenTemplate+xParse etc.)
procedure SaveDoc(FileName: string); |
Save document
Make Word document visible (else it`s invisible)
Process opened template
procedure xPrint(Copies: integer); |
Print document. You must open Template before calling xPrint (by calling Parse
or by calling OpenTemplate+xParse etc.)
Properties
Overview
Description
Perform aggregated values calculation
if AutoTables=True then <#table:datasetname> tags (not in MS Word tables) will be
replaced with automatic-generated tables
List of values you can use in template (Name=Value pairs)
List of named datasets, which prepared in your application and may be used in report
Report template (.doc, .txt)
prefix and postfix for markup tags in report template
Here you are able to assign string for DataField value, which will be then pasted
to DataPool area
Here you are able to assign string for DataField value, which will be then pasted
to report area
In this event you need to assign Dataset to the event parameter depending on passed
text from Template`s DataPool
Custom replacing for tags not processed during automatic report generation
Set this property to True if you want Word prompts user to save changes in report
(Default value is False)
Set of steps executable during template processing. Set off unused ones to optimize
processing speed
Draw bold captions for auto-tables (see AutoTable property)
if TextTables=True then table templates with <#txttable:datasetname> tags will be
processed. See ARWordMarkup description.
ARWord version information
Word document is visible (read only)
Author
Anton Ryazanov <vsoft@vector-ski.ru
>
Generated by pasdoc 0.6.20 on Tue 24 Sep 2002 01:13:32