Carol,
Thanks for your response.
I am afraid I need your data to recreate your problem. I use the data attached in our package and it works fine in Windows 2003 Chinese Operating system, while I do not test the WinXp Chinese OS because it is not available now.
Could you have a try to see if this problem still exists on your WinXp environment with the following data?
private void DrawCurvedLabels_Load(object sender, EventArgs e)
{
winformsMap1.MapUnit = GeographyUnit.DecimalDegree;
winformsMap1.BackgroundOverlay.BackgroundBrush =new GeoSolidBrush(GeoColor.FromArgb(255, 233, 232, 214));
ShapeFileFeatureLayer austinStreetsShapeLayer = new ShapeFileFeatureLayer(@"..\..\SampleData\Data\austinstreets.shp");
austinStreetsShapeLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
austinStreetsShapeLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(LineStyles.LocalRoad1);
ShapeFileFeatureLayer austinStreetsLabelLayer = new ShapeFileFeatureLayer(@"..\..\SampleData\Data\austinstreets.shp");
austinStreetsLabelLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
//TextStyle textStyle = TextStyles.LocalRoad1("FENAME");
//textStyle.TextLineSegmentRatio = double.MaxValue;
//textStyle.SplineType = SplineType.StandardSplining;
//austinStreetsLabelLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(textStyle);
TextStyle textStyle2 = new TextStyle();// set label's RotationAngle is 0
textStyle2.TextColumnName = "FENAME";
textStyle2.Font = new GeoFont("細明體", 12);
textStyle2.TextSolidBrush = new GeoSolidBrush(GeoColor.SimpleColors.Black);
textStyle2.HaloPen = new GeoPen(GeoColor.StandardColors.White, 3);
textStyle2.SplineType = SplineType.ForceSplining;
textStyle2.FittingLineInScreen = true;
textStyle2.TextLineSegmentRatio = Double.MaxValue;
textStyle2.OverlappingRule = LabelOverlappingRule.NoOverlapping;
textStyle2.DuplicateRule = LabelDuplicateRule.UnlimitedDuplicateLabels;
austinStreetsLabelLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(textStyle2);
LayerOverlay staticOverlay = new LayerOverlay();
staticOverlay.Layers.Add("AustinStreetsShapeLayer", austinStreetsShapeLayer);
staticOverlay.Layers.Add("AustinStreetsLabelLayer", austinStreetsLabelLayer);
winformsMap1.Overlays.Add(staticOverlay);
winformsMap1.CurrentExtent = new RectangleShape(-97.6881803712033, 30.3177912428115, -97.6723016938352, 30.3064615919325);
//winformsMap1.ZoomIntoCenter(10,new PointShape(121.50926 ,24.985475 ));
winformsMap1.Refresh();
}
Any more questions just feel free to let me know.
Thanks.
Yale