• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 486
  • Last Modified:

Please help with ColdFusion printing problem

Need help figuring out why my PDF print function works only on certain PDF's. I don't see any major differences in my PDF docs, there about the same size, yet if I place a working PDF in a non working PDF folder it works. (Each PDF has it's own folder that ColdFusion connects to)

CF error:

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

The following information is meant for the website developer for debugging purposes.  

Error Occurred While Processing Request  
Could not print PDF document.  
Null range specified  
The error occurred in D:\www\scripts\DD\sendprint.cfm: line 44
42 : 	<CFDIRECTORY ACTION="LIST" DIRECTORY="\\DSS1\Shared_Data\www\dwgs\#myarray[i]#" NAME="dcndir" FILTER="*.pdf">
43 : 	<CFLOOP QUERY="dcndir">
44 :      <cfprint type="pdf" source="\\DSS1\Shared_Data\www\dwgs\#myarray[i]#\#name#" attributeStruct="#aset#"> 
46 : 		<CFSET ptotal=ptotal+1>

Open in new window

  • 2
1 Solution
Who developed cold fusion code for you?

The is clearly a bug here:

 "<cfprint type="pdf" source="\\DSS1\Shared_Data\www\dwgs\#myarray[i]#\#name#" attributeStruct="#aset#"> "

Open in new window

One possibility is "myarray(i)" is not set here

Also Error 500 - Internal server error is IIS Error (not cold fusion).

So the other  possibility can be permission issue. Do you have direct access to web server? If so can you browse to the webpage on the server?
DJPr0Author Commented:
Everything worked fine after I updated ColdFusion from 9.00 to 9.01.
DJPr0Author Commented:
ColdFusion had a problem with recognizing newer versions with out updating.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now