Infr. Map Server

コミュニティの評価

このページは役に立ちましたか?

タグ タグ0

このページにはタグがありません。

ページ統計

880 個のビュー1 件の編集1048 文字 このページは2012年 3月 30日, 14:16に更新されました by contentconnector
知識を追加する方法

メモリからレポート データを読み込む

    目次
    No headers

    例:

    Dim table As New DataTable
    ‘Define a Table in Memory
    table.Columns.Add("FID", System.Type.GetType("System.Int64")) 
    table.Columns.Add("NAME", System.Type.GetType("System.String"))
    Dim i As Integer 
    ‘Fill the Table with Data 
    For i = 1 To 20
    Dim newRow As DataRow
    newRow = table.NewRow
    newRow.Item("FID") = i 
    newRow.Item("NAME") = "a" & i & "bbb" table.Rows.Add(newRow) 
    Next
    Report.SetDataSource("MyMemoryTest", table) 

    次に、レポート定義で、このテーブルをデータベース テーブルのように扱って SQL 文を適用できます。

    select * from MyMemoryTest where Fid={Fid} 
    Set the SQLSource property to Memory.