Skip to Content
0
Former Member
Mar 09, 2010 at 07:40 AM

Crystal report when created using sybase oledb, gives no appender error

24 Views

I have a .net 3.5 application which uses Sybase Oledb to export crystal report 2008 to some file format.

While calling the function ExportToDisk, the console shows error as:-

"log4plus:error no appenders could be found for logger <com.sybase.dataaccess.oledb.iunknown.queryinterface>.

log4plus:error please initialize the log4c plus system properly"

This is not any exception I think, because it does not get caught into Catch block when i tried.

What is the reason this message is shown?

The code is as follows:-

ReportDocument reportDocument = new ReportDocument();

reportDocument.Load(reportFileName);

foreach (CrystalDecisions.Shared.IConnectionInfo reportConnectionInfo in reportDocument.DataSourceConnections)

{

reportConnectionInfo.SetConnection("10.253.59.214,5000", "OPS_UTUPG_Adp3", "ops_sa", "TstUsr#1");

}

//Function to set parameters of crystal report.

SetParameters(reportDocument);

string exportFile = @"C:\temp\ExportedReport.doc";

reportDocument.ExportToDisk(ExportFormatType.WordForWindows, exportFile);