Skip to main content

Posts

Showing posts from June, 2015

Coldfusion 11: Printing the Contents of a Specific DIV

Recently, we upgraded (where I work) from CF9 to CF11.  We could have simply moved all the code as it was to the new servers, but I decided to make the process even more challenging by moving away from custom CSS to Bootstrap and begin using AngularJS as the front end Javascript framework.  During this process, some of the features, like printing, were missed and didn't make it to the new version of the system. Feedback from a few end users was that they had to have printing.  Where is the printing?! My hope was that printing could be accomplished by printing via the browser.  But different browsers yielded different results.  Printing the page in general wasn't a good option anyway because of the header menu and various options for controlling the content (and by content I mean college class lists, advisee lists, etc.).  Enter a thought and CFHTMLTOPDF, a little Javascript (jQuery) and a page. I will preempt the following by saying I am likely never to win any awards fo