hi friends,
i would like to create print preview control. It would display all the data present in the current page even the data hide in scrolled contant..
with thanks,
Gopinath G
Urgent--! how to get a full page during the print preview
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Javeed M ShaikhRank #839 · 2.7K reputationPosted Nov 11, 2011, 5:45 AM EST
an example with gridview is like this...
StringWriter sw = new StringWriter();
HtmlTextWriter hw = new HtmlTextWriter(sw);
GridView1.RenderControl(hw);
string previewHTML = sw.ToString().Replace("\"", "'")
.Replace(System.Environment.NewLine, "");
Now you can use previewHTML variable for preview.