I'm trying to add a link to a printer friend page for my module. I used this little bit of code at the end of the function to make that happen.
Code
$output->TableEnd();
if($display == "print")
{
$output->PrintPage();
}
return $output->GetOutput();
if($display == "print")
{
$output->PrintPage();
}
return $output->GetOutput();
I get a nice page view that is printer friendly. However, if I click back on the browser and click the printer-friendly link again, the HTML for that page is displayed instead of a nice printer-friendly page. If I were to click on any other link, the page looks normal.
Does anyone know what is causing this? Ideally, I'd like the printer-friendly page to open in a new browser window, but I don't know how to do that within the pnAPI.
Thanks in advance for your help
