We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Load file

Thread ID:





124130 May 19,2016 01:32 AM UTC May 19,2016 12:45 PM UTC ASP.NET MVC 1
Tags: PdfViewer
Kevin Burns
Asked On May 19, 2016 01:32 AM UTC

Using the sameple provided for the PDF Viewer control, I can load a file by filename at runtime. I need to pass a file id or name as a paramater.  In the Jquery I have the following:

            .ready(function() {
                var ejPdfViewer = $("#pdfviewer").data("ejPdfViewer");

VieBag.Url has the link, which loads fine but any page past the first will not. The filename is only sent one time during the process. Any help would be greatly appreciated. 

Parthipan R [Syncfusion]
Replied On May 19, 2016 12:45 PM UTC

Hi Kevin, 
Thank you for using Syncfusion products. 
We can load the PDF document in PdfViewer by passing file name as parameter in load method. Please refer the below code snippet. 
       .ready(function () { 
           var fileName = "Barcode.pdf"; 
           var ejPdfViewer = $("#pdfviewer").data("ejPdfViewer"); 
We have also provided a sample to illustrate the same. Please find the sample from the following link. 
Note: Please make sure that the PDF document is available in data folder. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon