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

Rad Window with PDF Viewer

1 Answer 103 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Kris
Top achievements
Rank 1
Kris asked on 26 Aug 2019, 07:46 PM

Hello,

We have an old legacy Silverlight app we've been asked to try and add functionality.  Our Silverlight is a typical line of business app that has a sql backend and we use WCF services to interface with SQL.  We've been asked to come up with a way to display pdf files.  On our internal server, we have the pdf's stored and we can return them via a stream via WCF.  We can't just redirect users to an html page because of security reason.

The overview is we have sales orders in a grid, we'll need to create a grid column that contains a ticket number.  The user will click on that if they want to see the ticket in pdf format.  The click will need to initiate a call to a service endpoint what will lookup the pdf file by ticket number and return it as a stream.  We need to then take that stream and display it in a now window.  I was thinking about a taking the stream, and opening up a Rad Window to display the PDF Viewer.  The controls we have from back then don't contain the PDF viewer.

Is this doable, are there any samples I can use to show this is viable to put in a req for the new control?  Thanks

1 Answer, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 29 Aug 2019, 06:16 AM

Hello Kris,

All recent versions of Telerik UI for Silverlight contain both RadWindow control and RadPdfViewer control, so the scenario is feasible. You can check the Showing a File help article which list the different way to load a PDF file in RadPdfViewer, but it seems that in the described scenario you could use PdfDocumentSource:

pdfViewer.DocumentSource = new PdfDocumentSource(stream);

Working samples with RadPdfViewer could be found in the XAML SDK Repo, for example PdfViewer/First Look, and in the demos application (works only in supported browsers like Internet Explorer).

Regards,
Boby
Progress Telerik

Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
PDFViewer
Asked by
Kris
Top achievements
Rank 1
Answers by
Boby
Telerik team
Share this question
or