This one was not discussed during the usergroup tour, and I have not seen anyone mention it since we released the
CF8 public beta, so ...
If you've ever needed server-side printing under programmatic control, ColdFusion 8 introduces a new <CFPRINT> tag. <CFPRINT> prints PDF files (including those created using <CFDOCUMENT>, <CFREPORT> and <CFPDF>) to a printer of your choice. At a minimum, <CFPRINT> requires just the name of the PDF file to be sent to the default system printer, but additional attributes can be used to specify the printer, copy count, the pages to print, as well as to pass lots of other printer settings. The list of available printers (and their names, as must be passed to <CFPRINT>)is listed in the ColdFusion Administrator. And a new supporting GetPrinterInfo() function returns all sorts of information about specified printers.
While I don't claim to be Ben, I would imagine this is targetted to companies who host their own servers and want to print things like invoices, nightly reports, etc.
--- Ben
We use it to send a PDF print job to a "broadcast" printer that in turn prints out at 8 different workstation printers.
<cfprint type="pdf" pdf="mypdf.pdf" priner="Name Of Printer">
Nice, huh? ;-) I'd love for you to try it out, if you can, grab the beta and see if it works for you, and then let us know.
--- Ben
This great news, but...
...does cfprint have arguments for network authentification or would the instance of the CF windows service have to "log on as" an account that the printers' network server would permit?
- The user CF is running under has to have permissions to print.
- Works on all platforms that CF supports (and I've run tests on my Mac)
More in the CF Developers Guide.
HTH
Damon
now... with this, his wishes are answered :) yummies!
I wonder if there is a Custom Tag or Com object that would allow us to use <cfprint on CF 7, since we are not quite ready to put CF8 in our production environment...
--- Ben
--- Ben
--- Ben
Is this a bug or an undocumented cf standard edition limitation?
I use CF8 on Windows Server 2003 & IIS6
Thanks for your help!
Yesterday I decided to give-up with this tag when I discovered that with more than 1 page to print <cfprint> print all pages in one page! Another bug... another week lost to find a way to bypass the problem... NO THANKS!
<cfprint> was the main feature that convinced me to upgrade to version 8, but to solve my problems I need now to buy another software (I'M evaluating 3-Heights PDF Printer Service and seems to work very well...) and spend 1000.00 Euro to "finally" print something correct.
I hope that Adobe will fix these bugs as soon as possible.
Have you submitted the issues you are having as defects? Are you on the ColdFusion prerelease program? We'd love to fix the issues you're having, we just need to know what they are. :)
Happy New Years!
Jason