cancel
Showing results for 
Search instead for 
Did you mean: 

No responce when I open .rpt file in my application

0 Kudos
195

Hi,

I work with a windows 7 64bits and visual studio 2010.

I install SAP Crystal Reports, version for Visual Studio 2010 - Standard and SAP Crystal Reports runtime engine for .NET Framework 4 (64-bit).

My VS2010 project ask me to convert all my rpt file. I do that.

When I launch my application and try to print a list who is link with a rpt file, I get the error with the file:

/C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\dotnet1\crdb_adoplus.dll' who don't exists.

So as I see in the forum I add to my app.config files:

<startup useLegacyV2RuntimeActivationPolicy="true">

<supportedRuntime version="v4.0"/>

</startup>

Now I fix the previous error but there is another problem : the print preview viewer is open but it say a message like please wait but I never see my the preview (mouse cursor change to hourglass and nothing).

Have you an idee?

thank you.

PS : I precise that everything works before I convert my project with VS2010

Edited by: volontario on Jan 5, 2012 5:19 PM

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Two things:

1) Make sure you are using the full 4.0 framework, not the client framework

2) See [this|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533323335333433333332%7D.do] KBase.

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]

0 Kudos

1) Make sure you are using the full 4.0 framework, not the client framework

He is install with VS2010 and I select in in every solution of my project.

2) See this KBase.

I have already apply this solution :

<startup useLegacyV2RuntimeActivationPolicy="true">

<supportedRuntime version="v4.0" />

</startup>

in app.config

former_member183750
Active Contributor
0 Kudos

As part of troubleshooting this, comment out the line of code wher you point the report at your dataset.

Load some saved data report.

Run the app.

Does this saved data report show up?

- Ludek

0 Kudos

I comment out the line corresponding to the data so my report should normaly open without data just the report with his formatting. But I still have the same error. I can't do a screen printing it doesn't work.

-gwenaë

former_member183750
Active Contributor
0 Kudos

I want you to crate a new win app. One line of code:

Public Class Form1

Public Sub New()

' This call is required by the designer.

InitializeComponent()

' Add any initialization after the InitializeComponent() call.

'*******This is the only line of code you need to add to the project*****

CrystalReportViewer1.ReportSource = <path to a saved data report>

End Sub

End Class

Does this work?

If not, what CR references are you using and what is the version of the references?

- Ludek

0 Kudos

I try this and I put a report without link to dataBases and It works.

But Why it doesn't work with my other project?

What is the good version of the reference :

10.5.3700.0 or 13.0.2000.0?

My versions of reference are 13.0.2000.0.

After teste, my program has a problem when I do this : RptViewer.ReportSource = pathRpt;

He never end this action.

Edited by: volontario on Jan 9, 2012 9:59 AM

Edited by: volontario on Jan 9, 2012 12:03 PM

former_member183750
Active Contributor
0 Kudos

For CRVS2010, the reference must be 13.x.

Uninstall Crystal Reports Basic for Visual Studio 2008 (CR 10.5). Make sure there are no 10.5 references in your project. recompile and try again with your project.

With the new simple project, now try it with a report that connects to a database ( a simple one table one field report will be best for now). Do not add any db logon code to this project. Run it, let the report engine prompt for the db logon. Fill out the logon parameters. Doe this project run?

- Ludek

0 Kudos

I will try it.

Just another information for you : when I do a direct print (without preview) with my main aplication everithing is ok so it's only with the crystalReportViewe that there is a problem

Edited by: volontario on Jan 9, 2012 5:33 PM

0 Kudos

Ok I found the BUG.

It is because when I open my form (where is only the crystalReportViewer) the property WindowState was set to maximized. If I set it to normal there is no problem.

I think it is a crystal report bug.

Will you fix it?

former_member183750
Active Contributor
0 Kudos

I will certainly have a look. If I can reproduce the issue, I will report it to QA and update this thread.

Have a good one,

- Ludek

Answers (0)