Hi experts, I created a custom view page and want to export it to PDF by changing the name with the following code in the Page_Exporting() event:
if ($this->isExport("pdf")) {
$doc->FileName = "payroll_" . $this->ID->CurrentValue;
}
But the code I tried doesn't work at all. Am I missing something?