PdcCalculation.PrintProductionForm: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
== Notes == | == Notes == | ||
This method prints the production form for the given calculations using the given layout. | 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. | 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. | ||
Line 13: | Line 11: | ||
This method is depended on the users rights to print production forms. | This method is depended on the users rights to print production forms. | ||
== Parameters == | |||
CalcNrList: List of calculations to print this production form for | CalcNrList: List of calculations to print this production form for<br /> | ||
LayoutList: List of layouts that should be used to print the production form | LayoutList: List of layouts that should be used to print the production form<br /> | ||
CombiForm: Should the production form be a combi form | CombiForm: Should the production form be a combi form<br /> | ||
== Code example == | == Code example == |
Latest revision as of 08:36, 21 May 2012
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.