-- 作者:yifan3429
-- 发布时间:2022/4/24 17:27:00
-- 保存为PDF 汉字是乱码
此主题相关图片如下:企业微信截图_20220424172857.png
Dim
fl
As
String =
"c:\\data\\test.pdf"
Dim
doc As
New
PrintDoc
Dim
ra
As
New
prt.RenderArea
doc.PageSetting.Width
=
150
doc.PageSetting.Height
=
80
ra.Width
=
"Parent.Width"
ra.Height
=
"Parent.Height"
ra.Style.Borders.All
= New
prt.Linedef(5,
Color.Red)
doc.Body.Children.Add(ra)
doc.SavePDF(fl)
\'保存为PDF文件
Dim
Proc
As
New
Process
\'打开PDF文件
Proc.File
=
fl
Proc.Start()
[此贴子已经被作者于2022/4/24 17:29:24编辑过]
|