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.

Page Bounding Lines

Thread ID:

Created:

Updated:

Platform:

Replies:

16045 Jul 4,2004 01:42 PM Jul 9,2004 04:32 PM Windows Forms 2
loading
Tags: Diagram
Chuck Fields
Asked On July 4, 2004 01:42 PM

When I change my page settings (paper size and margins), I update the model.Bounds to end at an even page line. However, the lines for the PageBounds don''t update. What do I need to do to have the page bound lines adjust to the page settings?

Administrator [Syncfusion]
Replied On July 8, 2004 11:44 AM

Hi Chuck, I was able to reproduce the problem. The Diagram''s View component maintains an independent reference to the Model''s page size and this fails to get updated of the change in the PageSetting. This has been confirmed as a bug and a QA report has been logged. We will fix the problem in a future update of Essential Diagram. For the time being, you can workaround the condition by using Reflection to update your Diagaram''s view with the new page size. The following code shows the implementation, // The Model.PageSettings is set to a new paper size this.diagramComponent.Model.PageSettings.PaperSize = new PaperSize("CustomSize", 300, 200); Size newsize = new Size(300, 200); // Use Reflection to update the View''s paper size setting Type viewtype = typeof(Syncfusion.Windows.Forms.Diagram.View); System.Reflection.FieldInfo finfo = viewtype.GetField("pageSize", BindingFlags.Instance|BindingFlags.NonPublic|BindingFlags.GetField); finfo.SetValue(this.diagramComponent.View, newsize); // Force the view to refresh itself this.diagramComponent.View.Update(true); Thank you for bringing this issue to our attention. Regards, Prakash Syncfusion, Inc

Administrator [Syncfusion]
Replied On July 9, 2004 04:32 PM

Hi Chuck, This problem has been fixed! The next update of Essential Diagram will ship with the revised code. Prakash Syncfusion, Inc.

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.

;