Announcements
I am facing a recursive loop when I try to use Report.SaveAs() in a report extension. I understand that Report.SaveAs() runs the report again which is what causes the loop to occur.
My goal is to automatically email the report as a pdf to the associated customer after they run the report. How do I get past this if I can't call Report.SaveAs() OnPostReport? Where can I call Report.SaveAs() so that I can still send it to the same customer that ran the report?
Thanks,
Without knowing the specifics of the report - you can wrap the report in code that calls the "report for print" and the "report for saving." You can RunRequestPage to get the parameters for the report.
André Arnaud de Cal...
294,217
Super User 2025 Season 1
Martin Dráb
232,976
Most Valuable Professional
nmaenpaa
101,158
Moderator