pdf浏览器控件 DevExpress PDF Viewer
来源:互联网 发布:淘宝到货短信提醒 编辑:程序博客网 时间:2024/06/05 06:42
Use the DevExpress PDF Viewer Control to display PDF files directly in your WinForms application, without the need to install an external PDF viewer on your end-user's machine.
This tutorial illustrates how to embed a PDF Viewer in a Windows Forms application, to open, preview, navigate and print PDF documents without the need to install third-party software on the machine.
The tutorial consists of the following sections.
- Create an Application and Add a PDF Viewer
- Create and Customize a PDF Viewer Toolbar
- Load and Preview a PDF File
Run Microsoft® Visual Studio® 2010, 2012 or 2013.
Start a new project (by pressing CTRL+SHIFT+N), and create a new Windows Forms Application.
Open the Visual Studio designer and press CTRL+ALT+X to run the Toolbox. Expand the DX.14.1: Common Controls category, and drop the PdfViewer control onto the main form of the application.
To add a toolbar to the PDF Viewer, click the control's smart tag, and in the invoked actions list, select one of the following.
Create Ribbon
This creates a ribbon illustrated in the following image.
You can fully customize the ribbon afterwards, as well as select a different look and feel for it, via the smart tag of the toolbar.
Create Bars
Instead of creating a ribbon, you can implement a bar interface. You can upgrade it to the ribbon interface at any time (e.g., when converting the entire application).
To load a document into the PDF Viewer, click the control's smart tag and select Load PDF File... in the actions list that is invoked.
The following code opens a PDF file at runtime.
The complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E4696. Depending on the target platform type (ASP.NET, WinForms, etc), you can either run this example online or download an auto-executable sample.
The following example illustrates how to load an existing PDF file into the PdfViewer control. To do this, it's necessary to drop thePdfViewer control onto the form, create a Ribbon via the PdfViewer's smart tag and call the PdfViewer.LoadDocument method.
Run the application and explore the PDF Viewer functionality.
- pdf浏览器控件 DevExpress PDF Viewer
- HTML5 pdf viewer pdf.js
- evince pdf viewer中文乱码
- PDF Viewer Component ActiveX DoS
- Ubuntu 安装 PDF XChange Viewer
- 无法加载 Chrome PDF Viewer
- 开发工具-- PDF-XChange Viewer
- Pdf控件
- PDF-XChange Viewer是一款多功能的PDF阅读器
- Document Viewer(pdf)解决中文乱码
- pdf-xchange viewer背景颜色设置
- Eclipse NightLabs PDF Viewer 插件使用
- Pdf浏览器的移植
- 浏览器显示pdf文件
- 浏览器中嵌入pdf
- 浏览器打开pdf乱码
- 浏览器实现PDF预览
- 浏览器实现PDF预览
- 用例图
- 第十九周工作周报
- Python Class System
- 第十九周工作总结
- linux安装java的步骤以及问题解决
- pdf浏览器控件 DevExpress PDF Viewer
- ACdream 1124 喵喵的遗憾
- 外观模式
- java同步包种ArrayBlockingQueue类的分析与理解
- RedHat Enterprise Linux 6.4使用Centos6 的yum源 (32位系统,不挂载光盘使用线上源)
- java中引用的原理
- 注:注释,即此行不执行 20140707
- REST当中为什么要使用HTTP PUT
- 个人记录