当前位置:网站首页>Richview trvdocparameters page parameter settings
Richview trvdocparameters page parameter settings
2022-07-01 20:02:00 【lyhoo163】
RichView TRVDocParameters Page setup
One 、TRVDocParameters
This is a TRichView.DocParameters A type of . It contains document and page properties , Can be written to or from RVF (RichView Format ) and RTF( Rich text format ) Read . Components do not use these properties , But you can use AssignDocParameters Method assigns them to TRVPrint.

Two 、 attribute :
Units – Page margins 、 Paper size 、 Measurement unit of header and footer position ;
PageWidth, ageHeight – Page size ;
Orientation – Page orientation ;
LeftMargin, RightMargin, TopMargin, BottomMargin – Page margins ;
MirrorMargins – Allow left and right margins to be swapped on even pages ;
HeaderY, FooterY – Position of header and footer ;
TitlePage Show / Hide the header and footer of the first page ;
FacingPages – Show / Hide headers and footers of even pages ;
ZoomMode – Zoom mode ;
ZoomPercent – Zoom percentage .
Author, Title, Comments – author , title , Comment on - Text attribute .
Be careful :Units The default value of rvuInches( centimeter ), Another value of it :rvuPixels( A unit = 1/Style, If Style = nil, The value is 1/96 Inch )
Not right Units Direct assignment , You should use ConvertToUnits Convert all sizes to new units .
3、 ... and 、 Set up
procedure TRichView_TEMP_Frm.Button7Click(Sender: TObject);
var DP: TRVDocParameters;
begin
DP := SRichViewEdit1.RichViewEdit.DocParameters;
DP.Units := rvuMillimeters;
DP.PageWidth := 210;
DP.PageHeight := 297;
DP.LeftMargin := 30;
DP.RightMargin := 15;
DP.TopMargin := 20;
DP.BottomMargin := 20;
DP.HeaderY := 10;
DP.FooterY := 10;
end;
The above is usually A4 Parameter Settings .
边栏推荐
- 开发那些事儿:EasyCVR平台添加播放地址鉴权功能
- RichView RichEdit SRichViewEdit PageSize 页面设置与同步
- 优质笔记软件综合评测和详细盘点(一) Notion、Obsidian、RemNote、FlowUs
- qobject_ Cast usage
- 由浅入深学会白盒测试用例设计
- Install redis under Linux and configure the environment
- 2022/6/8-2022/6/12
- Develop those things: easycvr platform adds playback address authentication function
-
- A quietly rising domestic software, low-key and powerful!
猜你喜欢

Powerful, easy-to-use, professional editor / notebook software suitable for programmers / software developers, comprehensive evaluation and comprehensive recommendation

Flask 常用组件

Modsim basic use (Modbus simulator)

实例讲解将Graph Explorer搬上JupyterLab

关于元宇宙下一代入口——脑机接口的实现

A quietly rising domestic software, low-key and powerful!
![[untitled]](/img/6c/df2ebb3e39d1e47b8dd74cfdddbb06.gif)
[untitled]

Object creation

Develop those things: easycvr cluster device management page function display optimization

What if the win11 shortcut key switching input method doesn't respond? Shortcut key switching input method does not respond
随机推荐
MYSLQ十种锁,一篇文章带你全解析
振弦采集模塊測量振弦傳感器的流程步驟
fastDFS入门
[multithreading] lock strategy
C#聯合halcon應用——大華相機采集類
Hls4ml/vivado HLS error reporting solution
优质笔记软件综合评测和详细盘点(一) Notion、Obsidian、RemNote、FlowUs
运动捕捉系统原理
JS proxy
Time series analysis using kibana timelion
上大学后明白了哪些坑人的事?
Gaussdb (for MySQL):partial result cache, which accelerates the operator by caching intermediate results
A quietly rising domestic software, low-key and powerful!
关于new Set( )还有哪些是你不知道的
牛客编程题--必刷101之字符串(高效刷题,举一反三)
How to add transactions in JDBC
面试题篇一
Win11怎么关闭开机自启动软件
由浅入深学会白盒测试用例设计
Object creation