Miraplacid Text Driver 3.1: Scripting Manual
|
||||||||||||||||||||||||
Scripting and Programming Support with Miraplacid Publisher ManagerMiraplacid 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
How to print document from script with no user interaction? Start MTD_UI.exe, turn it to auto-save mode, then start the script. Hint: Use /Hidden and /AutoSave command line parameters. Recommended BAT file to run a script:
where myscript.vbs is your script name (see sample scripts below)
Unregistered version of Miraplacid Text Driver shows registration dialog, so bat file might open the Word document before you click "Continue". Add WScript.Sleep(5000) at the beginning of your script file to synchronize it. Appendix A: Object Miraplacid.TextDriver
Appendix B: Sample script on VBScript
Appendix C: Sample script on JScript
Appendix D: Command Line:
MTD_UI.exe supports following command line parameters:
Appendix E: PostProcessing:
It is possible to start an external application to process the result text file.
Start Regedit.exe (we do it with "Run..." dialog in Start menu - just type "regedit")
then open registry key
and add string value "Postprocessor". Specify the application you want to start.
Specified application will be started with text file name as a parameter. For example, "Postprocessor" = "Notepad" will open result text file in Notepad. To start the postprocessor for each page just add {{PAGE}} to output filename. Each page will be saved to individual file. postprocessor will be called for each file. If all the pages are saved to a single file, postprocessor will be called once per document. See also: |
||||||||||||||||||||||||
Copyright © 2001 - 2003 by Miraplacid. Legal Notices
|