Removing frames for Printing

A place for users and developers of the Xataface to discuss and receive support.

Removing frames for Printing

Postby wisni1rr » Tue Mar 13, 2012 10:03 am

I was wondering of a good way to approach printing the "view" tab of a record? I would like to eliminate the frames so the the Current Record: label is in the top-left corner.
wisni1rr
 
Posts: 107
Joined: Mon Feb 13, 2012 9:03 pm

Re: Removing frames for Printing

Postby shannah » Tue Mar 13, 2012 11:52 am

You can either create a custom print stylesheet, or you can create a special print template. The print stylesheet is probably the easier approach. You can specify that a style rule is only active for printing by placing a
Code: Select all
@media print { … }


in a stylesheet to override the default styles. You could e.g. hide certain sections of the page using the display: none rule.

Here is an example from the g2 module stylesheet that is set up to remove most of the frame when printing:
Code: Select all
@media print {
   #left_column,
   #top-section,
   .fineprint,
   .search_form,
   .xf-button-bar {
      display:none;
   }
}
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 17 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved