Profile Picture

Broken compatibility with previous versions for printing, charting and axis.

Posted By Ronnie Cohen 10 Years Ago

Broken compatibility with previous versions for printing, charting and...

Author
Message
Ronnie Cohen
Posted 10 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: Forum Members
Last Active: 10 Years Ago
Posts: 7, Visits: 1
Matrica have just bought Nevron.Net vision for VS2012 (for .Net Framework 4.5) and were using a previous version of the Nevron.Net vision before the upgrade. The code snippets worked with the previous version but does not work with the current version.

We get compile error for PrintOnSinglePage, LabelLeadLength, BeginValue and EndValue properties.

Printing: PrintOnSinglePage is not a memeber
Dim PrintManager As New Extensions.NPrintManager(DrawingView.Document)
PrintManager.PrintOnSinglePage = True
Call PrintManager.Print()

Chart: LabelLeadLength is not a memeber
Dim pie As NPieSeries = CType(NChartControl1.Charts(0).Series(0), NPieSeries)
pie.LabelLeadLength = New NLength(LeadZoneLengthScroll.Value, NGraphicsUnit.Point)
NChartControl1.Refresh()

Axis: BeginValue and EndValue are now read-only. How can BeginValue and EndValue be set?
Dim Axis As NAxis = Chart.Axis(StandardAxis.PrimaryY)
Axis.ScrollBar.BeginValue = value
Axis.ScrollBar.EndValue = value


This code worked perfectly well in a previous version of Nevron.Net vision. Can you please tell us how to do the same things in Nevron.Net vision for VS2012.

Nevron Support
Posted 10 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Yesterday @ 1:54 AM
Posts: 3,054, Visits: 4,009
Hi Prem,

The PrintOnSinglePage has been replaced by the LayoutMode and the PageColumns and PageRows properties, that mimic the print arrangement of all Office products.
To replace the PrintOnSinglePage=true behavior use this code:
this.Layout = PagedLayout.FitToPages;
this.PageColumns = 1;
this.PageRows = 1;

The property that is meant to replace LabelLeadLength is called LeadOffArrowLength. Please note, that the overall effect might not be the same, because the label layout algorithm has been changed. Currently the LeadOffArrowLength controls the length of the line segments that come straight out of the pie slices. The length of the horizontal parts of the label connectors is specified through the ConnectorLength property.

Regarding the axis scrollbar - you need to set the range of the axis view:
axis.PagingView.SetRange(New NRange1DD(0, 10), True);

Hope this helps - let us know if you meet any problems or have any questions.

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic