Namespace: Consultingwerk.Windows.ListAndLabel
Class 
LlApi Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:ListAndLabelApi
Purpose:Class based wrapper to List & Label API
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Fri Oct 12 19:21:34 CEST 2012
Notes:Download of the List & Label runtime files: http://confluence.consultingwerkcloud.com/wiki/pages/viewpage.action?pageId=11370541



Top Method Summary
Options Name Purpose
+ INTEGER DefineField (integer, character, character) Defines a list field and it's content
+ INTEGER DefineFieldExt (integer, character, character, integer, integer) Defines a list field and it's content
+ DefineFieldStart (integer) Clears the internal field buffer to clear outdated definitions
+ INTEGER DefineLayout (integer, integer, character, integer, character) Calls the interactive Designer that will be displayed as a modal pop-up window overlapping your application window.
+ INTEGER DefineVariable (integer, character, character) Defines a List and Label variable
+ INTEGER DefineVariableExt (integer, character, character, integer, integer) Defines an extended variable
+ DefineVariableStart (integer) Clears the internal variable buffer to clear outdated definitions
+ JobClose (integer) Closes a List & Label job
+ INTEGER JobOpen (integer) Opens a List & Label Job
+ INTEGER PreviewDeleteFiles (integer, character, character) Deletes the temporary file(s) which have been created by the preview print.
+ INTEGER PreviewDisplay (integer, character, character, integer) Starts the preview window.
+ INTEGER Print (integer) Output of all objects on the printer.
+ INTEGER PrintEnd (integer, integer) Ends the print job
+ INTEGER PrintFields (integer) Output of a table line
+ INTEGER PrintGetOption (integer, integer) Returns the various print options which are set by the user in the LlPrintOptionsDialog()
+ CHARACTER PrintGetOptionString (integer, integer) Returns various print option string settings.
+ INTEGER PrintOptionsDialog (integer, integer, character) Calls a print option selection window and enables the user to select print-specific settings.
+ INTEGER PrintOptionsDialogTitle (integer, integer, character, character) Calls a print option selection window and enables the user to select print-specific settings.
+ INTEGER PrintSetBoxText (integer, character, integer)
+ INTEGER PrintSetOption (integer, integer, integer) Sets various print options for the print job or the print options dialog, for example to preset the number of copies required.
+ INTEGER PrintSetOptionString (integer, integer, character) Sets various print options for List & Label
+ INTEGER PrintWithBoxStart (integer, integer, character, integer, integer, integer, character) Starts the print job and opens the project file. Supports an abort window.
+ INTEGER SelectFileDlgTitleEx (integer, integer, character, integer, memptr, integer, integer) Opens a file select dialog with an integrated preview window
+ INTEGER SetOption (integer, integer, integer) Sets diverse options in List & Label
+ INTEGER SetOptionString (integer, integer, character) Sets string options in List & Label
+ CHARACTER XGetParameter (integer, integer, character, character) Gets parameters from a specific extension module
+ INTEGER XSetParameter (integer, integer, character, character, character) Sets parameters in a specific extension module.

Top Constructor Summary
Options Name Purpose
- LlApi () Private constructor for the LlApi class


Method Detail
Top

PUBLIC INTEGER DefineField (integer, character, character)

Purpose: Defines a list field and it's content
Notes:

Parameters:
hLlJob INTEGER
The List & Label Job reference
pszVarName CHARACTER
The Field Name
lpbufContents CHARACTER
The Field Value
Returns INTEGER
Error code
Top

PUBLIC INTEGER DefineFieldExt (integer, character, character, integer, integer)

Purpose: Defines a list field and it's content
Notes:

Parameters:
hLlJob INTEGER
The List & Label Job reference
pszVarName CHARACTER
The Field Name
lpbufContents CHARACTER
The Field Value
lPara INTEGER
The type of the field
lpPtr INTEGER
Reserved for future enhancements
Returns INTEGER
Error code
Top

PUBLIC DefineFieldStart (integer)

