Open(aID as long,Aregister as Boolean) as PdcProductReport
This function returns an existing product report. Input parameters: ID, the ID of the product report. Register, should be opend for read/write or readonly. Note that reporting finished products is not fully implemented yet. It is expected in version 4.3 or onwards.
This code example creates a new product report for production order 10200.
dim report set report = pdc.ProductRegistration.ProductReports.Open(125,false) if report.rejection then msgbox "Afkeur aantal: " & report.rejectionQuantity else msgbox "Aantal: " & report.Quantity end if set report = nothing
Available from version 4.0 onwards.