RadPdfViewerNavigator: Get selected file location

2 posts, 1 answers
  1. georgi
    georgi avatar
    2 posts
    Member since:
    Nov 2013

    Posted 05 Jul 2016 Link to this post


    how can I get the user selected PDF file location from RadPdfViewerNavigator?



  2. Answer
    Dimitar avatar
    2983 posts

    Posted 05 Jul 2016 Link to this post

    Hello Georgi,

    Thank you for writing.

    Currently, this functionality is not supported by RadPdfNavigator. However you can add a custom open button and save the path and name:
    string fileName;
    string filePatch;
    private void radButton1_Click(object sender, EventArgs e)
        OpenFileDialog openFileDialog = new OpenFileDialog();
        openFileDialog.Filter = "PDF Files|*.pdf";
        openFileDialog.Title = "Select a PDF File";
        if (openFileDialog.ShowDialog() == DialogResult.OK)
            fileName = openFileDialog.FileName.Substring(openFileDialog.FileName.LastIndexOf('\\')+1);
            filePatch = openFileDialog.FileName.Substring(0,(openFileDialog.FileName.Length - fileName.Length));

    Please let me know if there is something else I can help you with. 
    Telerik by Progress
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Back to Top