Hello, I need to use pdf viewer where in i should be able to view file but not download it. I tried pdf viewer telerik silver-light control but it gives me error. Can you please provide me a running sample for the same. Thank in advance.
1 Answer, 1 is accepted
0
Iva Toteva
Telerik team
answered on 08 Jun 2012, 04:19 PM
Hello Nutan,
I am afraid I don't quite understand the problem you have encountered.
When it comes to getting started with RadPdfViewer - adding assembly references, declaring namespaces, etc., you can refer to this article.
As for showing a PDF file, this can be done either by the UI (which uses a command that opens a file using the OpenFileDialog) or programmatically, as described here. Note that files can be loaded by passing a URI as long as the URI specifies a path to a PDF file, that can be resolved. In Silverlight, that requires a permissive cross-domain policy file.
With regard to the download functionality - RadPdfViewer does not allow saving the PDF document.
I hope this helps.
All the best,
Iva Toteva
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>