Hi!
I need to set the RadPrintPreviewDialog Zoom in 100 %, is it possibile?
Tks.
Maia.
1 Answer, 1 is accepted
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 25 Feb 2015, 11:30 AM
Hello Flavio,
Thank you for writing.
In order to achieve your goal, you can use the SetZoom method of the RadPrintPreviewDialog. Here is a sample code snippet demonstrating how to accomplish it with a custom RadGridView:
public class Grid : RadGridView
{
public override string ThemeClassName
{
get
{
return typeof(RadGridView).FullName;
}
}
public override void PrintPreview(RadPrintDocument document)
{
if (document != null)
{
document.AssociatedObject = this;
RadPrintPreviewDialog dialog = new RadPrintPreviewDialog(document);
dialog.SetZoom(1);
dialog.ThemeName = this.ThemeName;
dialog.ShowDialog();
}
}
}
I hope this information helps. Should you have further questions, I would be glad to help.
Regards,
Dess
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.