Transfer settings from PageSetupDialog to PrintPreviewDialog  
Author Message
Christie Myburgh





PostPosted: Common Language Runtime, Transfer settings from PageSetupDialog to PrintPreviewDialog Top

I am writing an app in Visual Studio 2005 (VB.NET). I have both printpreviewdialog and pagesetupdialog controls added to my form. My problem is that when I set page settings using the pagesetupdialog it is not reflected in the printpreview.

Please show me how I can get the printpreviewdialog to reflect settings from the pagesetupdialog.

Thanks




.NET Development22  
 
 
nobugz





PostPosted: Common Language Runtime, Transfer settings from PageSetupDialog to PrintPreviewDialog Top

Be sure to assign the PageSetupDialog.Document property before you display the page setup dialog and to use that same document in the PrintPreviewDialog...


 
 
Christie Myburgh





PostPosted: Common Language Runtime, Transfer settings from PageSetupDialog to PrintPreviewDialog Top

Be sure to assign the PageSetupDialog.Document property before you display the page setup dialog and to use that same document in the PrintPreviewDialog...

thanks...did as you suggested and it works fine...