Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Unless I am greately mistaken, I found a bug in Crystal Report.

But maybe I am doing something wrong, so please tell me if problem is on my part.

There are also 5 pictures atteched here:

1.JPG You see that I have defined a System DSN in ODBC Data Source Administrator named "My Database".

2.JPG As you can see database path is set to: (null)\Group.mdb. This is because program looks for the .mdb file in its path. I mean the same path as app.exe file.

3.JPG OK, when I proceed to show the CrystalReportViewer window, it uses the database in the app path to show the data in CrystalReportViewer. That's OK, if I close the CrystalReportViewer window and open it again, or if I print the document and close the CrystalReportViewer window and open it again, still no problem occurs!

4.JPG The bug is in the Export Report section. If you press the Export Report button at the top of CrystalReportViewer window and save the report as an external file, then problem begins. If you do so and close the CrystalReportViewer window, you cannot open it anymore!

5.JPG I mean if you open CrystalReportViewer again, you see this screen! Even if I enter the correct password, it will return an error, no way to pass it!

The solution shold be disabling the Export Button?

I don't think so!

If this is a bug, anyone know how to report it to business objects?

If this is not a bug, what's wrong?

PLEASE, don't reply if you don't know!

Thank you for your help:)

Posted

Hi,

 

I have one suggestion to made, if this is possible for what you want.

 

When i need to use CR inspite of link directly the datasource to an .MDB or SQlServer or whatever, i create a dataset (in desing mode), imagine your using VS2005, in this dataset i create the tables i need. I just create this dataset for have a structure, for have fields to build my report design.

 

After i my .NET code i create my business logic objects, and i create a dataset/datatable with the same fields name i put in the previously designed dataset, and i just do something like this:

           CrystalReport1 rpt = new CrystalReport1();
           rpt.SetDataSource(myDsReturnedFromBOLayer);

 

At least, with this, i don't get annoying errors like this one you reported.

And i have all inside my .NET code, i manage all in one place.

 

I hope it can help u your give you any idea.

 

Best regards,

Tiago Teixeira

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...