小说网 找小说 无限小说 烟雨红尘 幻想小说 酷文学 深夜书屋

2007年4月8日

VB中显示TIF(扫描文件)的方法

摘要: 添加部件Library MODICtl C:/PROGRA~1/COMMON~1/MICROS~1/MODI/11.0/MDIVWCTL.oca Microsoft Office Document Imaging 11.0 Type Library Private Sub C... 阅读全文

posted @ 2007-04-08 15:05 王峰炬 阅读(242) 评论(0) 推荐(0)

WORD 文档中的艺术字

摘要: 如何判断艺术字的样式,字体,字号? Sub macro1() Dim myShape As Shape, s(4) As String For Each myShape In ActiveDocument.Shapes If myShape.Type = msoTextE... 阅读全文

posted @ 2007-04-08 15:01 王峰炬 阅读(137) 评论(0) 推荐(0)

获取EXE文件安装后的路径

摘要: 'WINRAR安装路径 Sub GetWINRARPath() Dim WSH As Object Set WSH = CreateObject("Wscript.Shell") MsgBox "WINRAR安装路径:" & WSH.RegRead("HKEY_LOCAL_MACHINE/Soft... 阅读全文

posted @ 2007-04-08 14:58 王峰炬 阅读(202) 评论(0) 推荐(0)

最小公倍数

摘要: “辗转相除法”求解最小公倍数 Function LCM(ParamArray nums()) As Long Dim temp1 As Long, temp2 As Long, I As Long LCM = nums(0) For I = 1 To UBound(nums) temp1 = ... 阅读全文

posted @ 2007-04-08 14:52 王峰炬 阅读(133) 评论(0) 推荐(0)

按行获取文本文件的内容

摘要: 不知是不是VB里最简单的方法? Sub getlines(byval filename as string,byref lines() as string) If Len(Dir(filename)) = 0 Then Exit Sub Open filename For Input As #1... 阅读全文

posted @ 2007-04-08 14:47 王峰炬 阅读(118) 评论(0) 推荐(0)

导航