Huge Collections of Software Manuals and Knowledgebase

GreatManuals.com
Huge Collections of Software Manuals and Knowledgebase

 
Home Contact Us Request to publish your help manuals Request to remove your help manuals
Introduction
» Miraplacid Text Driver 2008
» Install Miraplacid Text Driver
» Register Miraplacid Text Driver
Miraplacid Text Driver Settings
» Settings Dialog
» Text Formatting Settings
» System Settings
» Output To: Settings
» Scripting Manual
» Preview Window
 

Scripting Manual

Miraplacid Text Driver registers itself as an ActiveX object and could be used from any scripting and OLE-compliant software. Using this ability, you can control the printing process directly from your script or application.

Miraplacid Text Driver Scripting Object Creation

To create component, use following constructions
  • JScript: var obj = WScript.CreateObject("Miraplacid.TextDriver");
  • VBScript: set obj = WScript.CreateObject("Miraplacid.TextDriver")
  • Visual Basic: Set obj = CreateObject("Miraplacid.TextDriver")
    To enable early binding, you have to check "Miraplacid Text Driver Type Library" in "Project References" dialog and insert the following code:
    Dim obj As Miraplacid.TextDriver
    Set obj = CreateObject("Miraplacid.TextDriver")

where myscript.vbs is your script name (see sample scripts below)

restore digital photos cell phone investigation keylogger free
password recovery partition files restore deleted photos recovery
undelete restore windows hard disk restore

Unregistered version of Miraplacid Text Driver will not show registration dialog until trial period expiration if used in autosave mode. After that, object creation will fail with appropriate message in errorinfo. Object Miraplacid.TextDrive


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.
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.
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
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
JobStatus Number (Read Only) 0 - Created, 0001b - Opened, 0010b - Printed, 0100b - RequestedPagePrepared, 1000b - Aborted
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.
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
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
SaveAllPages None Send All through selected Transport Plug-Ins
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.

Miraplacid Text Driver Send To (Transport plug-ins) parameters

To query or modify Transport plug-in parameters, use TransportParam property of Miraplacid Text Driver object.
obj.TransportParam("File","filename")="textout_{{PAGE}}.txt"

»

Home | Contact Us | Request to publish your help manuals | Request to remove your help manuals