![]() | RemReportSetReportSource Method |
Namespace: Paperwork.Connect
public a_GenericResult SetReportSource( a_ReportSource source )
public void SetReportSource() { a_ReportSource source = new a_ReportSource(); { //Yeni rapor kaynağı oluşturmak için ObjectID.Empty ile yeni ID oluşturulur. //Düzenleme yapmak için ise istenilen kaynağın ID bilgisi girilir. source.SourceId = ObjectID.Empty; source.SourceName = "SOURCE_NAME"; source.SourceTitle = "SOURCE_TITLE"; source.SourceType = "SOURCE_TYPE"; source.SqlText = "SQL_TEXT"; source.Status = "STATUS"; source.ClassData = "CLASS_DATA"; } a_GenericResult retval = p.rReport.SetReportSource(source); if (retval.ErrorCode != 0) throw new Exception(retval.Message); else Console.WriteLine("Rapor kaynağı başarıyla kaydedilmiştir."); Console.ReadLine(); }