DefaultPaperSize

Paper10x14 254 x 355.6 mm

Paper11x17 279.4 x 431.8 mm

PaperA3 A3 ?,297 x 420 mm

PaperA4 A4 ?,210 x 297 mm

PaperA4Small A4 小?,210 x 297 mm

PaperA5 A5 ?,148 x 210 mm

PaperB4 B4 ?,250 x 354 mm

PaperB5 B5 ?,182 x 257 mm

PaperCsheet C Type,431.8 x 558.8 mm

PaperDsheet D Type,558.8 x 863.6 mm

PaperEnvelope10 #10 Envelope,104.8 x 241.3 mm

PaperEnvelope11 #11 Envelope,114.3 x 263.5 mm

PaperEnvelope12 #12 Envelope,120.7 x 279.4 mm

PaperEnvelope14 #14 Envelope,127 x 292.1 mm

PaperEnvelope9 #9 Envelope,98.4 x 225.4 mm

PaperEnvelopeB4 B4 Envelope,250 x 353 mm

PaperEnvelopeB5 B5 Envelope,176 x 250 mm

PaperEnvelopeB6 B6 Envelope,176 x 125 mm

PaperEnvelopeC3 C3 Envelope,324 x 458 mm

PaperEnvelopeC4 C4 Envelope, 114 x 229 mm

PaperEnvelopeC5 C5 Envelope,162 x 229 mm

PaperEnvelopeC6 C6 Envelope,114 x 162 mm

PaperEnvelopeC65 C65 Envelope,114 x 229 mm

PaperEnvelopeDL DL Envelope,110 x 220 mm

PaperEnvelopeItaly Italy Envelope,110 x 230 mm

PaperEnvelopeMonarch Monarch Envelope,98.4 x 190.5 mm

PaperEnvelopePersonal 6 3/4 Envelope,92.1 x 165.1 mm

PaperEsheet E Type,863.6 x 1117.6 mm

PaperExecutive Executive,184.1 x 266.7 mm

PaperFanfoldLegalGerman German Legal Fanfold,215.9 x 330.2 mm

PaperFanfoldStdGerman German Std Fanfold,215.9 x 304.8 mm

PaperFanfoldUS US Std Fanfold,377.8 x 279.4 mm

PaperFolio Folio,215.9 x 330.2 mm

PaperLedger Ledger,431.8 x 279.4 mm

PaperLegal Legal,215.9 x 355.6 mm

PaperLetter Letter,215.9 x 279.4 mm

PaperLetterSmall Letter Small,215.9 x 279.4 mm

PaperNote Note,215.9 x 279.4 mm

PaperQuarto Quarto,215 x 275 mm

PaperStatement Statement,139.7 x 215.9 mm

PaperTabloid Tabloid,279.4 x 431.8 mm

Dim doctoprint As New System.Drawing.Printing.PrintDocument()
doctoprint.PrinterSettings.PrinterName = "YourPrinterName" '(ex. "Epson SQ-1170 ESC/P 2")
For i = 0 To doctoprint.PrinterSettings.PaperSizes.Count - 1
Dim rawKind As Integer
If doctoprint.PrinterSettings.PaperSizes(i).PaperName = "MyCustomFormatName" Then
rawKind = CInt(doctoprint.PrinterSettings.PaperSizes(i).GetType().GetField("kind", Reflection.BindingFlags.Instance Or Reflection.BindingFlags.NonPublic).GetValue(doctoprint.PrinterSettings.PaperSizes(i)))
oRpt.PrintOptions.PaperSize = rawKind
Exit For
End If
Next

