<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Author" content="Kambiz R. Khojasteh" />
<style type="text/css">
<!--
body, td, th {
font-family: Verdana, Arial, sans-serif;
font-size: 10pt;
}
a {
text-decoration: none;
color: #800000;
}
a:hover {
border-bottom: 1px solid #ff0000;
}
.header {
color: #ffffff;
background-color: #660000;
font-size: 24pt;
font-weight: bold;
padding: 0.5em 0;
text-align: center;
}
.tags {
margin: 0;
padding: 0;
height: 2em;
}
.tags li {
color: #ffffff;
background-color: #330000;
margin: 2px 4px 2px 0;
float: left;
font-weight: bold;
display: block;
padding: 0.25em 1em;
white-space: nowrap;
text-align: center;
}
.note {
color: #ff0000;
}
h3, h4 {
clear: both;
margin: 1.5em 0 0;
padding-bottom: 0.25em;
border-bottom: 1px solid #eeeeee;
}
.indicator {
float: right;
font-size: 9pt;
font-weight: normal !important;
color: #cccccc;
}
li {
margin-bottom: 1em;
}
sup {
font-size: 0.8em;
}
ul.condensed li {
margin-bottom: 0;
}
#menu {
clear: both;
}
#menu li {
margin-bottom: 0;
}
ul.multicolumn, ol.multicolumn {
width: 100%;
}
ul.multicolumn li, ol.multicolumn li {
float: left;
width: 20em;
}
-->
</style>
<title>ReadMe</title>
</head>
<body>
<div class="header">Print Preview Components 5.90</div>
<p>Copyright © <a href="mailto:kambiz@delphiarea.com">Kambiz R. Khojasteh</a>. All rights reserved.<br />
Get future component updates from <a href="http://www.delphiarea.com">http://www.delphiarea.com</a>.</p>
<ul class="tags">
<li>Delphi 3</li>
<li>Delphi 4</li>
<li>Delphi 5</li>
<li>Delphi 6</li>
<li>Delphi 7</li>
<li>Delphi 2005</li>
<li>Delphi 2006</li>
<li>Delphi 2007</li>
<li>Delphi 2009</li>
<li>Delphi 2010</li>
<li>Delphi XE</li>
<li>Delphi XE2</li>
</ul>
<h3 id="content">CONTENT</h3>
<ul id="menu">
<li><a href="#overview">Overview</a></li>
<li><a href="#installation">Installation</a></li>
<li><a href="#printpreview">TPrintPreview Component</a>
<ul>
<li><a href="#printpreview_properties">Key Properties</a></li>
<li><a href="#printpreview_methods">Key Methods</a></li>
<li><a href="#printpreview_events">Key Events</a></li>
<li><a href="#printpreview_keyboard_shortcuts">Keyboard Shortcuts</a></li>
<li><a href="#printpreview_mouse_wheel">Mouse Wheel Functions</a></li>
<li><a href="#printpreview_pdf">PDF Output</a></li>
<li><a href="#printpreview_image_transparency">Image Transparency</a></li>
<li><a href="#printpreview_third_party_rich_edit_controls">Third Party Rich Edit Controls</a></li>
<li><a href="#printpreview_known_bugs">Known Issues</a></li>
</ul>
</li>
<li><a href="#thumbnailpreview">TThumbnailPreview Component</a>
<ul>
<li><a href="#thumbnailpreview_properties">Key Properties</a></li>
<li><a href="#thumbnailpreview_methods">Key Methods</a></li>
<li><a href="#thumbnailpreview_events">Key Events</a></li>
</ul>
</li>
<li><a href="#paperpreview">TPaperPreview Component</a>
<ul>
<li><a href="#paperpreview_properties">Key Properties</a></li>
<li><a href="#paperpreview_methods">Key Methods</a></li>
<li><a href="#paperpreview_events">Key Events</a></li>
</ul>
</li>
<li><a href="#other_classes">Other Classes</a></li>
<li><a href="#global_procedures">Global Procedures</a></li>
<li><a href="#history">History</a></li>
<li><a href="#acknowledgment">Acknowledgment</a></li>
<li><a href="#license">License</a></li>
<li><a href="#disclaimer">Disclaimer</a></li>
</ul>
<h3 id="overview">OVERVIEW</h3>
<p>The print preview components consist of three visual components for low level print and print preview:</p>
<ul>
<li><strong><a href="#printpreview">TPrintPreview</a></strong><br />This component acts as a printer replacement to generate pages, and then display and manage them.</li>
<li><strong><a href="#printpreview">TThumbnailPreview</a></strong><br />This component shows pages of TPrintPreview component as thumbnails.</li>
<li><strong><a href="#paperpreview">TPaperPreview</a></strong><br />This component represents a sheet of paper that can be filled by a custom event handler.</li>
</ul>
<p>All the print preview components are fully customizable, and offer extensive set of events.</p>
<h3 id="installation">INSTALLATION</h3>
<p>Add the following component's unit into a new or existing package:</p>
<ul>
<li>Preview.pas</li>
</ul>
<p>The following packages must be added to the <strong>requires</strong> clause of your package:</p>
<ul>
<li>VCL</li>
<li>RTL <small>(for Delphi 6 or higher only)</small></li>
<li>DesignIDE <small>(for design-time package of Delphi 6 or higher only)</small></li>
</ul>
<p>Consider that <code>Preview.pas</code> and <code>DELPHIAREA.INC</code> must be in the search path of Delphi.</p>
<h3 id="printpreview">PRINT PREVIEW COMPONENT</h3>
<p>TPrintPreview is a descendent of TScrollBox and has properties of both TScrollBox component and TPrinter class.</p>
<p>The key features of the TPrintPreview component are:</p>
<ul class="condensed">
<li>Supports almost unlimited amount of pages</li>
<li>Automatically adjusts printer's paper size and orientation at the print time</li>
<li>Automatically adjusts mapping modes</li>
<li>Preview pages can be scaled with an arbitrarily zoom factor</li>
<li>Shows created pages while new pages are being processed</li>
<li>Displayed pages can be scrolled by mouse dragging</li>
<li>Pages can be saved/restored to/from disk</li>
<li>Each page is accessible as a Windows Metafile image</li>
<li>Has some methods for rendering rich text format</li>
<li>Can manage custom forms (custom paper sizes)</li>
<li>Allows background and annotation for both print and preview pages</li>
<li>Both preview and print pages can be converted to grayscale, and you can adjust brightness and contrast of them</li>
<li>Allows inserting, replacing, editing, deleting, and reordering of pages freely at any time
<li>By using <a href="http://delphistep.cis.si">dsPDF library</a> or <a href="http://www.synopse.info">Synopse PDF library</a>, can save pages as PDF</li>
<li>Can save pages as Multi-Page TIFF.</li>
<li>Has a complete set of events</li>
</ul>
<blockquote>
<h4 id="printpreview_properties"><span class="indicator">PrintPreview Component</span>KEY PROPERTIES</h4>
<ul>
<li><strong>Annotation: Boolean</strong><br />Indicates whether the annotation drawing is active.</li>
<li><strong>Background: Boolean</strong><br />Indicates whether the background drawing is active.</li>
<li><strong>CacheSize: Integer</strong><br />Determines the maximum number of pages that the control can keep in memory.</li>
<li><strong>CanScrollHorz</strong> <sup>(Read-only)</sup><br />Indicates whether the preview page can scroll horizontally.</li>
<li><strong>CanScrollVert</strong> <sup>(Read-only)</sup><br />Indicates whether the preview page can scroll vertically.</li>
<li><strong>Canvas: TCanvas</strong> <sup>(Read-only)</sup><br />Provides access to a drawing surface that represents the page. Each page has its own canvas and any access to this property must be inside <em>BeginDoc</em>/<em>EndDoc</em>, <em>BeginEdit</em>/<em>EndEdit</em>, <em>BeginReplace</em>/<em>EndReplace</em>, <em>BeginInsert</em>/<em>EndInsert</em>, and <em>BeginAppend</em>/<em>EndAppend</em> blocks.</li>
<li><strong>CanvasPageNo: Integer</strong> <sup>(Read-only)</sup><br />Indicates the page number that <em>Canvas</em> belongs to it. When control's canvas is not a page canvas, value of CanvasPageNo is zero.</li>
<li><strong>CurrentPage: Integer</strong><br />Determines the current showing page number.</li>
<li><strong>DirectPrint:
没有合适的资源?快使用搜索试试~ 我知道了~
print preview components 控件
共23个文件
res:4个
pas:4个
dfm:3个
需积分: 9 9 下载量 81 浏览量
2016-03-21
21:43:47
上传
评论
收藏 550KB ZIP 举报
温馨提示
非常强大的打印预览控件!完全免费代码! The print preview components consist of three visual components for low level print and print preview: TPrintPreview This component acts as a printer replacement to generate pages, and then display and manage them. TThumbnailPreview This component shows pages of TPrintPreview component as thumbnails. TPaperPreview This component represents a sheet of paper that can be filled by a custom event handler. All the print preview components are fully customizable, and offer extensive set of events.
资源推荐
资源详情
资源评论
收起资源包目录
preview.zip (23个子文件)
Demo
Viewer
Main.dfm 2KB
Viewer.res 876B
Main.pas 6KB
Viewer.dpr 214B
Sample.ppv 741KB
General Demo
Main.dfm 749KB
General.res 876B
dspdf.dll 635KB
Main.pas 27KB
TEAMWORK.rtf 81KB
General.dpr 213B
General.dproj 19KB
RichText Demo
Main.dfm 74KB
RichPrint.res 876B
Main.pas 7KB
Sample.rtf 2KB
RichPrint.dpr 215B
RichPrint.dproj 4KB
ReadMe.html 86KB
Preview.pas 211KB
DELPHIAREA.INC 4KB
Preview.res 856B
Preview.dcr 5KB
共 23 条
- 1
资源评论
网际精灵
- 粉丝: 0
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 弹窗保存成功! - 2秒后自动关闭
- WSL和Ubuntu_22.04和ROS2和TB3安装.md
- TA-Lib-0.4.17-cp27-cp27m-win-amd64.whl.rar
- (6)六轴机械臂的运动学正、逆解.html
- 数据中心建设标准国标与Uptime标准对标解释
- 基于ARIMA-LSTM-transformer等模型进行流感时间序列预测Python源码(高分项目)
- canvas实现的彩色纸屑组成文字3d动画特效源码.zip
- 基于景观生态风险评价的流域景观格局优化,教学视频和资料,喜欢的就下载吧,保证受用
- java设计模式-建造者模式(Builder Pattern)
- C语言刷题-lesson5_1731564764305.pdf
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功