I am getting this error when trying to run a report connecting to an Oracle database.
Database Stimulsoft.Report.Dictionary.StiOracleDatabase not found
This is part of the error message:
Code: Select all
[Exception: Database Stimulsoft.Report.Dictionary.StiOracleDatabase not found]
Stimulsoft.Report.Dictionary.StiSqlDatabase.RegData(StiDictionary dictionary, Boolean loadData) +132
Stimulsoft.Report.Dictionary.StiDictionary.CreateDatabases(Boolean loadData) +202
Stimulsoft.Report.Dictionary.StiDictionary.Connect(Boolean loadData) +163
Stimulsoft.Report.Engine.StiRenderProviderV2.ConnectToData(StiReport report) +140
Stimulsoft.Report.Engine.StiRenderProviderV2.Render(StiReport report, StiRenderState state) +4686
Stimulsoft.Report.Engine.StiReportV2Builder.RenderSingleReport(StiReport masterReport, StiRenderState renderState) +847
Stimulsoft.Report.StiReport.RenderReport(StiRenderState renderState) +1588
Stimulsoft.Report.StiReport.Render(StiRenderState renderState, StiGuiMode guiMode) +952
Stimulsoft.Report.StiReport.Render() +48
Code: Select all
private void RetrieveReport(string dbSchema, string userName, string passWord)
{
string oracleConnection = "Data Source=" + dbSchema + ";User ID=" + userName + ";Password=" + passWord;
StiReport appReport = new StiReport();
StiDatabase stiDB = new StiOracleDatabase("Connection", oracleConnection);
appReport.Load(Server.MapPath("Reports\\BatchPrinters.mrt"));
appReport.Dictionary.Databases.Clear();
appReport.Dictionary.Databases.Add(stiDB);
appReport.Compile();
//appReport.CompiledReport.Variables["ReportTitle"] = "Batch Printers";
appReport.Render();
StiPdfExportSettings pdfSettings = new StiPdfExportSettings();
StiPdfExportService pdfExport = new StiPdfExportService();
string strNewGUIId = System.Guid.NewGuid().ToString() + ".pdf";
string strFileName = Server.MapPath("Reports") + "\\" + strNewGUIId;
pdfExport.ExportPdf(appReport, strFileName);
StiWebViewer1.Report = appReport;
string strPDFFile = Request.ApplicationPath + "/reports/" + strNewGUIId;
pdfViewer.FilePath = strPDFFile;
pdfViewer.FilePath = strPDFFile + "#zoom=100";
}
I have also included the DLL that is needed for the OracleClient. (Stimulsoft.Report.OracleClient.dll)
Any areas where I should look at?
Thanks.
B~