I have a report that should prints the image of the products that are in the related purchase order ( print only the images of the products that has the property Imprimir Desenho checked on Quality product requirement)
the code I have in the report is
*Requisito produto Qualidade - OnAfterGetRecord()
IF ReqQualidade.GET("Requisito produto Qualidade".Requisito) THEN
IF ReqQualidade."Imprimir Desenho" THEN
IF ItemTemp.INSERT THEN
*Desenho - OnPreDataItem()
IF NOT flagglobal THEN
*Desenho - OnAfterGetRecord()
IF ItemI.GET(ItemTemp."No.") THEN
IF filee.OPEN(manufactsetup.Destino+'\'+ItemI.Ficheiros) THEN
The report only prints the first product that has the property Imprimir Desenho checked on Quality product requirement, but it print it as many time as products in the order with that same characteristic.
in an order with 2 products with the requirement "Imprimir Desenho" it only prints the image of the first but 2 times
Can same one tell me where the problem is?