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

jump to page in winform

2 Answers 146 Views
PdfViewer and PdfViewerNavigator
This is a migrated thread and some comments may be shown as answers.
Moe
Top achievements
Rank 1
Iron
Iron
Veteran
Moe asked on 28 Aug 2019, 04:27 AM

Hi Admin,

 

After RadPdfViewer1.LoadDocument , I want to default focus to page no 6. May I know how to do in winform.

 

Thanks

Moe

2 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 28 Aug 2019, 05:04 AM

Hello, Moe,  

In order to navigate to a specific page, you can use the PdfViewerElement.GoToPage method passing the index of the page that you want to make current:

        public RadForm1()
        {
            InitializeComponent();

            this.radPdfViewer1.LoadDocument(filePath);
            this.radPdfViewer1.DocumentLoaded += radPdfViewer1_DocumentLoaded;
        }

        private void radPdfViewer1_DocumentLoaded(object sender, EventArgs e)
        {
            int pageIndex = 4;
            this.radPdfViewer1.PdfViewerElement.GoToPage(pageIndex);
        }

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Moe
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 28 Aug 2019, 06:14 AM

Hi Dess | Tech Support Engineer, Sr.,

 

Thank you so much. Working for me .

 

Thanks

Moe

Tags
PdfViewer and PdfViewerNavigator
Asked by
Moe
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Moe
Top achievements
Rank 1
Iron
Iron
Veteran
Share this question
or