很好的学习方法啊!
我刚学写程序也是用VB写一个通讯录的。
但最好不用数据绑定功能,自己写比较好些。
数据打印用Printer,我给你几个小程序。
Sub ppm (l, r, t, con$)
Printer.CurrentX = l + (r - l - Printer.TextWidth(con$)) \ 2
Printer.CurrentY = t
Printer.Print con$
End Sub
Sub rpm (r, t, con As String)
Printer.CurrentX = r - Printer.TextWidth(con$)
Printer.CurrentY = t
Printer.Print con$
End Sub
Sub textout (x, y, con As String)
Printer.CurrentX = x
Printer.CurrentY = y
Printer.Print con
End Sub
试试看。
我刚学写程序也是用VB写一个通讯录的。
但最好不用数据绑定功能,自己写比较好些。
数据打印用Printer,我给你几个小程序。
Sub ppm (l, r, t, con$)
Printer.CurrentX = l + (r - l - Printer.TextWidth(con$)) \ 2
Printer.CurrentY = t
Printer.Print con$
End Sub
Sub rpm (r, t, con As String)
Printer.CurrentX = r - Printer.TextWidth(con$)
Printer.CurrentY = t
Printer.Print con$
End Sub
Sub textout (x, y, con As String)
Printer.CurrentX = x
Printer.CurrentY = y
Printer.Print con
End Sub
试试看。
解决方案 »
- StrComp的疑惑
- 关于sendmessage模拟鼠标的问题
- format 字符串控制问题,在线等!!!!
- 计算字符串宽度和高度
- 如何在打包程序时使其安装时在桌面上建立快捷方式?程序是用setup factory打包的
- 帮忙看看这句话有什么问题
- UPDATE baseinfo SET base_name='0' from buildcheck WHERE baseinfo.base_code==buildcheck.a_code
- VB的前途何在啊?欢迎大家讨论...
- vb中listview问题,在线等待
- 如何检测到WORD打印正在进行?
- API编程高手前来收分
- vb编译成可执行文件(例如:aa.exe)后,怎样在运行时得到自己的名字(aa.exe?
打印问题,你可以做报表啊,不难的。