Hello Team,
Here we have a Telerik gridview and around 25 no. of columns is there. The problem is when we view Print Preview the output appears but not exactly what we expected. The 1st page take few columns and the rest goes to 2nd page and rest one goes to 3rd page but if we have 4 rows in a grid along with 25 columns, then the result must appear on the same page after the first best fit columns on the same page.
Please see below the logic of Print Preview-
I have tried the given link in the forum and customise the logic but no luck to achieved what we expected as a output-
Here's link- http://www.telerik.com/community/code-library/wpf/gridview/radgridview-print-and-print-preview.aspx
Kindly help me out to over come this issue.
Regards,
Naren
Here we have a Telerik gridview and around 25 no. of columns is there. The problem is when we view Print Preview the output appears but not exactly what we expected. The 1st page take few columns and the rest goes to 2nd page and rest one goes to 3rd page but if we have 4 rows in a grid along with 25 columns, then the result must appear on the same page after the first best fit columns on the same page.
Please see below the logic of Print Preview-
public
static
void
PrintPreview(GridViewDataControl source,
bool
modal)
{
var window =
new
Window { Title =
"Print Preview"
};
var dialog =
new
PrintDialog();
var document = source.ToPrintFriendly().ToFixedDocument(dialog);
var documentViewer =
new
DocumentViewer
{
Document = document
};
window.Content = documentViewer;
if
(modal)
window.ShowDialog();
else
window.Show();
}
I have tried the given link in the forum and customise the logic but no luck to achieved what we expected as a output-
Here's link- http://www.telerik.com/community/code-library/wpf/gridview/radgridview-print-and-print-preview.aspx
Kindly help me out to over come this issue.
Regards,
Naren