Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Any coldfusion devs on here?

Thread Tools
 
Search this Thread
 
Old 19 February 2008, 05:14 PM
  #1  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default Any coldfusion devs on here?

Been asked to modify an existing coldfusion application (original dev has disappeared)

Question - the mod includes the ability to pull data out of the database and print it onto pre-printed stationery (ie. a person's name, address, etc...) Won't this be a pain, considering its an HTML / web based application ?

I thought of using tables, where I can at least I can set cell width and heights, to help alignment with the stationery ?
Old 19 February 2008, 07:47 PM
  #2  
judgejules
Scooby Regular
 
judgejules's Avatar
 
Join Date: Nov 2000
Posts: 1,227
Likes: 0
Received 0 Likes on 0 Posts
Default

I worked in CF for about ten years until I moved jobs two years ago.

I guess they want the print outs to happen server side, rather than having the "web user" view the report page then print it?

If they are using CF8 on the server then check out <CFPRINT>, if not get your thinking cap on

If they want it "client" side then its easy, just use tables as you suggest.
Old 19 February 2008, 07:52 PM
  #3  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by judgejules
I worked in CF for about ten years until I moved jobs two years ago.

I guess they want the print outs to happen server side, rather than having the "web user" view the report page then print it?

If they are using CF8 on the server then check out <CFPRINT>, if not get your thinking cap on

If they want it "client" side then its easy, just use tables as you suggest.
Thanks. Unfortunately we're on MX6.1, so we're limited. I could use CSS, but I'm not convinced I can get it pixel perfect-ish. Still, the customer's printer won't change, so it's not as if it has to work across the board.

What do you use instead of CF now, out of curiosity ?
Old 19 February 2008, 08:14 PM
  #4  
judgejules
Scooby Regular
 
judgejules's Avatar
 
Join Date: Nov 2000
Posts: 1,227
Likes: 0
Received 0 Likes on 0 Posts
Default

Tables will be fine. If you want to do multi pages look at:

page-break-after: always;

put an encompassing table around each page, put this on your per page table and it'll page break after every "page".

I had pages printing out with tiny fold marks on them so it would all line up for a windowed envelope. Its easy to do if you have the patience to line it all up.

As for printing server side on 6.1. You'll probably need to pay for a component that'll do it or whip one up in VB/C++/. Dump the raw html out to the file system somewhere then <CFEXECUTE> your program at the end of all that and you're sorted.

I was forced to learn CF in a few days at the job I had as it was the companies weapon of choice at the time. However I have a gripe with having to pay for it so I'm currently using asp.net as I've been using asp on an off since it was launched.
Old 19 February 2008, 08:46 PM
  #5  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by judgejules
Tables will be fine. If you want to do multi pages look at:

page-break-after: always;

put an encompassing table around each page, put this on your per page table and it'll page break after every "page".

I had pages printing out with tiny fold marks on them so it would all line up for a windowed envelope. Its easy to do if you have the patience to line it all up.

As for printing server side on 6.1. You'll probably need to pay for a component that'll do it or whip one up in VB/C++/. Dump the raw html out to the file system somewhere then <CFEXECUTE> your program at the end of all that and you're sorted.

I was forced to learn CF in a few days at the job I had as it was the companies weapon of choice at the time. However I have a gripe with having to pay for it so I'm currently using asp.net as I've been using asp on an off since it was launched.
I did it the other way around - learned ASP (thanks to WROX press's big red books!) and migrated to CF.

Thanks for the tips - will give them a whirl
Old 19 February 2008, 08:51 PM
  #6  
judgejules
Scooby Regular
 
judgejules's Avatar
 
Join Date: Nov 2000
Posts: 1,227
Likes: 0
Received 0 Likes on 0 Posts
Default

Na same here, had the old red 1.0 wrox book. My first major site was written in asp which is what I used to get my first job.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
spectrum48k
Computer & Technology Related
3
04 July 2008 12:23 PM
ScoobyWon't
Computer & Technology Related
3
06 October 2003 07:41 PM
dazc2
Other Marques
23
24 March 2003 08:57 PM



Quick Reply: Any coldfusion devs on here?



All times are GMT +1. The time now is 06:11 AM.