PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → passing parameters to a report
passing parameters to a report
Débuté par Paul Ashton, 25 fév. 2020 11:12 - 1 réponse
Posté le 25 février 2020 - 11:12
Hi all,

Can anyone help me with the following issue.

I've created a report in WEBDEV (RPT_Vehicle_Summary ) which has the following parameters....Pstartdate, Penddate,Pvehicleregistration.

I can get the report to run by opening it up and pressing the GO button and entering the parameters for testing but I've created a report range page (PAGE_Vehicle_Report_Range) which has EDT_Start_Date, EDT_End_Date and EDT_Vehicle_Registration on it with a BTN_Print_Report on it.

How do I pass the parameters from the PAGE_Vehicle_Report_Range window to the RPT_Vehicle_Summary window from my BTN_Print_Report button?

I've tried the following code but it's not giving me any data back

iDestination(iGenericPDF)
iInitReportQuery(RPT_Vehicle_Summary,EDT_Start_Date,EDT_End_Date,EDT_Vehicle_Registration)
iPrintReport(RPT_Vehicle_Summary)
FileDisplay(iLastFile(),"application/pdf")


Thank you
Paul.
Posté le 26 février 2020 - 15:41
Hi!

I use:

iSequencingAdd(parameter1, parameter2, ...)
iPreview() // Open the preview window
iSequencingPrint()