on 2012 Jan 05 4:13 PM
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
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]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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
User | Count |
---|---|
69 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.