Change scale


#1

This seems as a very trivial task… but I can’t seem to get it to work…

I have a combo box with autoPostback, where I want to change the View.DocScale, but I cant get it to make any effect… also tried
View.RaisePostBackEvent( “zoom=” + Convert.ToString(Proc / 100.0F) );


#2

This worked fine for me:

void DropDownList1_SelectedIndexChanged(Object sender, EventArgs evt) {

String newval = DropDownList1.SelectedItem.Value;

float newscale = Single.Parse(newval);

MyView.DocScale = newscale;

}

and:

0.5

1

1.5


#3

ah… I was trying to set it on PageLoad istead of using the Postback function… typical 03:00 in the morning thingy…