Skip to main content
Participating Frequently
June 21, 2011
Question

cfprint not stapling

  • June 21, 2011
  • 2 replies
  • 1609 views

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?

    This topic has been closed for replies.

    2 replies

    Participating Frequently
    June 21, 2011

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

    ds_pcAuthor
    Participating Frequently
    June 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.

    Participating Frequently
    June 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?

    Participating Frequently
    June 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?

    Participating Frequently
    June 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.

    ds_pcAuthor
    Participating Frequently
    June 21, 2011

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