PdcCalculation.PrintProductionForm
Jump to navigation
Jump to search
Declaration
PrintProductionForm(LayoutList as IStrings) as Boolean
Description
Prints the productionform
Notes
This method prints the production form for the given calculations using the given layout. Operationally, it can be any report you like???, printed at any stage of the process, as long as it's defined as an production form (PP layout) in PdC.
This method is depended on the users rights to print production forms.
Parameters
CalcNrList: List of calculations to print this production form for
LayoutList: List of layouts that should be used to print the production form
CombiForm: Should the production form be a combi form
Code example
Dim ListCalculations
Dim ListLayoutNames
Set ListCalculations = pdc.GetEmptyStringsList
Set ListLayoutNames = pdc.GetEmptyStringsList
ListCalculations.Add "0901-00001"
ListLayoutNames.Add "Layout 1"
ListCalculations.Add "0901-00002"
ListLayoutNames.Add "Layout 2"
If pdc.PrintProductionForm(ListCalculations, ListLayoutNames, False) Then
msgbox "Layouts printed succesfully"
Else
msgbox "Error printing layouts!"
End If
ListCalculations.Free
ListLayoutNames.Free
Set ListCalculations = nothing
Set ListLayoutNames = nothing
Availability
Available since June 2006.