找回密码
 立即注册

QQ登录

只需一步,快速开始

兵工厂

银牌会员

2

主题

8

帖子

3326

积分

银牌会员

积分
3326
最新发帖
兵工厂
银牌会员   /  发表于:2015-12-8 17:15  /   查看:7482  /  回复:8
vb6 + fpspread7.0的环境

怎么设置fpspread的纸张大小和选择打印机

fpspreadview怎么设置纸张大小和选择打印机

8 个回复

倒序浏览
frank.zhang
社区贡献组   /  发表于:2015-12-9 15:55:00
沙发
您好,

fpspreadview打印的纸张大小和打印机是操作系统提供的首选打印机选项来决定的。
只能通过操作系统来设置。
回复 使用道具 举报
兵工厂
银牌会员   /  发表于:2015-12-9 16:54:00
板凳
回复 2楼frank.zhang的帖子

那fpspreadview呢。。。?
回复 使用道具 举报
兵工厂
银牌会员   /  发表于:2015-12-9 22:06:00
地板
回复 2楼frank.zhang的帖子

那fpspread的呢。。。?

另外,其它版本的可以设置不。。。?
回复 使用道具 举报
Alice
社区贡献组   /  发表于:2015-12-10 16:16:00
5#
回复 4楼兵工厂的帖子

很抱歉回复晚了。请问您说的fpspread指的是什么平台下的? Winform平台下可以通过System.Drawing.Printing.PaperSize来设置。
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
兵工厂
银牌会员   /  发表于:2015-12-11 00:21:00
6#
回复 5楼Alice的帖子

vb6+fpspread7.0
回复 使用道具 举报
frank.zhang
社区贡献组   /  发表于:2015-12-11 11:26:00
7#
您好,

WinForms下可以通过PrinterSettings进行设置,设置打印机是操作系统提供,所以这个是一个通用的技术问题,可以参考微软的说明
https://msdn.microsoft.com/en-us ... harp#code-snippet-2
回复 使用道具 举报
兵工厂
银牌会员   /  发表于:2015-12-13 22:31:00
8#
回复 7楼frank.zhang的帖子

恩。。。谢谢,
另,后续版本的fpspreadprview支持纸张大小的改变不。。。?
回复 使用道具 举报
frank.zhang
社区贡献组   /  发表于:2015-12-14 09:52:00
9#
您好,

Winforms下打印的支持纸张大小,参考代码
  1. ' Typically, not all of these settings are used together but are included here for illustration purposes
  2. ' Create the printer settings object
  3. Dim printset As New FarPoint.Win.Spread.PrintInfo
  4. ' Allow printing of only 20 columns and 20 rows of cells
  5. printset.ColEnd = 20
  6. printset.ColStart = 1
  7. printset.RowStart = 1
  8. printset.RowEnd = 20
  9. printset.PrintType = FarPoint.Win.Spread.PrintType.CellRange
  10. ' Allow printing of only five pages
  11. printset.PageStart = 1
  12. printset.PageEnd = 5
  13. ' Allow printing of the cell notes together at the end
  14. printset.PrintNotes = FarPoint.Win.Spread.PrintNotes.AtEnd
  15. ' Allow printing of the shapes
  16. printset.PrintShapes = True
  17. ' Allow printing of only rows and columns up to the last ones with data
  18. printset.UseMax = true
  19. ' Assign the printer settings to the sheet and print it
  20. FpSpread1.Sheets(0).PrintInfo = printset
  21. FpSpread1.PrintSheet(0)
复制代码
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部