cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

JRC & C++ ???

Former Member
0 Likes
762

Hi

I've just downloaded crystal reports for visual studio 2010, i created a report linked to an xml file which i generated by the .NET dataset.writexmlschema method.

I tried to do this:

CrystalDecisions.CrystalReports.Engine.ReportDocument rptDoc = new CrystalDecisions.CrystalReports.Engine.ReportDocument();

rptDoc.Load("demo.rpt");

rptDoc.SetDataSource((DataTable)tablaS);

crystalReportViewer1.ReportSource = rptDoc;

But it throws an exception at Load()

it's in spanish but it refers to something like (in innerexception) "a document processed by JRC engine cannot be open in C++ stack" ( Un documento procesado por el motor JRC no se puede abrir en la pila C++.)

what might be happening?

thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

rptDoc.Load("demo.rpt");

You need the full path to the report.

Ludek

Former Member
0 Likes

my bad

i had tried that but like this "d://demo.rpt" instead of "d:
demo.rpt"

doh....

thanks

Former Member
0 Likes

Hi Ludek

I have the same problem.

I use the full path to the report but still no luck.

I have tried to use different methods.

Nr 1: Open method

=====================

Dim crGeneratedReport As New ReportClientDocument()

crGeneratedReport.ReportAppServer = String.Format(":", rasURL, RASPort)

crGeneratedReport.ReportAppSession.Initialize()

crGeneratedReport.Open(CType(filePath, Object), 1) --crash here

Nr 2: Load method

===================

Dim rptDoc as CrystalDecisions.CrystalReports.Engine.ReportDocument rptDoc = new CrystalDecisions.CrystalReports.Engine.ReportDocument()

rptDoc.Load(m_ReportFilename, m_ReportServer) --crash here

crystalReportViewer1.ReportSource = rptDoc

I have also tried changing the path and I can even open the folder on the remote server from my pc in explorer(start/run box, path) by using the same string as I send, but no luck.

The report file that I want is on the report server, and this worked well in CR2008, but now it seems something has changed.

What can be the problem?

Is there a service pack that can help?

regards Uffe

Former Member
0 Likes

Some more efforts...

I tried some of the samples in the referenced sample code, but no difference.

At one time though, when I changed the path like
remoteservername\C$\filename......

at this time I got an access denied message wich I think indicated that I was on the right track.

Does this at all make any sense? I`m lost ...

Using VS 2010, CR 2010, VB.Net, Winforms project and tried web as well..in the samples

regards Uffe

Former Member
0 Likes

As a test, don't use
remoteservername. Use a local folder. Does that work? If so, then trust the access denied error. To troubleshoot access denied errors use [Process Monitor|http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx]. Also, see the article [Troubleshooting the error; Load Report Failed|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d02f7cd3-f18b-2d10-55ad-dab2200f68fc].

If none of the above helps, please create a new thread as this one is closed and answered (also in the new thread, put a link to this thread) - and if the above does not help, we're looking at a different issue.

Ludek

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

Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Answers (0)