|
TFORMer SDK - NET
7.5
|
This is the main class of TFORMer SDK for generating output. More...
Public Member Functions | |
| Job () | |
| Job class constructor. More... | |
| delegate void | CloseStreamDelegate (Stream stream) |
| Delegate used by PrintToStreams to close a stream. More... | |
| delegate Stream | CreateStreamDelegate (string sStreamObjName) |
| Delegate used by PrintToStreams to create a new output stream. More... | |
| void | Dispose () |
| Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
| void | Print () |
| Prints the Job using the selected FormLayout and the current JobData. More... | |
| void | PrintToStream (Stream stream) |
| Print the current Job using the selected FormLayout and current JobData. More... | |
| void | PrintToStreams (CreateStreamDelegate fnCreate, CloseStreamDelegate fnClose) |
| Print the current Job using the selected FormLayout and current JobData. More... | |
| virtual void | SaveXml (string filename) |
| Saves the JobData used for printing a Job as XML file. More... | |
Properties | |
| string | ConfigFile [get, set] |
| Gets/Sets the current configuration file for TFORMer SDK. More... | |
| string | FormName [get, set] |
| Gets/Sets the name of the Repository-based FormLayout for this Job. More... | |
| int | FromPage [get, set] |
| Gets/Sets the first page-number to be printed. More... | |
| JobData | JobData [get, set] |
| Gets/Sets the JobData for the Job. More... | |
| string | JobTrayControlName [get, set] |
| Gets/Sets the name of the JobTrayControl to be used for this Job. More... | |
| int | NumberOfCopies [get, set] |
| Gets/Sets the number of copies to be printed. More... | |
| String | Options [get, set] |
| Gets/Sets additional options for printing and output creation. More... | |
| string | OutputName [get, set] |
| Gets/Sets the name of the output file or the name of the spool-job (on Microsoft Windows printers). More... | |
| string | PrinterName [get, set] |
| Gets/Sets the name of the output device (file or printer) and the type of the printer (e.g. More... | |
| PrinterType | PrinterType [get, set] |
| Gets/Sets the type of the generated output. More... | |
| string | ProjectName [get, set] |
| Gets/Sets the name of the Project for printing a Repository-based FormLayout. More... | |
| string | RecordCopyDataField [get, set] |
| Gets/Sets the name of the DataField which specifies the number of Record copies. More... | |
| string | RepositoryName [get, set] |
| Gets/Sets the filename of the Repository or the filename of the stand-alone FormLayout for this Job. More... | |
| int | StartColumn [get, set] |
| Gets/Sets the column-number of the first label to be printed. More... | |
| int | StartRow [get, set] |
| Gets/Sets the row-number of the first label to be printed. More... | |
| int | ToPage [get, set] |
| Gets/Sets the last page number to be printed. More... | |
This is the main class of TFORMer SDK for generating output.
Printing (or more general: producing output) is done with the help of a so-called Job. A Job prints a stand-alone or Repository based FormLayout with dynamic data provided by JobData.
A Job provides various methods for controlling the output behavior. Among other functions it is possible
The basic steps to generate output are as follows:
| delegate void CloseStreamDelegate | ( | Stream | stream | ) |
Delegate used by PrintToStreams to close a stream.
This delegate is called when the current stream should be closed. The delegate will only be triggered while inside PrintToStreams.
| stream | Stream to be closed |
| delegate Stream CreateStreamDelegate | ( | string | sStreamObjName | ) |
Delegate used by PrintToStreams to create a new output stream.
This delegate is called when a new stream should be created. The delegate will only be triggered while inside PrintToStreams. If the output format needs several streams (e.g. multi-page BMP output), this event will be triggered for each single stream (in this case for each page).
| sStreamObjName | Name of the stream, the name of the stream contains information about out type, output file name (in case of a file stream) and the stream counter |
| void Dispose | ( | ) |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
| void Print | ( | ) |
Prints the Job using the selected FormLayout and the current JobData.
| void PrintToStream | ( | Stream | stream | ) |
Print the current Job using the selected FormLayout and current JobData.
The output is available in the provided output stream.
| stream | Output stream |
| void PrintToStreams | ( | CreateStreamDelegate | fnCreate, |
| CloseStreamDelegate | fnClose | ||
| ) |
Print the current Job using the selected FormLayout and current JobData.
The output is provided via multiple output streams created and closed by the provided delegates.
| fnCreate | Delegate function to create a new stream |
| fnClose | Delegate function to close a stream |
|
virtual |
|
getset |
|
getset |
Gets/Sets the name of the Repository-based FormLayout for this Job.
Specifies the name of the FormLayout which is referenced from within a Project of the current Repository.
|
getset |
Gets/Sets the first page-number to be printed.
Specifies the page number of the first page to be printed. To restore this setting (printing of all pages of the job), execute the following:
Gets/Sets the JobData for the Job.
JobData is used to provide DataField values for printing the FormLayout. Different methods for providing JobData are available (see JobData, JobDataCsv, JobDataXml, JobDataOdbc, JobDataDataSource, JobDataRecordSet).
|
getset |
Gets/Sets the name of the JobTrayControl to be used for this Job.
Specify the JobTrayControl for the current Job. If this property is not set then the Job is generated with the JobTrayControl named _Default_.
|
getset |
Gets/Sets the number of copies to be printed.
Specifies the number of identical copies produced with one call to Print. The default value is 1.
|
getset |
Gets/Sets additional options for printing and output creation.
[OptionName]=[value].[OptionName] without an additional value is treated as if [OptionName]=true is provided.no[OptionName] is treated as if [OptionName]=false is provided
|
getset |
Gets/Sets the name of the output file or the name of the spool-job (on Microsoft Windows printers).
Use OutputName in conjunction with PrinterType to specify the type and the target of the generated output. PrinterName overrides the settings of OutputName and PrinterType. Refer to Output Format Prefixes for a description of the supported output formats.
|
getset |
Gets/Sets the name of the output device (file or printer) and the type of the printer (e.g.
normal printer, PDF, JPG,....).
The function specifies the output format as well as the target device or target filename. Refer to Output Format Prefixes for a description of the supported output formats.
|
getset |
Gets/Sets the type of the generated output.
Use OutputName in conjunction with PrinterType to specify the type and the target of the generated output. PrinterName overrides the settings of OutputName and PrinterType. Refer to Output Format Prefixes for a description of the supported output formats.
|
getset |
Gets/Sets the name of the Project for printing a Repository-based FormLayout.
When using a Repository-based FormLayout use this function to provide the name of the Project. In addition, the name of the FormLayout must be set with Job.FormName.
|
getset |
|
getset |
Gets/Sets the filename of the Repository or the filename of the stand-alone FormLayout for this Job.
Use this method to provide either the filename of the Repository (*.tfr file) or the stand-alone FormLayout (*.tff file). If you are using a Repository you need to specify the Project (Job.ProjectName) and the FormLayout (Job.FormName) as well.
|
getset |
Gets/Sets the column-number of the first label to be printed.
Usually TFORMer prints the first label of a label-style report at the first available position of a page (this is the top / left label). This property sets the column number of the first label, the default starting column is 0. To restore the default behavior do the following:
0)
|
getset |
Gets/Sets the row-number of the first label to be printed.
Usually TFORMer prints the first label of a label-style report at the first available position of a page (this is the top / left label). This property sets the row number of the first label, the default starting row is 0.
0)
|
getset |
Gets/Sets the last page number to be printed.
Specifies the page number of the last page to be printed.
| © 2006-2017 - all rights reserved by TEC-IT Datenverarbeitung GmbH |
![]() |
| Generated on Fri Nov 3 2017 07:59:04 for TFORMer SDK - NET with doxygen 1.8.9.1 |