ReportLib.fillReport 関数の構文図は、次のとおりです。
ReportLib.fillReport( report Report in, source DataSource in)
eglReport Report; eglReportData ReportData; eglReport.reportData = eglReportData;
eglReportData.connectionName = "mycon";
この場合、データにアクセスする SQL ステートメントは、EGL の外部で作成される、レポート設計ファイル内にあります。
// an array of records, with data myRecords customerRecord[]; eglReportData.data = myRecords;
mySQLString = "Select * From MyTable"; eglReportData.sqlStatement = mySQLString;
ReportLib.fillReport (eglReport, DataSource.sqlStatement);