打印小问题,由VB6转VBNET

stickvc 2003-10-16 08:35:50
高手,
我的设想是:
在一PICTURE控件中有背景表格图(A4纸大小)与N个LABEL控件,
各LABEL位置在PICTURE中设好.

现想用最简单方法将表格图与各LABEL的内容一并打印到A4纸(打印纸就行了)上,
如何实现??????????

在VB6中,用几个Printer就行了,但在VBNET中??????????
...全文
30 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
genius00 2003-10-17
  • 打赏
  • 举报
回复
没办法,看MSDN吧!!!!!!!!!
Montaque 2003-10-16
  • 打赏
  • 举报
回复
Printing Changes in Visual Basic .NET
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/
vbconprintingchangesinvisualbasic70.asp

Printer Object Changes in Visual Basic .NET
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/
vxconprinterobjectchangesinvisualbasicnet.asp
stickvc 2003-10-16
  • 打赏
  • 举报
回复
高手,可否详细些啊!!!!

下面是我在VB6中的PRINT
If UserCode(21) = "打表" Then .PaintPicture fPrintSZD.picJCBG.Picture, 0, 0
For i = 0 To 29
.FontName = fPrintSZD.lblother(i).FontName
.FontSize = fPrintSZD.lblother(i).FontSize
.CurrentX = fPrintSZD.lblother(i).Left
.CurrentY = fPrintSZD.lblother(i).Top
Printer.Print fPrintSZD.lblother(i).Caption
Next
不知在VBNET 中如何实现啊?

16,549

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