TFORMer SDK - JAVA
7.0
|
Provides access to a user-defined DataSource, which is defined in the FormLayout or a Repository. More...
Public Member Functions | |
JobDataDataSource () | |
Constructor for JobDataDataSource. | |
JobDataDataSource (String sName) | |
Constructor for JobDataDataSource. | |
String | getName () |
Gets the name of the datasource. | |
boolean | isHandleEscapeSequences () |
Gets/Sets a flag indicating whether escape sequences in DataField values like \n or \x40 should be translated by TFORMer SDK. | |
boolean | isReuseValues () |
Gets a flag indicating whether DataField-values should be reused in consecutive records. | |
void | setHandleEscapeSequences (boolean bHandleEscapeSequences) |
Sets a flag indicating whether escape sequences like \n or \x40 should be translated by TFORMer. | |
void | setName (String sName) |
Sets the name of the datasource. | |
void | setParameterValues (String sParameter, String sValue) |
Sets the values for DataSourceParameters. | |
void | setReuseValues (boolean bReuseValues) |
Sets a flag indicating whether DataField values should be reused in consecutive Records. |
Provides access to a user-defined DataSource, which is defined in the FormLayout or a Repository.
// Create a new Job instance Job printJob = new Job(); // Select the stand-alone FormLayout named (6) Samples_Picking List.tff // This FormLayout is usually installed as part of TFORMer in // - Windows Vista or later: C:/Program Data/TEC-IT/TFORMer/7.0/Templates // - Older versions of Microsoft Windows: C:/Documents and Settings/All Users/Application Data/TEC-IT/TFORMer/7.0/Templates printJob.setRepositoryName ("C:\\Documents and Settings\\All Users\\Application Data\\TEC-IT\\TFORMer\\7.0\\Templates\\(6) Samples_Picking List.tff"); // Create a new JobData instance using the DataSource named "ODBC" defined inside the Formlayout JobDataDataSource jobData = new JobDataDataSource("ODBC"); // Specify any DataSourceParameters jobData.setParameterValues ("PickingListParameter", "2"); // Assign the JobData to the Job printJob.setJobData (jobData); // Select PDF output to /temp/out.pdf printJob.setOutputName ("/temp/out.pdf"); printJob.setPrinterType (EPrinterType.PDFFile); // Generate output based on the FormLayout and the JobData printJob.print();
Constructor for JobDataDataSource.
Initializes a new instance of JobDataDataSource class.
JobDataDataSource | ( | String | sName | ) |
Constructor for JobDataDataSource.
Initializes a new instance of JobDataDataSource class.
sName | The name of the DataSource in the FormLayout or in the Repository |
String getName | ( | ) |
Gets the name of the datasource.
boolean isHandleEscapeSequences | ( | ) | [inherited] |
Gets/Sets a flag indicating whether escape sequences in DataField values like \n or \x40 should be translated by TFORMer SDK.
true
if escape sequences in DataField values are translatedboolean isReuseValues | ( | ) | [inherited] |
Gets a flag indicating whether DataField-values should be reused in consecutive records.
false
if DataField-values are cleared between recordsvoid setHandleEscapeSequences | ( | boolean | bHandleEscapeSequences | ) | [inherited] |
Sets a flag indicating whether escape sequences like \n or \x40 should be translated by TFORMer.
bHandleEscapeSequences | true if escape sequences in DataField-values should be translated |
void setName | ( | String | sName | ) |
Sets the name of the datasource.
If no name or an empty string was specified, then TFORMer SDK uses the default DataSource.
sName | The name of the DataSource in the FormLayout or in the Repository |
void setParameterValues | ( | String | sParameter, |
String | sValue | ||
) |
Sets the values for DataSourceParameters.
sParameter | The name of the DataSourceParameter |
sValue | The value of the DataSourceParameter |
void setReuseValues | ( | boolean | bReuseValues | ) | [inherited] |
© 2006-2012 - all rights reserved by TEC-IT Datenverarbeitung GmbH |
![]() |
Generated on Tue Oct 23 2012 16:33:20 for TFORMer SDK - JAVA with doxygen 1.8.0 |