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.
Unfortunately, activation email could not send to your email. Please try again.

Update Issues

Thread ID:

Created:

Updated:

Platform:

Replies:

48337 Aug 24,2006 02:46 PM Aug 28,2006 06:30 AM Windows Forms 1
loading
Tags: Diagram
Administrator [Syncfusion]
Asked On August 24, 2006 02:46 PM

Hello,
I got this Compile error when update
Ver3.3.0.0 to Ver4.2.0.60

Error 11 ''Syncfusion.Windows.Forms.Diagram.Model'' does not contain a definition for ''PrintData'' C:\PMA\STN.PMA.UL\frmDecisionTree.cs 2045 18 STN.PMA.UL


private void SetModelOrinialSize()
{

diagram.Model.PrintData.PageSettings.Margins.Left=50; //50% inch
diagram.Model.PrintData.PageSettings.Margins.Right=50; //50% inch
diagram.Model.PrintData.PageSettings.Margins.Bottom=50; //50% inch
diagram.Model.PrintData.PageSettings.Margins.Top=50; //50% inch
diagram.Model.PrintData.PageSettings.Landscape=true;
this.diagram.Model.Width=this.diagram.Model.PrintData.PageSettings.PaperSize.Height;
this.diagram.Model.Height=this.diagram.Model.PrintData.PageSettings.PaperSize.Width;
}

J.Nagarajan [Syncfusion]
Replied On August 28, 2006 06:30 AM

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

CONFIRMATION

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.

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.

;