I have a problem and need help.
I created a web page using Coldfusion the report by PDF file. I have no problem at all but others have problem to open pdf file. They got "the file is damaged and cannot be repaired" message which I never had.
Here is my code:
<CFQUERY NAME="rptName" DATASOURCE="#REQUEST.spedata#">
SELECT report_id, report_name, report_desc, subdirectory
FROM spe_report
WHERE report_id = #ReportID#
</CFQUERY>
<!body ONLOAD="document.showRpt.submit();">
<body>
<FORM NAME="showRpt" METHOD="post">
<CFOUTPUT>
<CFSET SubDir = "#rptName.subdirectory#/">
<CFSET RptName = "#rptName.report_name##School#.pdf">
<CFSET URLList = "#RptDir##SubDir##RptName#">
</CFOUTPUT>
</FORM>
<CFLOCATION URL="#URLList#">
</body>
Thanks a lot for any help.
Jeanne
I created a web page using Coldfusion the report by PDF file. I have no problem at all but others have problem to open pdf file. They got "the file is damaged and cannot be repaired" message which I never had.
Here is my code:
<CFQUERY NAME="rptName" DATASOURCE="#REQUEST.spedata#">
SELECT report_id, report_name, report_desc, subdirectory
FROM spe_report
WHERE report_id = #ReportID#
</CFQUERY>
<!body ONLOAD="document.showRpt.submit();">
<body>
<FORM NAME="showRpt" METHOD="post">
<CFOUTPUT>
<CFSET SubDir = "#rptName.subdirectory#/">
<CFSET RptName = "#rptName.report_name##School#.pdf">
<CFSET URLList = "#RptDir##SubDir##RptName#">
</CFOUTPUT>
</FORM>
<CFLOCATION URL="#URLList#">
</body>
Thanks a lot for any help.
Jeanne