窗体中的选中数据传递给报表

窗体中的选中数据传递给报表

窗体

{

    Args  args = new args();

    Int cnt = 0;

    Common common;

    ;

    super();

    args.caller(element);

    args.record(InventTable);

    new menufunction('NJ_MF_PrintPicture_rpt',MenuItemType::Output).run(args);

}

报表

  boolean                     ret=true;

    int                         nCountRecords;

    InventTable                 common;

    FormDataSource              tTmp;

    FormRun                     fr;

   ;

    img_Arr  = new array(types::Container);

    fr = element.args().caller();

    tTmp = fr.dataSource();

    for(common = tTmp.getFirst(1) ? tTmp.getFirst(1) : element.args().record();common;common = tTmp.getNext())

    {

        ++ nCountRecords;

        img_Arr.value(1,this.GetPicData(common.ItemId,common.ACT_DesignNo));

        txt1.text(common.ItemId);

        common =tTmp.getNext();

    }

原文地址:https://www.cnblogs.com/perock/p/2119120.html