尺寸:
直接设置打印机 Height 和 Width 属性,会自动地将 PaperSize 设置为vbPRPSUser。

VB打印设置的一些摘要Printer.Height=10*567            
VB打印设置的一些摘要Printer.Width
=5*567
VB打印设置的一些摘要Printer.ScaleWidth 
= 210
VB打印设置的一些摘要Printer.ScaleHeight 
= 297
VB打印设置的一些摘要Printer.ScaleMode 
= 6      '设置打印的单位
VB打印设置的一些摘要
Printer.PaperSize = vbPRPSA4   '定义纸张大小为A4
VB打印设置的一些摘要
Printer.FontSize = 11

VB打印设置的一些摘要'如何用printer设置打印方向为横向打印  
VB打印设置的一些摘要
---------------------------------------------------------------  
VB打印设置的一些摘要 
VB打印设置的一些摘要Printer.Orientation
=VbPRORPortrait'纵向打印  
VB打印设置的一些摘要
Printer.Orientation=VbPRORLandscape'横向打印  
VB打印设置的一些摘要
 
VB打印设置的一些摘要
---------------------------------------------------------------  
VB打印设置的一些摘要 
VB打印设置的一些摘要Printer.Orientation  
=  VbPRORLandscape  
VB打印设置的一些摘要
---------------------------------------------------------------  
VB打印设置的一些摘要 
VB打印设置的一些摘要Printer.Orientation  
=  2
VB打印设置的一些摘要

VB打印设置的一些摘要'设置打印页边距 
VB打印设置的一些摘要'
你可以使用打印机的Scale属性来设置打印页边距。下面的代码设置左边距为1/2英寸。右边距为3/4英寸。乘以1440是将英尺转换成twips。
VB打印设置的一些摘要

VB打印设置的一些摘要Printer.ScaleLeft 
= -0.75 * 1440 
VB打印设置的一些摘要Printer.ScaleTop 
= -0.5 * 1440 
VB打印设置的一些摘要Printer.CurrentX 
= 0 
VB打印设置的一些摘要Printer.CurrentY 
= 0 


缇是一个与屏幕无关的单位,用来保证屏幕应用程序对屏幕元素的定位和比例在所有的显示系统上的一致性。一缇等价于 1/20 个打印机的磅。一逻辑英寸大约有 1440 缇,一逻辑厘米约 567 缇(打印时的一英寸或一厘米所对应的屏幕上的长度)。

摘自:http://www.cnblogs.com/myrandy/articles/206228.html

相关文章:

  • 2021-10-10
  • 2021-11-04
  • 2021-07-08
  • 2022-02-09
  • 2021-08-01
  • 2022-12-23
  • 2021-07-19
  • 2021-11-18
猜你喜欢
  • 2021-07-20
  • 2021-06-24
  • 2022-12-23
  • 2021-10-22
  • 2021-12-15
  • 2022-01-20
相关资源
相似解决方案