Purpose: Clears the internal field buffer to clear outdated definitions
Notes:

Parameters:
hLlJob INTEGER
The List & Label Job reference
Top

PUBLIC INTEGER DefineLayout (integer, integer, character, integer, character)

Purpose: Calls the interactive Designer that will be displayed as a modal
pop-up window overlapping your application window.
Notes: The window handle is used to deactivate the calling program.
If this is not desired or possible, NULL can also be passed. In this
case the calling program is responsible for closing the layout editor, s
hould the user abort the main program. This is not recommended.
When the List & Label layout Designer is minimized, the calling program
is also automatically minimized; when the Designer is subsequently restored,
List & Label is also restored.

Parameters:
hLlJob INTEGER
List & Label job handle
hWnd INTEGER
Handle of the application window which will be disabled while the Designer is being displayed.
pszTitle CHARACTER
Window title
nObjType INTEGER
Project type
pszObjName CHARACTER
The name of the layout file
Returns INTEGER
Error code
Top

PUBLIC INTEGER DefineVariable (integer, character, character)

Purpose: Defines a List and Label variable
Notes:

Parameters:
hLlJob INTEGER
The List & Label Job reference
pszVarName CHARACTER
The Field Name
lpbufContents CHARACTER
The Field Value
Returns INTEGER
Error code
Top

PUBLIC INTEGER DefineVariableExt (integer, character, character, integer, integer)

Purpose: Defines an extended variable
Notes:

Parameters:
hLlJob INTEGER
The List & Label Job reference
pszVarName CHARACTER
The Field Name
lpbufContents CHARACTER
The Field Value
lPara INTEGER
The type of the variable
lpPtr INTEGER
Reserved for future enhancements
Returns INTEGER
Error code
Top

PUBLIC DefineVariableStart (integer)

Purpose: Clears the internal variable buffer to clear outdated definitions
Notes:

Parameters:
hLlJob INTEGER
The List & Label Job reference
Top

PUBLIC JobClose (integer)

Purpose: Closes a List & Label job
Notes:

Parameters:
hLlJob INTEGER
The List & Label Job reference
Top

PUBLIC INTEGER JobOpen (integer)

Purpose: Opens a List & Label Job
Notes: Almost all List & Label API's need the return value of this method
as a parameter

Parameters:
nLanguage INTEGER
The language for the List & Lable UI
Returns INTEGER
The Job handle or job number
Top

PUBLIC INTEGER PreviewDeleteFiles (integer, character, character)

Purpose: Deletes the temporary file(s) which have been created by the preview print.
Notes:

Parameters:
hLlJob INTEGER
List & Label job handle
pszObjName CHARACTER
Valid file name without path name!
pszPath CHARACTER
Valid path of the preview files ending with a backslash "\".
Returns INTEGER
Error code
Top

PUBLIC INTEGER PreviewDisplay (integer, character, character, integer)

Purpose: Starts the preview window.
Notes:

Parameters:
hLlJob INTEGER
List & Label job handle
pszObjName CHARACTER
Valid file name without path name!
pszPath CHARACTER
Valid path of the preview files ending with a backslash "\".
hWnd INTEGER
Window handle of the calling program
Returns INTEGER
Error code
Top

PUBLIC INTEGER Print (integer)

Purpose: Output of all objects on the printer.
Notes: Normal objects and the header of a table object (see option
LL_OPTION_DELAYTABLEHEADER) are printed. A table object has to be
filled with calls of LlPrintFields() afterwards. LlPrint is responsible
for a page break.
Label/card projects: As long as LlPrint() returns LL_WRN_REPEAT_DATA,
LlPrint() must be called again, so objects that have caused a page break
must be printed again on the next label /page.
This function is described explicitly in the chapter "Further Programming
Basics"

Parameters:
hLlJob INTEGER
List & Label job handle
Returns INTEGER
Error code
Top

PUBLIC INTEGER PrintEnd (integer, integer)

Purpose: Ends the print job
Notes:

