You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

AutoTable を PDF 文書に書き込みます
PRIM_PDF.AutoTable (PRIM_PDF.AutoTable) のメンバ

詳細


PDF ドキュメントに AutoTable を書き込みます。


AutoTable を作成して書き込みます。
Evtroutine Handling(#FindContacts.completed)
Define_Com Class(#PRIM_PDF) Name(#pdf)
Define_Com Class(#PRIM_PDF.AutoTable) Name(#Table) Reference(*DYNAMIC) Theme(Striped) Columncount(2)
Define_Com Class(#PRIM_PDF.AutoTableColumn) Name(#LastNameCol) Reference(*DYNAMIC)
Define_Com Class(#PRIM_PDF.AutoTableColumn) Name(#FirstNameCol) Reference(*DYNAMIC)
Define_Com Class(#PRIM_PDF.AutoTableRow) Name(#Row) Reference(*DYNAMIC)
#pdf.start

  • AutoTable 作成
    #Table <= #pdf.CreateAutoTable
  • Define table columns
    #LastNameCol <= #Table.CreateColumn
    #LastNameCol.HeadCaption := 'Last name'
    #Table.AddColumn Column(#LastNameCol)
    #FirstNameCol <= #Table.CreateColumn
    #FirstNameCol.HeadCaption := 'First name'
    #Table.AddColumn Column(#FirstNameCol)
  • テーブルデータ追加
    Selectlist Named(#xContactsList)
    #Row <= #Table.CreateRow
    #Row.addCell Value(#xContactLastName)
    #Row.addCell Value(#xContactFirstName)
    #Table.AddRow Row(#Row)
    Endselect
  • AutoTable の書き込み
    #Table.Write
  • Save the PDF report
    #pdf.save Filename('MyContacts.pdf')
    Endroutine

    参照

    すべてのコンポーネント クラス
    テクニカルリファレンス
  • No labels