I have managed to get the script to display an existing PDF report using the following redirection code:
{
//Redirect browser to display selected report.
$new_url = $row["rpt_path"];
header("Refresh: 1; url=$new_url"
;
}
From other post I have read, etc..., I should be able to use the following code:
{
//Redirect browser to display selected report.
$new_url = $row["rpt_path"];
header("Location: $new_url"
;
}
When I use this code, I get a message box in the browser stating "The file is damaged and cannot be repaired." And basically, I get a blank screen.
I can see that the url is correct for the desired report in the browser. I can copy the url, open a new window and paste the url in and it works. So I know that the file is not damaged or corrupt.
Any ideas or suggestions? If additional information is needed, let me know.
{
//Redirect browser to display selected report.
$new_url = $row["rpt_path"];
header("Refresh: 1; url=$new_url"
}
From other post I have read, etc..., I should be able to use the following code:
{
//Redirect browser to display selected report.
$new_url = $row["rpt_path"];
header("Location: $new_url"
}
When I use this code, I get a message box in the browser stating "The file is damaged and cannot be repaired." And basically, I get a blank screen.
I can see that the url is correct for the desired report in the browser. I can copy the url, open a new window and paste the url in and it works. So I know that the file is not damaged or corrupt.
Any ideas or suggestions? If additional information is needed, let me know.