This is a migrated thread and some comments may be shown as answers.

Set Zoom RadPrintPreviewDialog

1 Answer 129 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Flavio
Top achievements
Rank 1
Flavio asked on 20 Feb 2015, 07:28 PM
Hi!
I need to set the RadPrintPreviewDialog Zoom in 100 %, is it possibile?
Tks.
Maia.

1 Answer, 1 is accepted

Sort by
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.

 
Tags
GridView
Asked by
Flavio
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or