2011-01-07 19 views

Antwort

1

Sie haben Providing hat Ihre Bericht defn, Datenquelle und Vorlage Setup, hier ist der Peoplecode, es zu tun:

/* get report definition object */ 
&oRptDefn = create PSXP_RPTDEFNMANAGER:ReportDefn (&yourRptDefn); 
&oRptDefn.Get(); 

/* pass Rowset to the report definition */ 
&oRptDefn.SetRuntimeDataRowset(&yourRowset); 

/*generate report*/ 
&oRptDefn.ProcessReport (&yourTmpltID, &yourLangCd, &yourAsOfDate, &yourOutFormat); 

/*publish report */ 
&oRptDefn.PrintOutput(&yourDestinationPath);