Hoppa till huvudinnehållet

Using the Display Name rather than Scale in a Map Template

Kommentarer

1 kommentar

  • John Nerge
    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.