Click to See Complete Forum and Search --> : CSS Printout


Roadrunner
05-26-2007, 02:16 PM
I have developed a form in dreamweaver and ASP. I am now doing the css printout. I want the contents of the form when printed to come out in letter format. I have several headings in the form to show different sections. Not all the parts of the form are mandatory.

My question is, if part of the form isn't filled in can these be left out of the printout and the next section moves up so there are no large gaps in the printout.

I want the headings to not appear in the printed version only if that part of the form is filled in.

ray326
05-26-2007, 03:19 PM
Sounds like you need to do a view-only representation of the form content. Save the form data in the user session and they can view, print and update the content as needed. Are you also saving the form content in a database?

Roadrunner
05-29-2007, 05:39 PM
As soon as the user clicks on the submit button the details are added to the access database and the printer selection details appear. I don't understand how to remove the headings from the printout if that part of the form hasn't been completed.

ray326
05-29-2007, 11:13 PM
printer selection details appearHow does that happen?

Roadrunner
05-30-2007, 02:42 PM
<input type="submit" value="Submit" onClick="window.print()">

ray326
05-30-2007, 05:13 PM
At that point the print medium CSS comes into play.

http://alistapart.com/articles/goingtoprint