Crystal Reports 支持的纸张种类的更多相关文章

  1. 创建条形码图像易用的控制字符编码功能的条形码控件Native Crystal Reports Barcode Generator

    Native Crystal Reports Barcode Generator是一个对象,它可以很容易地被嵌入到一个Crystal Report中用于创建条形码图像.一旦此条形码被安装在一个报表中, ...

  2. VS2015环境下Crystal Reports(水晶报表)的安装使用

    1.首先下载Crystal Reports13对于Visual Studio 2015支持的2个文件. CRforVS_13_0_17 CRforVS_redist_install_64bit_13_ ...

  3. Crystal Reports拉报表报错:Error detected by database DLL

    问题描述: 最近在使用Crystal Reports打印报表时,提示错误信息:"Error detected by database DLL." 如下图: 经查找,是因为数据库名称 ...

  4. 水晶报表13.x(Crystal Reports for VS2010)的安装部署经验

    这两天搞安装包真心坎坷,一个问题接一个问题,先是为了实现自定义动作现啃vbs,后面又是安装过程老是报错: 各种搜索.各种尝试,总算搞掂,积累了些经验,分享一下. 首先CR for VS2010的所有东 ...

  5. Crystal Reports 2008(水晶报表) 第一个报表

    学习Craystal Reports 2008的时候,光看说明文档,很多东西看了就忘了. 我在看文档的时候,是跟着文档上面来做的. 这样边看边做,效果还不错哈 下面就是我的第一个demo 先看看效果: ...

  6. Crystal Reports 2008(水晶报表) JDBC连接mysql数据库

    在本blog中,主要介绍的是Crystal Reports 2008使用JDBC连接mysql数据库. 在连接之间,首先要确认你电脑上面都安装了mysql数据库. 其次,就是jdbc连接数据时候所使用 ...

  7. Crystal Reports 2008(水晶报表) 启动时检查更新

    在安装好了Crystal Reports后,每次打开的是都会出现以下提示: 服务器正在运行中 由于另一个程序正在运行中,此操作无法完成.请选择“切换到”来激活正在运行中的程序,并更正问题. 碰到这样的 ...

  8. Crystal Reports 2008(水晶报表) 安装

    这篇blog主要是介绍Crystal Reports2008(水晶报表)的安装. 首先我们应该知道Crystal Reports 有什么作用? 从这里Crystal Reports 你可以了解到它的一 ...

  9. Crystal Reports课程01-连接SQL Sever数据库

    选择[OLE DB(ADO)] 选择[microsoft DB provider for SQL Sever],点击[下一步] 填写连接的服务器,数据库,用户名,密码等信息,然后点击[下一步] 选择[ ...

随机推荐

  1. java 继承多态的一些理解不和不理解

    1.向上转型的一个误区 一直以为Child 继承Parent以后, Parent p = new Child();  p可以调用Child类中拓展Parent的方法,原来必须在强制转换成Child类才 ...

  2. PHP访问数据库

    1.原生mysql方式 <?php //最原生态的访问方式,不过SQL注入是个麻烦事 $con = mysql_connect("localhost","root& ...

  3. 《Linux内核设计与实现》读书笔记(二十)- 补丁, 开发和社区

    linux最吸引我的地方之一就是它拥有一个高手云集的社区, 还有就是如果能=为linux内核中贡献代码, 一定是一件令人自豪的事情. 下面主要总结一些和贡献代码相关的主要内容. 加入社区 编码风格 提 ...

  4. [游戏模版6] Win32 graph

    >_<:there in the MyPaint(...) function respectively use Ellipse(...) draw ellipse, use RoundRe ...

  5. phpstudy 安装选择,iis+php组合,如何设置伪静态

    如题. 找了半天,终于找到解决方案了. 需要在服务器上安装 Url rewrite 组件. 服务器是64位则安装:rewrite_2.0_rtw_x64.exe 然后添加 web.config配置文件 ...

  6. Nodejs学习笔记(八)--- Node.js + Express 实现上传文件功能(felixge/node-formidable)

    目录 前言 formidable简介 创建项目并安装formidable 实现上传功能 运行结果 部分疑惑解析 写在之后 前言 前面讲了一个构建网站的示例,这次在此基础上再说说web的常规功能---- ...

  7. 《Effective STL中文版》前言

    <Effective STL中文版>前言     我第一次写关于STL(Standard Template Library,标准模板库)的介绍是在1995 年,当时我在More Effec ...

  8. html-css样式表

    一.CSS:Cascading Style Sheet—层叠样式表,其作用是美化HTML网页. 样式表分类:内联样式表.内嵌样式表.外部样式表 1.内联样式表 和HTML联合显示,控制精确,但是可重用 ...

  9. JSTL自定义标签

    这节我们总结一下JSTL自定义标签相关内容. 1. 自定义标签简介 自定义标签主要用于移除JSP页面中的Java代码.Jsp页面主要是用来显示给前台的,如果里面有过多的java代码的话,会显得很乱,但 ...

  10. bzoj 3517: 翻硬币

    3517: 翻硬币 Time Limit: 1 Sec  Memory Limit: 128 MB Description 有一个n行n列的棋盘,每个格子上都有一个硬币,且n为偶数.每个硬币要么是正面 ...