This is a migrated thread and some comments may be shown as answers.

Document offset

2 Answers 42 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Wenjie
Top achievements
Rank 1
Wenjie asked on 03 Apr 2013, 08:14 PM
Hi All,

How do setting Document offset?I am using

myPdfViewer.VerticalScrollBar.Value=100; Only Thumb bar moving,Document isnt moving.Do we have somesing like " myScrollViewer.ScrollToVerticalOffset(100);"?

Thanks.

 

 

 

 

 

 

 

 

2 Answers, 1 is accepted

Sort by
0
Kammen
Telerik team
answered on 04 Apr 2013, 08:38 AM
Hi Wenjie,

You can use Destination in order to change the current location of RadPdfViewer. The exact code should look like this:
this.viewer.GoToDestination(new Destination(page, offsetX, offsetY));

I hope this helps.

All the best,
Kammen
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Wenjie
Top achievements
Rank 1
answered on 04 Apr 2013, 05:47 PM
Thanks,

It`s very helpful.It works.But offset is int not double.Let me try.

Thanks.
Tags
PDFViewer
Asked by
Wenjie
Top achievements
Rank 1
Answers by
Kammen
Telerik team
Wenjie
Top achievements
Rank 1
Share this question
or