Click here to Skip to main content
15,908,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
I just tried to print that form but am not able to achieve that .
  The page which will get printed is not the one the user is viewing,so the page should not be view-able  no form should be loaded behind 


What I have tried:

<STYLE type="text/css">
@media print {
.PrintOnly {font-size: 10pt; line-height: 120%; background: white;}
}
@media screen {
.PrintOnly {display: none}
}
</STYLE>
Posted
Updated 18-Feb-16 2:31am

1 solution

You have to hide in media print everything that is NOT printform.
 
Share this answer
 

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