Parameters:
hLlJob INTEGER
List & Label job handle
nPages INTEGER
Number of empty pages desired after the print
Returns INTEGER
Error code
Top

PUBLIC INTEGER PrintFields (integer)

Purpose: Output of a table line
Notes: With the return value LL_WRN_REPEAT_DATA, List & Label informs you
that you have to start a new page for the entry. With the corresponding
LlPrint() on the next page the record pointer should not be moved to
the next record.
If more tables are added via LlDbAddTable() the return value also can
be LL_WRN_TABLECHANGE. Please refer to chapter "5.5. Printing
Relational Data" for further information.

Parameters:
hLlJob INTEGER
List & Label job handle
Returns INTEGER
Error code or command
Top

PUBLIC INTEGER PrintGetOption (integer, integer)

Purpose: Returns the various print options which are set by the user in the
LlPrintOptionsDialog()
Notes:

Parameters:
hLlJob INTEGER
List & Label job handle
nIndex INTEGER
LL_PRNOPTSTR_EXPORT, LL_PRNOPTSTR_ ISSUERANGES, LL_PRNOPTSTR_ PAGERANGES, LL_PRNOPTSTR_PRINTDST_FILENAME, LL_PRNOPTSTR_PRINTJOBNAME,
Returns INTEGER
Setting chosen by the user
Top

PUBLIC CHARACTER PrintGetOptionString (integer, integer)

Purpose: Returns various print option string settings.
Notes:

Parameters:
hLlJob INTEGER
List & Label job handle
nIndex INTEGER
Returns CHARACTER
The Option Value
Top

PUBLIC INTEGER PrintOptionsDialog (integer, integer, character)

Purpose: Calls a print option selection window and enables the user to select
print-specific settings.
Notes:

Parameters:
hLlJob INTEGER
List & Label job handle
hWnd INTEGER
Window handle of the calling program
lpszText CHARACTER
Text to be passed in the dialog, e.g. 'Only 55 labels will be printed'
Returns INTEGER
Error code
Top

PUBLIC INTEGER PrintOptionsDialogTitle (integer, integer, character, character)

Purpose: Calls a print option selection window and enables the user to select
print-specific settings.
Notes:

Parameters:
hLlJob INTEGER
List & Label job handle
hWnd INTEGER
Window handle of the calling program
lpszTitle CHARACTER
Dialog title
lpszText CHARACTER
Text to be passed in the dialog, e.g. 'Only 55 labels will be printed'
Returns INTEGER
Error code
Top

PUBLIC INTEGER PrintSetBoxText (integer, character, integer)

Purpose:
Notes:

Parameters:
hLlJob INTEGER
List & Label job handle
lpszText CHARACTER
Text which should appear in the box
nPercantage INTEGER
Progress percentage
Returns INTEGER
Error code
Top

PUBLIC INTEGER PrintSetOption (integer, integer, integer)

Purpose: Sets various print options for the print job or the print options
dialog, for example to preset the number of copies required.
Notes:

Parameters:
hLlJob INTEGER
List & Label job handle
nIndex INTEGER
LL_PRNOPTSTR_EXPORT, LL_PRNOPTSTR_ ISSUERANGES, LL_PRNOPTSTR_ PAGERANGES, LL_PRNOPTSTR_PRINTDST_FILENAME, LL_PRNOPTSTR_PRINTJOBNAME,
nValue INTEGER
Sets the option corresponding to the nIndex
Returns INTEGER
Error code
Top

PUBLIC INTEGER PrintSetOptionString (integer, integer, character)

Purpose: Sets various print options for List & Label
Notes:

Parameters:
hLlJob INTEGER
List & Label job handle
nIndex INTEGER
LL_PRNOPT_COPIES, LL_PRNOPT_PAGE, LL_PRNOPT_OFFSET, LL_PRNOPT_FIRSTPAGE, LL_PRNOPT_LASTPAGE, LL_PRNOPT_PRINTDLG_ONLYPRINTERCOPIES, LL_PRNOPT_UNITS
pszBuffer CHARACTER
The new value
Returns INTEGER
Error code
Top

