We are doing this using the cfimport feature of CFMX. We also do things like print the actual URL of a link in brackets next to a link in the print version automatically (something that surprisingly is also theoretically possible with CSS). This is done using something like <cfimport taglib="htmltags" prefix=""> (the key is the blank prefix). Then in the htmltags folder you have a tag for each HTML (or other) tag you want to process. It rather depends how your system works though. If you are dealing with a lot of static pages, you might be better off with adding a print stylesheet.
> -----Original Message----- > From: Jason Miller [mailto:[EMAIL PROTECTED]] > Sent: Monday, 3 February 2003 1:43 p.m. > To: CF-Talk > Subject: Using CF to pull content from with <div > tags for printing > > > Hello list - > I have been messing with this- but I do not know how to > complete a few > aspects. > > I would like to control printing from a webpage that heavily > uses CSS > styles and positioning for layers. > > What I would like to do is supply a print button - on click - > it would > launch a 2nd window - and tag all the content from within a > div tag OR a > custom tag I put in like... > <!-- Grab content starting here --> > <!-- Grab content End here --> > > So I would use CF to grab all text within that section ( and > it's styles > ) and dynamically write that to a printed page that has a > special high > quality logo, address and header information. > > Any help is GREATLY appreciated. > > The long route I can replace all content with an include > template - and > completely seperate content from html tags - BUT that would require a > fair amount of work on the site AND there are cases where due to > formating - I can't include all content on 1 include file. > But IF I could use this - it would be great - because the pop up > template would have a header and a footer - with the content > include in > the middle - so that should give the picture. > Thanks!! > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

