Well, you might get the requirement from your customer that the printed list data is very small. So try it yourself. Print your listview and you will see that you need glasses to see the contents. The size for the webpage is ok, but the printview not. So what can you do?
It’s pretty easy. I used css in order to make the font-size bigger at a print view which doesn’t affect the normal browser font-size.
Simply add the following script to your masterpage:
[sourcecode language=”csharp”]
@media print
{
BODY
{
font-size: 12pt; line-height: 24px; !important;
}
TD
{
font-size:12pt; line-height: 24px; !important;
}
.ms-vb2, .ms-vh2
{
font-size: 14pt; !important;
}
TH.ms-vb, TH.ms-vh2
{
font-size: 14pt; !important;
}
}
[/sourcecode]
Maybe you have to find out, which css classes you need to overwrite. But this css style will only be applied if someone is printing the list.
Hope this hels you.
..:: I LIKE SHAREPOINT ::..
Leave a Reply
You must be logged in to post a comment.