Using the Display Name rather than Scale in a Map Template
Is there a way to change the DataField in the report to whatever the Display Name is? I'd rather have it display 1" = 20' rather than 1:240 in the printed label. It looks like it is getting the info from _MapScale. Is there a variable for Display Name I can use instead. I've tried a number of iterations of _DispayName and have run out of combinations. Thanks.
0
-
There isn't a control for what you're trying to do, but you can manipulate the value of your map scale using the Script tab.
public void detail_Format()
{
TextBox text1 = rpt.Sections["detail"].Controls["MapScale"] as TextBox;
string scale = text1.Text;
float origScale = float.Parse(scale);
float newScale = origScale / 12;
text1.Text = newScale.ToString();
}
Basically, the script grabs the text value that the MapScale control is calculating and divides it by 12 (i.e. converted to feet if you want to show what 1" equals).0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar