Property |
Type |
Description |
Format |
String |
(Read / Write) Selects format plug-in ("Output Style"). PLug-ins should be named by their internal (short) names.
The following values are valid:
Formatted - "Formatted Text"
TWL - "Text with Layout"
XML - "XML"
RSS - "RSS"
Plain - "Plain Text"
|
FormatParam |
VARIANT(String PluginName, String ParameterName) |
(Read / Write) Format Plug-in Parameters.
All the parameters for all plug-ins are listed below. |
FormatParamNoCheck |
VARIANT(String PluginName, String ParameterName) |
(Write Only) Format Plug-in Parameters.
Use this option to set only appropriate property, without updating plug-in user interface and checking value.
This option is useful when you need to set all options in a batch, and some options affect others.
After all options are set, call FormatCheckSettings to update plug-in state correctly.
|
FormatPluginNames |
String Collection |
(Read Only) List of installed format plug-ins (XML, Plain Text and so on) |
Transport |
String |
(Read / Write) Selected Transport Plug-in names. If more than one transport plug-in selected, names should be comma delimited.
The following values are valid: Clipboard, FTP, File, HTTP. Mail, Printer.
|
TransportParam |
VARIANT(String PluginName, String ParameterName) |
(Read / Write) Transport Plug-in Parameters
All the parameters for all plug-ins are listed below. |
TransportParamNoCheck |
VARIANT(String PluginName, String ParameterName) |
(Write Only) Transport Plug-in Parameters.
Use this option to set only appropriate property, without updating plug-in user interface and checking value.
This option is useful when you need to set all options in a batch, and some options affect others.
After all options are set, call TransportCheckSettings to update plug-in state correctly.
|
TransportPluginNames |
String Collection |
(Read Only) List of installed transport plug-ins (File, FTP and so on) |
Charset |
Number |
(Read / Write) Character set (codepage number)
5 - UNICODE
437 - OEM American DOS
850 - OEM Latin-1 DOS
852 - OEM Eastern Europe DOS
866 - OEM Cyrillic DOS
932 - Japanese
936 - Chinese (Simplified")
949 - Korean
950 - Chinese (Traditional)"
1250 - ANSI Latin-1 Windows
1251 - ANSI Cyrillic Windows
1252 - ANSI Eastern Europe Windows
1257 - ANSI Baltic Windows
...etc...
|
UnixEOL |
Number |
(Read / Write) End Of Line style
0 means "Windows" EOL style (\r\n or 0x0D, 0x0A)
1 means "UNIX" EOL style (\n or 0x0A) |
AutoSave |
Number |
(Read / Write) 0 - interactive mode; 1 - Process and Auto-send to the specified destinations |
Identity |
Number |
(Read / Write) Identity value to replace {{IDENTITY}} tag |
PageBreak |
Number |
(Read / Write) 1 - insert page break symbols (0xc) between pages; 0 - don't. |
TotalPages |
Number |
(Read Only) Total estimated amount of pages in current print job |
RenderedPages |
Number |
(Read Only) Amount of rendered pages in current print job |
DocumentName |
String |
(Read Only) Original name of the printed document |
TotalJobs |
Number |
(Read Only) Number of printed documents spooled in Text Driver and waiting for processing |
JobStatus |
Number |
(Read Only) Current job status. Binary flags (ORed):
- 0 - Created, initial state just after StartJob event from driver.
- 1 - Opened for rendering. This may happen just after the job will be created, if not other jobs are in Text Driver queue,
or after it will be printed, when current job will be saved and cancelled.
- 2 - Started - configuration loaded, document name set, StartJob event set to UI, set after the job is opened.
- 4 - Printed - printer driver completed all operations with current job. After that, the job may still not be available for save,
it must be Opened, Started and Rendered first.
- 8 - Rendered - ready for save. All the job contents are processed by selected rendering plug-in.
|
Printer |
String |
(Read / Write) Name of the currently selected printer |
Printers |
String Collection |
(Read Only) List of all printers in Text Driver collection. |
RedirectPrinter |
String |
(Read / Write) Name of the currently selected printer for redirection. If empty, no redirection will be performed. |
SystemPrinters |
String Collection |
(Read Only) List of all printers installed in the system. Useful for user interface, this property allows UI to avoid using spooler API. |
DefaultPrinter |
String |
(Read Only) Name of the default printer in the system. |
UnicodePrefix |
Number |
(Read / Write) 1 - insert Unicode prefix (0xfeff) before Unicode content; 0 - don't. |
MainPrinter |
String |
(Read Only) Name of the default Text Driver printer. By default, its name is equal to Driver name |
RedirectEMFScaling |
Number |
(Read / Write) Scale factor, in percents, for EMF pages printed to RedirectPrinter |
RedirectEMFMargins |
Number |
(Read / Write) Turn on/off print margins for EMF redirection |
RedirectEMFCompatibility |
Number |
(Read / Write) Turn on/off "compatibility" mode for EMF redirection |
RedirectTextFont |
String |
(Read / Write) Name of font which will be used for text redirection |
RedirectTextSize |
Number |
(Read / Write) Text size which will be used for text redirection |
RedirectTextWeight |
Number |
(Read / Write) Font weight (100 - 900) which will be used for text redirection |
Method |
Parameters |
Description |
GetPage |
Number, returns String |
Get a rendered page by index. |
UpdatePage |
Number n, String s |
Replace contents of nth page by s. |
CancelJob |
None |
Cancel current Print Job. Returns immediately. |
CancelJobWait |
None |
Cancel current Print Job. Waits until current job will be cancelled and the new one will be opened, if any. |
CancelAllJobs |
None |
Cancel all jobs for this printer |
SaveConfiguration |
None |
Save current configuration for active user and active printer |
SaveCommonConfiguration |
None |
Save current configuration for all users (who do not have own configurations yet) and active printer |
SavePage |
Number page_number |
Send particular page through selected Transport Plug-Ins. Returns immediately. |
SaveAllPages |
None |
Send All through selected Transport Plug-Ins. Returns immediately. |
SavePageWait |
Number page_number |
Send particular page through selected Transport Plug-Ins. Waits until page will be saved. |
SaveAllPagesWait |
None |
Send All through selected Transport Plug-Ins. Waits until all pages will be saved. |
Stop |
None |
Unloads plug-ins, get ready for unloading from memory. System will unload Miraplacid Text Driver core form memory with 2-5 seconds delay. We recommend you to add this method call at the end of each script. |
FormatCheckSettings |
String plug-in |
Call this method after updating several plug-in settings in a batch (using FormatParamNoCheck).
Some settings may affect others, and this method guarantees that they will be updated in correct order.
|
TransportCheckSettings |
String plug-in |
Call this method after updating several plug-in settings in a batch (using TransportParamNoCheck).
Some settings may affect others, and this method guarantees that they will be updated in correct order.
|
Redirect |
String printer, String document |
This method provides an alternative way to print a copy of print job to another printer. Unlike RedirectPrinter
property, which allows to set printer for automatic redirect, this method may be used in scripts or external programs
when additional analysis needed to decide, redirect this job to that printer or not. Returns immediately.
"Document" parameter allows you to provide alternative name of redirected print job. Ignored if NULL or empty string.
|
RedirectWait |
String printer, String document |
The same as Redirect method, but waits until redirect process will be completed.
|
LoadUI |
None |
Loads user interface component if it is not already loaded. |
UnloadUI |
None |
Unloads user interface component, if it supports OnUnload event. |