Can we switch out the source at runtime?

2 posts, 0 answers
  1. Todd
    Todd avatar
    1 posts
    Member since:
    Jun 2012

    Posted 06 Jun 2012 Link to this post

    Hi,

    We have a form where the user has the ability to view many .pdfs.  Using your RadPDFViewer, do we need to re-load the control to display each PDF?  Or, can we switch out the PDF source file at runtime?

    Thanks.

    Todd
  2. Lancelot
    Lancelot avatar
    251 posts
    Member since:
    Jul 2012

    Posted 06 Jun 2012 Link to this post

    Hi Todd,

    You have the ability to load a new PDF into the same instance of PDFviewer. This example will demonstrate that for you. Notice the Folder icon in the toolbar, select that and you can choose a pdf file. A pdf can be hard coded in, but you can change the current document anytime you like.

    To see the code that performs this, toggle the "Example/Code" button at the top right of the example window. Look to the left inside the pane, you can see the code in the .cs file as well.

    I hope this helps you. Good Luck,

    Lancelot
  3. DevCraft banner
Back to Top