In Page_Exporting under View Page I'd like to use field values for things like the title of the page, and filename etc.
something like this:
public function pageExporting()
{
global $ExportFileName;
$ExportFileName = "StudentCard_".$this->StudentID->CurrentValue;
if ($this->Export == "pdf") {
$this->ExportDoc->Text = "<style>td { font-size: 12px; font-family: Arial, Helvetica, sans-serif;}</style>";
$this->ExportDoc->Text .= "<h1 style='font-family: Arial, Helvetica, sans-serif'>Student Card | ".$this->StudentID->ViewValue."</h1>"; // Add title
$this->ExportDoc->Text .= "<img src='".$school_logo()."' width='200' style='float: right;'></img>";
}
return true; // Return true to use default export and skip Row_Export event
}
It doesn't seem like field values can be used within this function, even though the exported pdf is loaded with field values...
What's the best method for this?