I have a datagrid and after a good configuration, I am trying to print this wit the help of following code :
Code:
{
PrintDocument prnt_doc = new PrintDocument();
prnt_doc.PrintPage += (p, args) =>
{
args.PageVisual = tblSolutionDesignCurrentDataGrid;
args.HasMorePages = true;
};
prnt_doc.EndPrint += (p, args) =>
{
MessageBox.Show("Printing operation finished");
};
prnt_doc.Print("Current Server Description");
}
But the problem is that I am getting only the headers and scrollbars. I used paging with the help of a datapager. when I try to move to print this, content shows blank..!
Bookmarks