Print

Prints a text file.

Function Group Execution Windows Embedded Thin Client
Print File Asynchronous Supported Supported Supported

Syntax

Print(strFilePath { | ,optNumOrientation } )
strFilePath
Path and name of the text file that will be printed.
optNumOrientation
Set the paper orientation as follows:
  • 0 (default) = Portrait
  • 1 = Landscape

Returned value

No returned values.

Note: The optNumOrientation parameter is not supported when running the project on a Windows Embedded target system.

Examples

Tag Name Expression
  Print("C:\ReadMe.txt")
  Print("C:\ReadMe.txt", 1)
  Print(TagFileName, 0)
Note: This function can be used to print the contents of text files only. Information in any other format (e.g., pictures, binary files, etc.) cannot be printed with this function.