Click here to Skip to main content
16,016,570 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to print my page contents according to my view (not a print screen) is there way to print like that.
(ASP.NET - C# -Version 4.0)
Please kind enough my request.
Posted

1 solution

Construct your page and use CSS media rule,

@media print
{
  /* styles for printing */
}

@media screen
{
  /* styles for viewing */
}


http://www.w3schools.com/Css/css_mediatypes.asp[^]
 
Share this answer
 
Comments
tkkf87 15-Jul-11 15:17pm    
I am not familiar with CSS.So can u plz help me out to solve this.

Can u plz give me dummy style that is with u.
and hw it is used
[no name] 15-Jul-11 15:58pm    
Have you looked at the link?
tkkf87 17-Jul-11 5:39am    
Yep...but how do i use it(How to call it)
How to crate my own style

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900