Copy link to clipboard
Copied
I am just testing with the <cfprint> tag and need it to duplex and staple. I can get the printer to duplex through <cfprint>, but when I try to staple it just won't do it. The printer is on the network, and like I said, I can get it to print fine if I take out the staple attribute or set fidelity to "no." I've tested just printing manually from my computer and it staples fine. I've looked at my drivers and they are up to date and working fine. I've not found many Google results pertaining to this problem. The livedocs are pretty unhelpful for this issue. Any thoughts or anyone having the same problem?
Copy link to clipboard
Copied
You need to nest the <cfswingline> tag inside the <cfprint> in order for that to work. Honestly, is this a serious question or a joke?
Copy link to clipboard
Copied
Sorry if that was harsh, I honestly thought you might have been joking as I had no idea you could control stapling via the <cfprint> tag. I've been informed that it wasn't a joke, so, again I'm sorry and I wish I had an answer to offer.
Copy link to clipboard
Copied
Yes that was a little harsh, but it made me laugh.
Copy link to clipboard
Copied
Honestly, is
this a serious question or a joke?
Could be a serious question. AFAIK the java print classes do support some sort of staple property. Though I have never used it...
Copy link to clipboard
Copied
You can staple using <cfprint>: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7996.html
Copy link to clipboard
Copied
You can staple using <cfprint>
Yep. I just saw that in the docs. Darned email delay ...
Copy link to clipboard
Copied
Have you tried the GetPrinterInfo function to see if stapling is supported on the printer?
Copy link to clipboard
Copied
Have you tried the GetPrinterInfo function to see if stapling is supported on the printer?
Yes, I've used GetPrinterInfo to look at the properties of the printer. The printer doesn't show finishing/stapling but I'm also using other attributes that don't show up on the GetPrinterInfo output. For example, pageScaling isn't shown in the properties of my printer, but when I add it to the <cfprint> tag and set fidelity to yes, I can still print.
Copy link to clipboard
Copied
I assume you've seen this in the docs?
Note: The particular printer attributes supported are dependent on the operating system, the network printer server, if there is one, and the printer. The cfprint tag is dependent on the Java Print Service (JPS). Many printers support attributes that are not accessible from JPS. For example, the JPS for a Macintosh OSX running JDK 1.5 supports the fewest printer attributes. Upgrading to JDK 1.6 adds some functionality, but finishing attributes are still not supported.
I also wonder if there is a fix for this in an updated version of the JPS, but I know nothing about that. Which JDK are you running? Is this CF8 or 9?
Copy link to clipboard
Copied
Does it print OK and just not staple, or does it not print at all? Do you see anything in the log files?
Copy link to clipboard
Copied
cfsilence wrote:
Does it print OK and just not staple, or does it not print at all? Do you see anything in the log files?
Well, if I set fidelity to no (which will still print as long as most of the attributes are supported), it prints and duplexes like I want, it just doesn't staple. If I set fidelity to yes, it complains that the attribute "fidelity" is not supported. Although this brings me back to my ealier comment about attributes that are not shown in the GetPrinterInfo yet will still print with fidelity set to yes...
Copy link to clipboard
Copied
cfsilence wrote:
I assume you've seen this in the docs?
Note: The particular printer attributes supported are dependent on the operating system, the network printer server, if there is one, and the printer. The cfprint tag is dependent on the Java Print Service (JPS). Many printers support attributes that are not accessible from JPS. For example, the JPS for a Macintosh OSX running JDK 1.5 supports the fewest printer attributes. Upgrading to JDK 1.6 adds some functionality, but finishing attributes are still not supported.
I also wonder if there is a fix for this in an updated version of the JPS, but I know nothing about that. Which JDK are you running? Is this CF8 or 9?
I did see that. To me it sounds like they are saying the JPS for a Mac OSX running JDK 1.6 does not suport finishings. I am running Windows 7, JDK 1.6, ColdFusion 9. I know nothing about the JPS either, I assume that gets updated with the JDK. I'll look into that.
Copy link to clipboard
Copied
You might want to try calling the underlying Java methods directly to create the print job and add the options and send to printer - just to see if it works that way (that would indicate a CF bug with the tag itself).
Here's an informative post that I found with a quick Google search that might help you try that out:
http://www.techrepublic.com/article/print-on-all-java-platforms-with-jps/6150617
Copy link to clipboard
Copied
Update: Nevermind ... I can see we reached the same conclusions 😉
Message was edited by: -==cfSearching==-