Lloyd
2008-10-22 00:22:18 UTC
I'm generating custom reports outputing to a pdf format using pdf995. The report names are generated by the code based on the user and the report type. Immediately after the report generation, i'd like to make them available to down load or to view through a web page. With the following code, I've been trying to make it available from a web page:
wtitle = wtitle + ".pdf"
ocgi.fout.puts('<a href="rep/"' + wtitle + '">Selected Report</a>')
It appears that the title variable gets truncated to "rep/". Is it not possible to use a variable in an href statement? When a report title is hard coded in place of the title variable, testing it on localhost, an error 500 response page displays.
If any one has successfully generated reports to download or view, I'd appreciate some suggestons on this or any other methods that would accomplish this.
Thanks
Lloyd
wtitle = wtitle + ".pdf"
ocgi.fout.puts('<a href="rep/"' + wtitle + '">Selected Report</a>')
It appears that the title variable gets truncated to "rep/". Is it not possible to use a variable in an href statement? When a report title is hard coded in place of the title variable, testing it on localhost, an error 500 response page displays.
If any one has successfully generated reports to download or view, I'd appreciate some suggestons on this or any other methods that would accomplish this.
Thanks
Lloyd