18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix: Built-in Scripting Language<br />

Value<br />

Description<br />

101 Error initializing PDF resource<br />

102 Specified source file not found<br />

103 Error generating PDF file<br />

104 Wrong number of parameters<br />

105 Wrong parameter type<br />

Note: This function only supports the execution of one job at a time. If more than one user or<br />

command attempts to call the function at the same time, then the function will fail and return a<br />

value of 101.<br />

Examples<br />

Tag Name<br />

Expression<br />

PDFCreate( "C:\Report1.rtf" )<br />

PDFCreate( "C:\Report2.doc", "C:\Converted1.pdf" )<br />

PDFCreate( "C:\Report3.txt", "C:\Data\Converted1.pdf" )<br />

Print<br />

Prints a text file.<br />

Function Group Execution Windows Embedded Thin Client<br />

Print File Asynchronous Supported Supported Supported<br />

Syntax<br />

Print(strFilePath{ | ,optNumOrientation })<br />

strFilePath<br />

Path and name of the text file that will be printed.<br />

optNumOrientation<br />

Set the paper orientation as follows:<br />

• 0 (default) = Portrait<br />

• 1 = Landscape<br />

Returned value<br />

No returned values.<br />

Note: The optNumOrientation parameter is not supported when running the project on a Windows<br />

Embedded target system.<br />

Examples<br />

Tag Name<br />

Expression<br />

Print("C:\ReadMe.txt")<br />

Print("C:\ReadMe.txt", 1)<br />

Print(TagFileName, 0)<br />

Page 642<br />

<strong>InduSoft</strong> Web Studio

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!