但我不想用WORD或其他的方法,只想用VB一手包办
解决方案 »
- 解决就给分,请高手帮忙:richtextbox 的一个问题
- 请大家给推荐几个好用的打包软件!
- 高手们,看一下吧,谢谢!
- 求Spread6的注册码,急!!
- 一个关于Winsock问题.
- ∮∮∮∮要结婚了,阿九提前请大家吃喜糖:)∮∮∮∮
- 太奇怪了,我的tabstrip控件设计得时候怎么不能翻页阿???
- 程序打包后不能运行了?
- 如果我用一个Winsock(index)控件数组。Winsock(1)、Winsock(2)同时调用一个延时函数会出什么问题吗?
- 靠,这下可怎么办,以前我感兴趣的贴子,我都要up,现在怎么找不到了,我还没来得及down
- 如何在TreeView上使用Windows的圖標
- 急!求救
'下面是我某个程序中打印的部分,希望对你有帮助.
'先在窗体上建用LINE 数组画好线,用固定好 LABEL 位置.
'
'
Sub PrintPage(Index As Long, X As Long, Y As Long) '打印
Dim a As Long
Dim B As Long
B = Line1.Count - 1
For a = 0 To B
If a <= 16 Then
Printer.CurrentX = X + Label1(a).Left '标题
Printer.CurrentY = Y + Label1(a).Top
Printer.Print Label1(a).Caption
Printer.CurrentX = X + Label3(a).Left '内容
Printer.CurrentY = Y + Label3(a).Top
Printer.Print Label3(a).Caption
End If
Printer.Line (Line1(a).X1 + X, Line1(a).Y1 + Y)-(Line1(a).X2 + X, Line1(a).Y2 + Y) '划线
Next a
PageNumLab.Caption = "-" & (Index + 1) & "-"
Printer.CurrentX = X + PageNumLab.Left '内容
Printer.CurrentY = Y + PageNumLab.Top
Printer.Print PageNumLab.Caption
Printer.Line (X, PageNumLab.Top + PageNumLab.Height + DltY * 2 / 3 + Y)- _
(Picture3.Width + X, PageNumLab.Top + PageNumLab.Height + DltY * 2 / 3 + Y) '划线
End Sub