PdcApplication.PrintProductionForm: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
No edit summary
 
Line 1: Line 1:
== Declaration ==
== Declaration ==
 
PrintProductionForm(CalcNrList as IStrings,LayoutNameList as IStrings,CombiForm as Boolean) as Boolean


== Description ==
== Description ==
Print production forms


== Notes ==
This method prints the production form for the applied list of calculations.
The report must be a part of the PP layoutmanager in PdC.<br />


== Notes ==
This method is depended on the users' rights to print production forms.<br />


CalcNrList List of calculations to print this production form for<br />
LayoutList List of layouts that should be used to print the production form<br />
CombiForm Should the production form be a combi form


== Code example ==
== Code example ==
The production reports 'Layout 1' and 'Layout 2' are printed for the calculations 0901-00001 and 0901-00002.


<source lang="vb">
dim strlstCalculations
dim strlstLayoutNames


<source lang="vb">
  set strlstCalculations = pdc.GetEmptyStringsList
  set strlstLayoutNames = pdc.GetEmptyStringsList
 
  strlstCalculations.Add "0901-00001"
  strlstCalculations.Add "0901-00002"
  strlstLayoutNames.Add  "Layout 1"
  strlstLayoutNames.Add  "Layout 2"
 
  If pdc.PrintProductionForm(strlstCalculations, strlstLayoutNames, False) Then
    msgbox "Layouts printed succesfully"
  Else
    msgbox "Error printing layouts!"
  End If


  Set strlstCalculations = nothing
  Set strlstLayoutNames = nothing
</source>
</source>


== Availability ==
== Availability ==
Available since June 2006 (From version 3.7).

Latest revision as of 11:10, 21 May 2012

Declaration

PrintProductionForm(CalcNrList as IStrings,LayoutNameList as IStrings,CombiForm as Boolean) as Boolean

Description

Print production forms

Notes

This method prints the production form for the applied list of calculations. The report must be a part of the PP layoutmanager in PdC.

This method is depended on the users' rights to print production forms.

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

The production reports 'Layout 1' and 'Layout 2' are printed for the calculations 0901-00001 and 0901-00002.

dim strlstCalculations
dim strlstLayoutNames

  set strlstCalculations = pdc.GetEmptyStringsList
  set strlstLayoutNames = pdc.GetEmptyStringsList

  strlstCalculations.Add "0901-00001"
  strlstCalculations.Add "0901-00002"
  strlstLayoutNames.Add  "Layout 1"
  strlstLayoutNames.Add  "Layout 2"

  If pdc.PrintProductionForm(strlstCalculations, strlstLayoutNames, False) Then
    msgbox "Layouts printed succesfully"
  Else
    msgbox "Error printing layouts!"
  End If

  Set strlstCalculations = nothing
  Set strlstLayoutNames = nothing

Availability

Available since June 2006 (From version 3.7).