[DevExpress Support Team: CLONED FROM T349108: MVC FileManager download]
Hi,
Do DevEx has PDFViewer control ?
Thanks,
Parvej
[DevExpress Support Team: CLONED FROM T349108: MVC FileManager download]
Hi,
Do DevEx has PDFViewer control ?
Thanks,
Parvej
Hi,
While we do not have the built-in PDF Viewer extension, you can use the approach illustrated in the E5101 - How to implement a simple PDF viewer in ASP.NET MVC web application by using the Document Server functionality code example to display a PDF document. Should you need further clarification, feel free to ask. I will be happy to help you.
UPDATE:
The E5101 - How to implement a simple PDF viewer in ASP.NET MVC web application by using the Document Server functionality code example uses the DataView extensions to display images rendered from the PDF file page. If you check the _DocumentViewPartial file, you will see the following settings:
C#settings.SettingsTableLayout.RowsPerPage = 1;
settings.SettingsTableLayout.ColumnCount = 1;
You can increase these values to display more pages. In addition, you can disable the Pager Panel and display all pages by setting the DataViewSettingsBase.AllowPaging option to false.
Thanks,
Alessandro.
You can download and run a complete solution associated with the E5101 - How to implement a simple PDF viewer in ASP.NET MVC web application by using the Document Server functionality code example by using one of the Downloads section links on the right side of the example's page. I believe that this is the most effective way to see how the approach illustrated in the example operates because you can debug the code and check which part is executed to better understand the logic. Modify different settings and rerun the example to see how its behavior is checked to understand what effect these settings have. In addition, use our online documentation to learn about different settings (see DataViewSettingsBase Members).
Thanks. I am able to load all pages in one go.
But I am not seeing pdf ribbon(print, zoom, search, next/prev page etc.). I need same ribbon as Documentviewer( https://demos.devexpress.com/MVCxReportDemos/WebSpecificFeatures/ReportDesignerReport) control has.
Please let me know if this feature is available in above suggested control?
Thanks,
Parvej
Hi,
As I mentioned in my original answer, we do not have the built-in PDF Viewer extension. The E5101 - How to implement a simple PDF viewer in ASP.NET MVC web application by using the Document Server functionality code example is only a workaround. It uses the DataView extension which has its own paging mechanism different from the one that is implemented in the HTML5 Document Viewer component. If this approach is not appropriate for you, I can only suggest that you use the IFRAME element to display the PDF document (e.g., see javascript - How to open a PDF file in an <iframe>? - Stack Overflow).
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.