We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GDBG PrintPreview

Thread ID:





56910 Feb 22,2007 09:57 AM UTC Feb 22,2007 06:20 PM UTC WinForms 1
Tags: GridControl
Simon Kakon
Asked On February 22, 2007 09:57 AM UTC

is it possible to add a custom control like radiobutton in the printpreview dialog to let the user choose the orientatioj (landscape ...)


Administrator [Syncfusion]
Replied On February 22, 2007 06:20 PM UTC

Hi Simon,

You would have to derive the PrintPreviewDialog form and add the checkbox to the toolbar control of the PrintPreViewDialog in the constructor method. Please refer to attached sample for more details.

public class AdvPrintPreView : PrintPreviewDialog
private void InitializeComponent()
this.ClientSize = new System.Drawing.Size(600, 600);
this.Name = "AdvPrintPreView";
public AdvPrintPreView():base()
foreach(Control c in this.Controls)
if( c is ToolBar )
foreach(Control sc in c.Controls)
if( sc is Button && sc.Text == "Close")
CheckBox checkBox = new CheckBox();
checkBox.Name = "Degree";
checkBox.Text = "Degree";
checkBox.CheckStateChanged +=new EventHandler(checkBox_CheckStateChanged);
checkBox.Size = new Size(70,30);
checkBox.Location = new Point(sc.Location.X+ sc.Size.Width + 2 , sc.Location.Y - 5 );

private void checkBox_CheckStateChanged(object sender, EventArgs e)
MessageBox.Show("CheckBox Button clicked");

Here is a sample.

Best regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon