Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to plan for printing

Status
Not open for further replies.

RandyBlackburn

Programmer
Oct 1, 2002
153
US
I have a a datagrid and two tables spread across 3 pages. Unfortunatly I centered them using grid layout, and they are positionerd poorly for printing.

What is the best way to set things up so I can easiliy make the page printer ready. Or alternatively, a way to somehow reuse the controls on a printer ready page.

Thanks,
Randy
 
You should use CSS to control the page layout, then you can simply use a seperate stylesheet that will automatically get used when the user prints the page.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Randy - if it turns out that only landscape will work, well that's a browser setting and you might want to remind the client with an alert via javascript, e.g.:
Code:
<script language="JavaScript" type="text/javascript">
 function doPrint() {
  alert("Don't forget to choose LANDSCAPE layout!");
  window.print();
 } 
</script>
 
Thanks for the response guys.
ca8msm, does css work for grid layout? I tried it, but had probs... maybe there are too many things to change. It seems to be ok with flow layout.
 
CSS works for any layout...


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
I remember the main problem I had with using grid layout with the gui was that it set all kinds of styles, which I was unable to over-ride with css. Is there any way to over-ride them? I tried Important and !important, but they seemed to have no impact on the IE pages.
 
Simply remove the "style" tags for the controls you are having a problem with, and then set their style in the CSS file. You really should use Flow layout instead of Grid for all pages though.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top