on 07-07-2010 4:23 PM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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
User | Count |
---|---|
68 | |
8 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.