Click here to Skip to main content
15,890,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi experts,

I want to view my panel control in print preview view.
that panel contains a grid view including some in template field
i don want that images in pdf
is there any way to view the panel as print preview

thanks in advance
(Keerthi Kumar)
Posted

1 solution

use javascript method

function FunctionName (s,e)
{
////Make visible false those controls you don't want to see in print

Window.Print();

////Make Visible true those control again



}




For Example :-

C#
function printdata() {
           imgPrint.SetVisible(false);
           imgBtnNew.SetVisible(false);
           window.print();
           imgPrint.SetVisible(true);
           imgBtnNew.SetVisible(true);
       }
 
Share this answer
 
v3
Comments
Keerthi Kumar(Andar) 24-May-14 1:01am    
hi lokesh,

thanks for ur answer but i wanted do to this in code behind is der any way??

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