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

PrintPreview dialog

2 Answers 118 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 2
Stephen asked on 06 Jul 2012, 01:47 PM
Hello,

Is there any way to control the size of the PrintPreview dialog when it comes up?
I find that its default size is quite small and I always have to manually make it bigger to actually see what is displaying.


Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Todorov
Telerik team
answered on 10 Jul 2012, 11:42 AM
Hi John,

Thank you for your question.

To achieve this, you need to create and associate to your scheduler a new RadPrintDocument instance either programatically or by dragging it from the toolbox. After that you can instantiate a RadPrintPreviewDialog and modify it as needed. The following code snippet demonstrates this:
public Form1()
{
    InitializeComponent();
    this.radPrintDocument1.AssociatedObject = this.radScheduler1;
}
 
private void radButton1_Click(object sender, EventArgs e)
{
    RadPrintPreviewDialog dialog = new RadPrintPreviewDialog(this.radPrintDocument1);
    dialog.Size = new Size(800, 800);
    dialog.ShowDialog();
}

Additional information about printing dialogs can be found in our online documentation.

I hope you find this useful. Feel free to ask if you have any additional questions.

Regards,
Ivan Todorov
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Stephen
Top achievements
Rank 2
answered on 10 Jul 2012, 01:00 PM
That's great, Thanks.
Tags
Scheduler and Reminder
Asked by
Stephen
Top achievements
Rank 2
Answers by
Ivan Todorov
Telerik team
Stephen
Top achievements
Rank 2
Share this question
or