With Me.Printer
.PaperSize = 255
.PaperHeight = 6860 '12.1cm
.PaperWidth = 10828 '19.1cm
.Orientation = ddOPortrait
End With
.PaperSize = 255
.PaperHeight = 6860 '12.1cm
.PaperWidth = 10828 '19.1cm
.Orientation = ddOPortrait
End With
解决方案 »
- API分块读取二进制文件
- EXCEL vba :请问这几句话是包含系统库文件的意思么?
- 请问以下输入有什么区别啊?~~~
- 请问如何获取QQ的版本号?
- 新手,刚学编程,刚学api不知道如何使用,为什么不对····在线急··············100分不要白不要,不够再加
- 如何取得一个AdoDb.Recordset中某一个Column的在数据库中定义长度?
- 两个窗体地互操作!!
- 关于调用DLL有问题?
- 关于TreeView焦点改变的问题?
- 用vb开发数据库程序时,用ADO控件连接Access数据库,用数据库绑定控件时总是出现“From子句语法错误!”是什么原因?
- 请教各位,在程序代码中设置crystalreport访问access 数据库,且该数据设有密码
- 征求多语言版本的通用查询窗体的文字显示解决方案(不用资源文件)!
ar.printer.DeviceName = ""
ar.printer.papersize=256
ar.printer.paperheight=1440*3
ar.pritner.paperwidth=1440*8 KnowledgeBase Article: 1221
Why does setting a custom papersize not work?
There are a couple of reasons why setting a custom paper size might not work.
1. The project is setting the paper size at an inappropriate time. In order for the paper size to be changed, it must be done in or before the ActiveReports_ReportStart sub.
2. The paper size is not supported by the printer since not all printers support every type of papersize. This can easily be tested by setting the .Printer.DeviceName = "" before changing the paper size. If, after nulling out the DeviceName, the custom paper size works, chances are the printer does not support the particular size being specified.
ActiveReport's printer object has a .PaperSizes property. This can be uses to cycle though all available paper sizes for the default printer. Below is a sample code for how to use this property. Dim I As Long
For I = 0 To ActiveReport1.Printer.PaperSizes.Count - 1
ActiveReport1.Printer.PaperSize = ActiveReport1.Printer.PaperSizes(I)
Debug.Print ActiveReport1.Printer.PaperSizes(I) & " - " & _
ActiveReport1.Printer.PaperWidth & " twips X " & _
ActiveReport1.Printer.PaperHeight & " twips "
Next I