IJob interface

Library: TFORMer9Lib

This is the main class of TFORMer SDK for generating output.

Usage and notes

Overview

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

Workflow

The basic steps to generate output are as follows:

  1. Create a IJob
    The Job class is the main class for printing a FormLayout.

  2. Create IJobData
    A JobData is used to pass data to a Job.
    If no JobData is assigned to a new Job, TFORMer SDK uses the DataSource selected in the FormLayout. If no source is selected, or the special _Default_ source is selected, it uses the saved data in the layout's companion .xml file. See JobDataDataSource.

  3. Provide data for the IJobData
    JobDataRecordSet, JobDataCsv, JobDataOdbc, JobDataXml
    Provide data programmatically or connect the JobData with a file or a database. The JobData is responsible to provide values for the DataField required for the FormLayout to be printed.

  4. Adjust the properties of the IJob
    The most important properties are the output-type and the name of the target device (OutputName, PrinterType or PrinterName). The order in which the properties are set is irrelevant.

  5. Print the Job
    To generate the Job based on the FormLayout and JobData in the required output format use one of the print-methods (PrintForm, PrintToStream, PrintToStreams) provided by a Job.

More Information

Note

Thread-safety: A single instance of this class must not be used by different threads.

Base types: IDispatch

Properties

MemberDescription
ConfigFileString { get; set; }

Gets/Sets the current configuration file for TFORMer SDK.

FormNameString { get; set; }

Gets/Sets the name of the Repository-based FormLayout for this Job.

FromPageLONG { get; set; }

Gets/Sets the first page-number to be printed.

JobTrayControlNameString { get; set; }

Gets/Sets the name of the JobTrayControl to be used for this Job.

NumberOfCopiesLONG { get; set; }

Gets/Sets the number of copies to be printed.

OptionsString { get; set; }

Gets/Sets additional options for printing and output creation.

OutputNameString { get; set; }

Gets/Sets the name of the output file or the name of the spool-job (on Microsoft Windows printers).

PrinterNameString { get; set; }

Gets/Sets the name of the output device (file or printer).

PrinterTypePrinterType { get; set; }

Gets/Sets the type of the generated output.

PrintResultTypePrintResultType { get; set; }

Gets/Sets the type of data that should be gathered, while printing.

ProjectNameString { get; set; }

Gets/Sets the name of the Project for printing a Repository-based FormLayout.

RepositoryNameString { get; set; }

Gets/Sets the filename of the Repository or the filename of the stand-alone FormLayout for this Job.

StartColumnLONG { get; set; }

Gets/Sets the column-number of the first label to be printed.

StartRowLONG { get; set; }

Gets/Sets the row-number of the first label to be printed.

ToPageLONG { get; set; }

Gets/Sets the last page number to be printed.

Methods

MemberDescription
GetPrintResult(DataFormat)Returns: String

Gets the data of the last print operation in specified format.

NewJobDataCsv(String)Returns: IJobDataCsv

Creates a new JobDataCsv.

NewJobDataDataSource(String)Returns: IJobDataDataSource

Creates a new JobDataDataSource.

NewJobDataOdbc(String, String, String, String)Returns: IJobDataOdbc

Creates a new JobDataOdbc.

NewJobDataRecordSet()Returns: IJobDataRecordSet

Creates a new JobDataRecordSet.

NewJobDataXml(String)Returns: IJobDataXml

Creates a new JobDataXml.

PrintForm()

Prints the Job using the selected FormLayout and the current JobData.

PrintToStream()Returns: VARIANT

Print the current Job using the selected FormLayout and current JobData.

PrintToStreams()

Print the current Job using the selected FormLayout and current JobData.

SaveXml(String)

Saves the JobData used for printing a Job as XML file.

StreamData()Returns: VARIANT

Gets the current chunk of stream data.

Search documentation

Search in
More scopes
Additional scopes

All contents