J.
J.Nagarajan
Syncfusion Team
August 28, 2006 10:30 AM UTC
Hi Lan,
Sorry for the inconvenience.
The Syncfusion.Windows.Forms.Diagram.Model.PrintData property is no longer valid for the version 4.2.0.60.Please use the Syncfusion.Windows.Forms.Diagram.View.PageSettings property for initializing the diagram''s printer setting.Please refer the modified code snippet as shown below
private void SetModelOriginalSize()
{
this.diagram1.View.PageSettings.Margins.Left=50; //50% inch
this.diagram1.View.PageSettings.Margins.Right=50; //50% inch
this.diagram1.View.PageSettings.Margins.Top=50; //50% inch
this.diagram1.View.PageSettings.Margins.Bottom=50;//50% inch
this.diagram1.View.PageSettings.Landscape=true;
this.diagram1.Model.Height=this.diagram1.View.PageSettings.PaperSize.Height;
this.diagram1.Model.Width=this.diagram1.View.PageSettings.PaperSize.Width;
}
Please let me know if you have any questions.Thanks for using Essential Diagram.
Thanks,
Nagaraj