문제

I have an stimul report in asp.net and I need to change position of a panel dynamically in run time.
My question is how can I access the panel object in my code? I need to change the top property of this control

도움이 되었습니까?

해결책

You could set the Top property of the Panel with next code:

(report.GetComponentByName("Panel1") as StiPanel).Top = 15;

다른 팁

You should load report first, then direct cast object, then compile report before calling show()

  report.Load(Application.StartupPath & "report.mrt")  
  DirectCast(report.GetComponentByName("Image1"), StiImage).Stretch = False
  report.Compile()
  report.RegData(MyDataSet)
  report.Show()
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top