メソッド PRIM_PDF.AutoTable - Write

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

参照

すべてのコンポーネント クラス

テクニカルリファレンス

EPC150060 - December 2023