I would like to stop exports of large files to avoid timeouts. The page is used for multiple purposes so requiring search criteria does not work. I would like to do this by checking if search criteria have been entered and then deciding whether to stop the export. In Page_Export:
$doc->Text = $this->SearchWhere;
if ($this->SearchWhere == "")
{
$this->SearchWhere = '" 0 == NULL"' ;
}
The SearchWhere has the correct clause and shows in the exported header, but I can not find a value that makes the search fail . The Page_Export and Row_Export only appear to switch back and forth, but not allow the export to be cancelled.