Foxtable(狐表)用户栏目专家坐堂 → 导出文本


  共有2298人关注过本帖平板打印复制链接

主题:导出文本

帅哥哟,离线,有人找我吗?
一笑
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:四尾狐 帖子:808 积分:6213 威望:0 精华:0 注册:2014/3/23 23:02:00
导出文本  发帖心情 Post By:2015/12/4 17:57:00 [只看该作者]

打算把表中内容加上章、节编号导出文本。类似如下:

4. 运行手册文件管理【121.42(d)

4.1.  手册文件管理系统【CCAR-121.131(a)

4.1.1.   概述

    公司建立符合法律、法规和规章要求的手册标准体系。

4.1.2.   手册管理组织机构图

4.1.3.   手册管理职责

4.1.3.1.    总裁

1)  对公司手册体系的有效性负责;

2)  负责批准公司级手册。


使用代码如下:

Dim str As String

Dim drs As List(Of DataRow)

drs = DataTables("手册").Select("选择 = false")

If drs IsNot Nothing Then

    For i As Integer = 0 To drs.count-1

        Dim dr As DataRow = drs(i)

      

        If dr("") IsNot Nothing Then

            str = str & dr("") & dr("内容") & vbcrlf

        End If

       

        If dr("") Is Nothing And dr("") IsNot Nothing Then

            str & = str & "   " & dr("") & dr("内容") & vbcrlf

        End If

       

        If dr("") Is Nothing And dr("") Is Nothing And dr("小节") IsNot Nothing Then

            str & = str & "      " & dr("小节") & dr("内容") & vbcrlf

        End If

        If dr("章") Is Nothing And dr("节") Is Nothing And dr("小节") Is Nothing And dr("一") IsNot Nothing Then

            str & = str & "           " & dr("一") & dr("内容") & vbcrlf

        End If               

        'output.Show(str)

    Next

End If



但是导出的文本没有前面编号,求解,谢谢


 下载信息  [文件大小:   下载次数: ]
点击浏览该文件:导出文本.zip






 回到顶部