PrintPreview dialog

3 posts, 1 answers
  1. Stephen
    Stephen avatar
    86 posts
    Member since:
    Jan 2011

    Posted 06 Jul 2012 Link to this post

    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. Answer
    Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 10 Jul 2012 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Stephen
    Stephen avatar
    86 posts
    Member since:
    Jan 2011

    Posted 10 Jul 2012 Link to this post

    That's great, Thanks.
Back to Top