cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Reports Runtime: Null Reference Exception

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Only CR 10.5 and CR 2008 (12.x) are supported with .NET 2008. See [this|https://wiki.sdn.sap.com/wiki/display/BOBJ/WhichCrystalReportsassemblyversionsaresupportedinwhichversionsofVisualStudio+.NET] wiki for more details.

Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup

Former Member
0 Kudos

Thanks for your advice

now i change my dll to use crystal report 2008

but , the same problem still occure

any help??

former_member183750
Active Contributor
0 Kudos

What CR assemblies are referenced in your project?

What is the version of the assembly crystaldecisions.crystalreports.engine.dll used in the project?

Ludek

Former Member
0 Kudos

What CR assemblies are referenced in your project?

i only use these assemplies

1- CrystalDecisions.CrystalReports.Engine

2-CrystalDecisions.Shared

What is the version of the assembly crystaldecisions.crystalreports.engine.dll used in the project?

it try to use version 10.5 , version 11.5, version 12

all versions leds to the same error

former_member183750
Active Contributor
0 Kudos

Let's got with v12 then. Make sure you do not have any other versions referenced in your project.

Download SP3 from here:

https://smpdl.sap-ag.de/~sapidp/012002523100007123572010E/cr2008_sp3.exe

See if that helps.

Ludek

Former Member
0 Kudos

Dear Ludek Uher

i really Thank you very much for your interaction with my problem

I will try to download this file and I will share with you the experience and results

Former Member
0 Kudos

Now after spent more than 10 hours

nothing change

i think there exists missing dll to perform export operation

What can i do?

former_member183750
Active Contributor
0 Kudos

Does [this|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] KBase descriobe the issue?

If so, what is the version of the crpe32.dll on that win 2008 server? (c:Program FilesBusiness ObjectsBusinessObjects Enterprise 12.0win32_x86)

Ludek

Former Member
0 Kudos

Hello Ludek Uher,

it's seems to me, that I have the same issue as described here, but I can not open any of the links here in.

I get a NullPointerException on a Windows Server 2008 R2 (64-bit) machine using crystal report runtime 2008 (SP 4). I try to export to a pdf file and in my development environment everything runs fine.

I checked already if the program which calls the crystal report runtime runs in 32-bit mode. And it does so.

My crpe32.dll has the file version 12.4.0.966

I hope there is a solution for my problem too.

with best regards

Mirko

Answers (0)