Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Crystal Reports Runtime: Null Reference Exception

$
0
0

Dear All:-

 

it's difficult problem , i cann''t resolved it

 

i develop c# Dll Windows Forms application, it's very simple dll it takes an rpt file name and export it to pdf format then return pdf file location

 

i tested it usin windows forms exe and it works succefully.

 

then i used this dll at sql server 2008 using

CREATE ASSEMBLY and i create all refrences assemblies

 

this also succesed

 

but when i execute procedure to call this DLL sql server return this error

 

Msg 6522, Level 16, State 1, Procedure sp_USReportConverter, Line 0

A .NET Framework error occurred during execution of user-defined routine or aggregate "sp_USReportConverter":

System.NullReferenceException: Object reference not set to an instance of an object.

System.NullReferenceException: at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)

   at CrystalDecisions.CrystalReports.Engine.ReportDocument.      (ExportOptions      ?)

   at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType)

   at USReportConverter.ReportConverter.startCovert(SqlString rptName)

   at USReportConverter.ReportConverter.CovnertToPDF(SqlString RPTName, SqlString& PDFName)

.

What can i do????

 

Enviroment i used

 

- Visual Studio 2008

- using  CrystalDecisions.CrystalReports.Engine Version (11.5)

- using CrystalDecisions.Shared Version (11.5)

- SQL Server 2008

- Dot Net FrameWork 2

 

. Any ideas?


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>