PUBLIC INTEGER PrintWithBoxStart (integer, integer, character, integer, integer, integer, character)

Purpose: Starts the print job and opens the project file. Supports an abort
window.
Notes:

Parameters:
hLlJob INTEGER
Job handle
nObjType INTEGER
LL_PROJECT_LABEL, LL_PROJECT_LIST or LL_PROJECT_CARD
pszObjName CHARACTER
The file name of the project
nPrintOptions INTEGER
Print options, like LL_PRINT_NORMAL, LL_PRINT_PREVIEW, LL_PRINT_FILE, LL_PRINT_EXPORT
nBoxType INTEGER
The dialog type
hWnd INTEGER
Window handle of the calling program (used as parent of the dialog box)
pszTitle CHARACTER
Title of the abort dialog box, also appears as text in the print manager
Returns INTEGER
Error code
Top

PUBLIC INTEGER SelectFileDlgTitleEx (integer, integer, character, integer, memptr, integer, integer)

Purpose: Opens a file select dialog with an integrated preview window
Notes:

Parameters:
hLlJob INTEGER
Job handle
hWnd INTEGER
The handle of the parent window
pszTitle CHARACTER
The title for the dialog
nObjType INTEGER
The list and label object type, LL_PROJECT_LABEL, LL_PROJECT_CARD, LL_PROJECT_LIST
pszObjName MEMPTR
INPUT-OUTPUT The object name to select
nBufSize INTEGER
The size of the object name buffer
pReserved INTEGER
Reserved for future use
Returns INTEGER
Error code
Top

PUBLIC INTEGER SetOption (integer, integer, integer)

Purpose: Sets diverse options in List & Label
Notes: Please call this function before LlDefineLayout() and before the
functions LlPrint...Start(), preferably directly after LlJobOpen()/
LlJobOpenLCID().

Parameters:
hLlJob INTEGER
List & Label job handle
nMode INTEGER
Mode index
nValue INTEGER
New value
Returns INTEGER
Error code
Top

PUBLIC INTEGER SetOptionString (integer, integer, character)

Purpose: Sets string options in List & Label
Notes: Most of the options need to be set before LlDefineLayout()and before
the functions LlPrint...Start(), preferably directly after LlJobOpen()/
LlJobOpenLCID(). If an option needs to be set at a different time,
this will be stated in that option's description.

Parameters:
hLlJob INTEGER
List & Label job handle
nMode INTEGER
Mode index
pcValue CHARACTER
New value
Returns INTEGER
Error code
Top

PUBLIC CHARACTER XGetParameter (integer, integer, character, character)

Purpose: Gets parameters from a specific extension module
Notes:

Parameters:
hLlJob INTEGER
List & Label job handle
nExtensionType INTEGER
Type of extension, LL_LLX_EXTENSIONTYPE_EXPORT, LL_LLX_EXTENSIONTYPE_BARCODE
pszExtensionName CHARACTER
Name of the extension ("HTML", "RTF", "PDF417", ...)
pszKey CHARACTER
Name of the parameter
Returns CHARACTER
The value of the parameter
Top

PUBLIC INTEGER XSetParameter (integer, integer, character, character, character)

Purpose: Sets parameters in a specific extension module.
Notes:

Parameters:
hLlJob INTEGER
List & Label job handle
nExtensionType INTEGER
Type of extension, LL_LLX_EXTENSIONTYPE_EXPORT, LL_LLX_EXTENSIONTYPE_BARCODE
pszExtensionName CHARACTER
Name of the extension ("HTML", "RTF", "PDF417", ...)
pszKey CHARACTER
Name of the parameter
pszValue CHARACTER
Value of the parameter
Returns INTEGER
Error code


Constructor Detail
Top

PRIVATE LlApi ()

Purpose: Private constructor for the LlApi class
Notes: Disallow instance creation



©2006-2019 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       09.08.2019 00:09:00