Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cfprint not stapling

New Here ,
Jun 21, 2011 Jun 21, 2011

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?

1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jun 21, 2011 Jun 21, 2011

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jun 21, 2011 Jun 21, 2011

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 21, 2011 Jun 21, 2011

Yes that was a little harsh, but it made me laugh.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jun 21, 2011 Jun 21, 2011

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...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 21, 2011 Jun 21, 2011
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jun 21, 2011 Jun 21, 2011

You can staple using <cfprint>

Yep. I just saw that in the docs. Darned email delay ...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jun 21, 2011 Jun 21, 2011

Have you tried the GetPrinterInfo function to see if stapling is supported on the printer?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 21, 2011 Jun 21, 2011

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jun 21, 2011 Jun 21, 2011

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jun 21, 2011 Jun 21, 2011

Does it print OK and just not staple, or does it not print at all?  Do you see anything in the log files?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 21, 2011 Jun 21, 2011
LATEST

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...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 21, 2011 Jun 21, 2011

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jun 21, 2011 Jun 21, 2011

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jun 21, 2011 Jun 21, 2011

Update:  Nevermind ... I can see we reached the same conclusions 😉


Message was edited by: -==cfSearching==-

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources