以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  能否使用FOXTABLE读出PDF文件页数?  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=154412)

--  作者:旭日生
--  发布时间:2020/9/14 16:05:00
--  能否使用FOXTABLE读出PDF文件页数?
代码怎么写呢?
--  作者:有点蓝
--  发布时间:2020/9/14 16:11:00
--  
http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=152796&skin=0

http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=151835

--  作者:旭日生
--  发布时间:2020/9/14 16:12:00
--  
好快回复!谢谢。我研究一下。
--  作者:旭日生
--  发布时间:2020/9/14 23:42:00
--  
http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=152796&skin=0
PDF文件读页数,也很简单:

1、上述文字拷贝进foxtable系统中。
2、外部引用O2S.Components.PDFRender4NET.dll   
3、datacolchanged表事件代码:   
        Dim file As String =   e.DataRow("路径文件名")
        \'        MessageBox.Show(file)
        If FileSys.FileExists(file) Then
                       Dim pdfFile = O2S.Components.PDFRender4NET.PDFFile.Open(e.DataRow("路径文件名"))
            e.DataRow("页数量") = pdfFile.PageCount
                   Else
            \'           e.DataRow("图像大小") = " "
            e.DataRow("页数量") = 0
            
            End If