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

Can we switch out the source at runtime?

1 Answer 39 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Todd
Top achievements
Rank 1
Todd asked on 06 Jun 2012, 07:56 PM
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

1 Answer, 1 is accepted

Sort by
0
Lancelot
Top achievements
Rank 1
answered on 06 Jun 2012, 08:26 PM
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
Tags
PDFViewer
Asked by
Todd
Top achievements
Rank 1
Answers by
Lancelot
Top achievements
Rank 1
Share this question
or