while (rsnext()) {
Bars bar = new Bars();
barsetId(rsgetLong("id"));
barsetName(rsgetString("name"));
barsetType(rsgetInt("type"));
barsetCreatorId(rsgetLong("creator_id"));
resultListadd(bar);
}
你的问题可以这样解决:
首先你要使用vb api函数以及api结构:
Public Type BY_HANDLE_FILE_INFORMATION
dwFileAttributes As Long
ftCreationTime As FILETIME
ftLastAccessTime As FILETIME
ftLastWriteTime As FILETIME
dwVolumeSerialNumber As Long
nFileSizeHigh As Long
nFileSizeLow As Long
nNumberOfLinks As Long
nFileIndexHigh As Long
nFileIndexLow As Long
End Type
Public Type OFSTRUCT
cBytes As Byte
fFixedDisk As Byte
nErrCode As Integer
Reserved1 As Integer
Reserved2 As Integer
szPathName(OFS_MAXPATHNAME) As Byte
End Type
Public Declare Function OpenFile Lib "kernel32" Alias "OpenFile" (ByVal lpFileName As String, lpReOpenBuff As OFSTRUCT, ByVal wStyle As Long) As Long
Public Declare Function GetFileInformationByHandle Lib "kernel32" Alias "GetFileInformationByHandle" (ByVal hFile As Long, lpFileInformation As BY_HANDLE_FILE_INFORMATION) As Long
关键的语句是:
dim lp as OFSTRUCT;
DIM FILEINFO AS BY_HANDLE_FILE_INFORMATION
filehandle=openfile(“aa。pdf”,lp,OF_READ)
getfileinformationbyHandle filehandle,FILEINFO
这个FILEINFO就是你要的文件的所有属性的一个vb定义的结构,得到这个结构
你就可以得到文件所有的属性。
你还可以查阅vb api函数的帮助,对你解决问题有帮助,祝好运!
1、首先你在网上下载word转换成PDF格式的软件,如我的是dopdf-v7,或者是wordtopdftool,
2、安装完成后,打开word文档点打印,选择安装的转换虚拟打印机打印,我的如下图所示
3、点击打印保存桌面即可
希望能帮到你,祝你工作愉快~如有需要软件请联系腾讯号378823078
以上就是关于vb编程编写pdf查找功能程序全部的内容,包括:vb编程编写pdf查找功能程序、用vb如何得到一个pdf文档属性、VB代码如何实现将word文档转换成PDF文档等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)