 | RemReportReportDataBySQL Method |
Paperwork .Net Kütüphanesi
SQL sorgusu verilen raporun verilerini döner.
Namespace:
Paperwork.Connect
Assembly:
Paperwork.Connect (in Paperwork.Connect.dll) Version: 5.0.0.0
Syntaxpublic a_GenericResult ReportDataBySQL(
string sql,
string reportName
)
Parameters
- sql
- Type: SystemString
SQL sorgusu - reportName
- Type: SystemString
Rapor adı
Return Value
Type:
a_GenericResulta_GenericResult nesesi içinde , ErrorCode=0 ise işlem başarılıdır. Aksi taktirde Result ve Message alanları kontrol ediniz.
Examplespublic void ReportDataBySQL()
{
string sql = "SQL_SORGUSU";
string reportName = "REPORT_NAME";
a_GenericResult retval = p.rReport.ReportDataBySQL(sql, reportName);
if (retval.ErrorCode != 0)
throw new Exception(retval.Message);
Console.ReadLine();
}
See Also