Hi,
showing a report on WindowsForm in a StiViewer Control. When first show the report I want scroll to a specific panel or control on it. It can be on the first page but on the second or third page too. If it is on the first page I want, that the panel is in the visible area.
Is it possible?
I tried this.stiViewerControl1.ScrollToComponent(this.stiViewerControl1.FindComponentByTag("XX")) but i doesn't work.
Peter
StiViewer scroll to panel
Re: StiViewer scroll to panel
Hello.
This code should work. This is our code that works:
Please, send us a sample project of your issue for analysis.
Thank you.
This code should work. This is our code that works:
Code: Select all
viewer.ScrollToComponent(viewer.FindComponentByTag("test"));
Thank you.
Re: StiViewer scroll to panel
Hello.
Thanks for the answer.
Perhaps I set the "Tag" wrong. Where do you set the Tag "test"? In the Designer Code?
this.Panel2.Tag = "Test"
Or...?
Peter
Thanks for the answer.
Perhaps I set the "Tag" wrong. Where do you set the Tag "test"? In the Designer Code?
this.Panel2.Tag = "Test"
Or...?
Peter
Re: StiViewer scroll to panel
Hello.
You could use next code before compilation:
After compilation you should hande the GetTag event.
Where do you set the Tag value?
Thank you.
You could use next code before compilation:
Code: Select all
var comp = report.GetComponentByName("Text2");
comp.Tag.Value = "test";
Where do you set the Tag value?
Thank you.