Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Print margins

  Asked By: Vaughn    Date: Feb 17    Category: Sharepoint    Views: 1167

Does anyone know of a way to force the print margins on a list? I have
a customer that has policies in a custom list and would like for
readers to be able to print the policy directly from SharePoint.
Without manually setting the margins to less than .7, the right part
of the page is not printed, making it less than acceptable.

My first thought was to write a script and add a "printer friendly"
button to the list but that would require some coding and it seems as
there should be a way to do this without adding things to the menu,
especially with V3 around the corner.

Ideas? Suggestions?



3 Answers Found

Answer #1    Answered By: Stephon Valentine     Answered On: Feb 17

I don't have the goods for you but you can use CSS to your advantage here. This link ( http://www.w3.org/TR/REC-CSS2/media.html ) describes how to specify CSS elements that only kick in when you print  a document. You could use this to provide custom  CSS rules that would change the margins conditionally.

Answer #2    Answered By: Leif Cardenas     Answered On: Feb 17

Coincidentally, I also have a printing question - however, I do want
a printer-friendly button. We have a client who is looking for
printable reports off a custom  list. I used a dataview web part in
FrontPage to create a customized view of the list  with filter and
sort capabilities. He wants a printer-friendly view (just the data -
no top or side bars) of this list, and also of each individual list
item. However, there's a difference with the individual list items -
he already has a report template and would like the data to
basically fill in the blanks. Ideally, I'd like the printer-friendly
view to open in a new window, but it doesn't really matter.

I'm at a loss for the best way to go about this. It will probably
involve some coding, and I'm fine with that, but how to start and
what are the steps? Any help would be much appreciated!

Answer #3    Answered By: Jasper Hatfield     Answered On: Feb 17

You can go off the original suggestion in this chain to use the media
type print  feature in cascading style sheets. You can add  a Print icon
to the page  and using JavaScript grab the URL and open it into a new
page with a print style sheet that can be set to hide all of the
unwanted information on the screen.

Didn't find what you were looking for? Find more on Print margins Or get search suggestion and latest updates.