PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WEBDEV 2024 → Printing composite Report
Printing composite Report
Iniciado por Ruan, 04,mar. 2015 12:43 - No hay respuesta
Miembro registrado
208 mensajes
Popularité : +1 (1 vote)
Publicado el 04,marzo 2015 - 12:43
Good Day

I have created a report Called "QUOTE" It has 4 empty Sub reports. I am trying to add sub reports depending on the data from the page i.e. if Table A is not empty Add The report assosiated with that table to sub report 1 if it's empty it doesn't attach it. I am trying to use the "iChangeSubReportSource" function but it keep telling me that This function can only be called during the printout of composite report...What am I doing wrong here?

sFileNameis string = ""
sMimeTypeis string = ""
sFileis string = ""


AFile is string
AFile = fWebDir() + "\Quotes\" + EDT_QUOTE_NUMBER + ".pdf"
iDestination(iPDF, AFile)
iChangeSubReportSource(RPT_CIA_ONLINE_QUOTE.RPT_CIA_ONLINE_QUOTE_2,RPT_STRENGTH_ITEMS)
iPrintReport(RPT_CIA_ONLINE_QUOTE)



Is there easier or better way to include or exclude reports to Composite report?

Thanks