This topic is locked

Printer Friendly Pages

10/20/2010 7:54:35 PM
PHPRunner General questions
N
nix386 author

Hi there, I've been searching for a solution with no avail and just wanted to know if there is an easy way to remove the HTML links in printer friendly pages?

I use the printer friendly function on master/detail and it prints to screen fine however it outputs the HTML links for a number of fields. I want users to be able to copy and paste these printer friendly pages into email and word doc's without the links as they access tables some users don't have permission to access.
Any assistance would be greatly appreciated.
Cheers, Nick

Sergey Kornilov admin 10/21/2010

Nick,
it would help if you post a sample app URL here so we can provide a meaningful advice.

N
nix386 author 10/21/2010

Hi there, due to the nature of information in this app I cannot post a URL however the links that I refer to are generated from View As > Custom using this code.
$value = "<a href=\"main_table_view.php?editid1=".$data["CustomerName"]."\">".$value."</a>";
Cheers, Nick

Sergey Kornilov admin 10/21/2010

Nick,
I don't think PHPRunner is smart enough to modify your custom code automatically on printer page.
You have two options here

  1. Make your custom code "URL aware" so it displays plain text on printer page
  2. Add an extra field to SQL query and make it appear on printer page only instead of 'custom' one.