locked
how to enable crystal report viewer in Visual Studio 2010

    Question

  • I had installed Crystal Report for Visual Studio 2010, and I can create a report but I can´t attach it to a Window Form because in my toolbox I can´t find CrystalReportViewer tool. How can I put this tool in the toolbox?

    Thanks,

    flaquitqm

    Thursday, October 28, 2010 11:23 PM

Answers

  • I think I found a solution.  It worked for me at least.

    The CrystalReport Viewer control is a .Net assembly.  By default, when you create a new .net 4 Windows Form application, it uses the .net 4 Client Profile framework, not the standard .net 4 framework.  After I converted my project (Properties-> Compile -> Advanced Compile Options - Target Framework) to the standard framework, the Crystal Report Viewer control became available under the Reports section.

    I have yet to research what the differences are between the two types of frameworks, or why we need them...

    • Edited by NSBI Thursday, November 25, 2010 2:37 AM Fixing typos...
    • Marked as answer by Liliane Teng Thursday, December 09, 2010 1:37 AM
    Thursday, November 25, 2010 2:36 AM
  • Hello flaquitqm,

    Thanks for your post.

    Crystal Reports has been a component of Visual Studio since its first release in 2002. In VS2008 or previous editions, you could add it to toolbox successfully. In VS2010, We could not use it from toolbox. Crystal Reports no longer be included in Visual Studio 2010. Instead, it is be provided by SAP. AFAIK, SAP still has no production release of CR for VS 2010,your only option is to download and install their beta.

    http://blogs.msdn.com/b/vbteam/archive/2010/04/08/crystal-reports-for-visual-studio-2010.aspx
    (Crystal Reports for Visual Studio 2010)

    In addition, if you still have any problems about Crystal Reports, you could ask questions here:
    http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/threads/
    (Crystal Reports for Visual Studio)

    Best regards,
    Liliane
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com


    Please mark the replies as answers if they help and unmark them if they provide no help. Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. Thanks
    • Marked as answer by Liliane Teng Thursday, November 04, 2010 9:01 AM
    Monday, November 01, 2010 9:17 AM

All replies

  • Hello flaquitqm,

    Thanks for your post.

    Crystal Reports has been a component of Visual Studio since its first release in 2002. In VS2008 or previous editions, you could add it to toolbox successfully. In VS2010, We could not use it from toolbox. Crystal Reports no longer be included in Visual Studio 2010. Instead, it is be provided by SAP. AFAIK, SAP still has no production release of CR for VS 2010,your only option is to download and install their beta.

    http://blogs.msdn.com/b/vbteam/archive/2010/04/08/crystal-reports-for-visual-studio-2010.aspx
    (Crystal Reports for Visual Studio 2010)

    In addition, if you still have any problems about Crystal Reports, you could ask questions here:
    http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/threads/
    (Crystal Reports for Visual Studio)

    Best regards,
    Liliane
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com


    Please mark the replies as answers if they help and unmark them if they provide no help. Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. Thanks
    • Marked as answer by Liliane Teng Thursday, November 04, 2010 9:01 AM
    Monday, November 01, 2010 9:17 AM
  • Hello flaquitqm,

    What about your problem? When you come back, if you think it provides no help, please unmark and follow up. Thanks.

    Best regards,
    Liliane
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com


    Please mark the replies as answers if they help and unmark them if they provide no help. Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. Thanks
    Thursday, November 04, 2010 9:04 AM
  • It seems like all threads say the same thing which never answers the actual question.


    Workin it out baby
    Wednesday, November 24, 2010 12:50 AM
  • I think I found a solution.  It worked for me at least.

    The CrystalReport Viewer control is a .Net assembly.  By default, when you create a new .net 4 Windows Form application, it uses the .net 4 Client Profile framework, not the standard .net 4 framework.  After I converted my project (Properties-> Compile -> Advanced Compile Options - Target Framework) to the standard framework, the Crystal Report Viewer control became available under the Reports section.

    I have yet to research what the differences are between the two types of frameworks, or why we need them...

    • Edited by NSBI Thursday, November 25, 2010 2:37 AM Fixing typos...
    • Marked as answer by Liliane Teng Thursday, December 09, 2010 1:37 AM
    Thursday, November 25, 2010 2:36 AM
  • I see thank you
    Workin it out baby
    Saturday, November 27, 2010 1:09 AM
  • Thank you very much YTM, It worked really charming for me. I can see the icon in the Reporting Toolbox area now.

    Verney

    Wednesday, December 08, 2010 10:25 PM
  • I had installed Crystal Report for Visual Studio 2010, and I can create a report but I can´t attach it to a Window Form because in my toolbox I can´t find CrystalReportViewer tool. How can I put this tool in the toolbox?

    Thanks,

    flaquitqm


    Tuesday, January 11, 2011 7:05 PM
  • thanks  YTN ( i was searching it for many days)
    Tuesday, February 15, 2011 6:37 AM
  • Thanks ytn your suggestion is very beneficial for me. it really worked. thank again.  
    Monday, June 13, 2011 12:44 PM
  • Thanks. It really worked for me!
    Thursday, June 16, 2011 9:26 AM
  • Thanks it worked!!!
    Sunday, November 13, 2011 11:02 PM
  • Thanks! Thanks it also worked for me!!
    Monday, November 21, 2011 5:52 AM
  • I had installed Crystal Report for Visual Studio 2010, and I can create a report but I can´t attach it to a Window Form because in my toolbox I can´t find CrystalReportViewer tool. How can I put this tool in the toolbox?

    Thanks,

    flaquitqm


    I am also having the problem that once I have gotten the CrystalReportViewer tool to show up and put it on a form, I am getting a System.IO.FileNotFoundException.

    It says "Could not load file or assembly 'file:///C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.

    Source=mscorlib

    FileName = file:///C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll

    FusionLog==== Pre-bind state information ===
    LOG: User = AmbersHackBox\Atsuko
    LOG: Where-ref bind. Location = C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll
    LOG: Appbase = file:///C:/Users/Atsuko/Documents/Visual Studio 2010/Projects/Ch09DatasetSBS/Ch09DatasetSBS/bin/Debug/
    LOG: Initial PrivatePath = NULL
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in LoadFrom load context.
    WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
    LOG: Using application configuration file: C:\Users\Atsuko\Documents\Visual Studio 2010\Projects\Ch09DatasetSBS\Ch09DatasetSBS\bin\Debug\Ch09DatasetSBS.vshost.exe.Config
    LOG: Using host configuration file:
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Attempting download of new URL file:///C:/Program Files/SAP BusinessObjects/Crystal Reports for .NET Framework 4.0/Common/SAP BusinessObjects Enterprise XI 4.0/win32_x86/dotnet1/crdb_adoplus.dll.

    Monday, December 12, 2011 9:30 PM
  • Millions of THANKS to YTN..!!

     

    thanks mate

    Friday, December 16, 2011 11:43 AM
  • YTN! I really need your help. Can you pls elaborate more to me on how did you do this one? I could not find the installed CRViewer in the toolbox. Do I have to compile first my project before selecting options to show the CRV? Pls respond. Thanks.
    Monday, January 09, 2012 6:08 AM
  • YTN! I really need your help. Can you pls elaborate more to me on how did you do this one? I could not find the installed CRViewer in the toolbox. Do I have to compile first my project before selecting options to show the CRV? Pls respond. Thanks.

    I had installed Crystal Report for Visual Studio 2010, and I can create a report but I can´t attach it to a Window Form because in my toolbox I can´t find CrystalReportViewer tool. How can I put this tool in the toolbox?

     

    Please help my email id is harshad.panchal@gmail.com

    Thanks in Advance.

    Hp.

    Wednesday, January 11, 2012 12:52 PM
  • thanx a lot YTN.. it really worked..thanx a lot

     

    Thursday, January 12, 2012 7:34 AM
  • Found thanks to you!
    Sunday, January 15, 2012 8:29 AM
  • Thank Buddy it works for me..

    but i cant load the component  called crystal document...

    do u have any idea?

    Wednesday, January 18, 2012 1:08 PM
  • Hello Jehyne and Harshad

     

    You should not recompile your project yet, until you change the framework type.

    Once you have Crystal Reports installed, load up your Visual Studio application.  In the Project menu, select Properties (at the bottom of the list).  In here, click on the "Compile" tab and click on the "Advanced Compile Options..." button at the bottom.

    On the Advanced Compiler Settings window, change the Drop Down box for Target framework to ".NET Framework 4" (It probably says ".NET Framework 4 Client Profile" right now, so change it to just the plain Framework).

     

    If you don't see that option, you may need to re-install the .Net 4 Framework from http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=17718

     

    Monday, January 23, 2012 7:19 PM
  • Thank Buddy it works for me..

    but i cant load the component  called crystal document...

    do u have any idea?


    I have seen that before.  Can you explain more about what your code/form is doing when you see this error?
    Monday, January 23, 2012 7:21 PM
  • Thanks, Resolve my problem. Thanks again
    Monday, April 02, 2012 4:07 AM
  • I think I found a solution.  It worked for me at least.

    The CrystalReport Viewer control is a .Net assembly.  By default, when you create a new .net 4 Windows Form application, it uses the .net 4 Client Profile framework, not the standard .net 4 framework.  After I converted my project (Properties-> Compile -> Advanced Compile Options - Target Framework) to the standard framework, the Crystal Report Viewer control became available under the Reports section.

    I have yet to research what the differences are between the two types of frameworks, or why we need them...

    yeah it also worked for me

    Thursday, April 19, 2012 9:47 AM
  • I have the same Problem 

    System.IO.FileNotFoundException was unhandled
      Message=Impossible de charger le fichier ou l'assembly 'file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' ou une de ses dépendances. Le fichier spécifié est introuvable.
      Source=mscorlib
      FileName=file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll
      FusionLog==== Informations d'état de liaison préalable ===
    JRN : utilisateur = Elkobi-PC\El kobi
    JRN : liaison where-ref. Emplacement = C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll
    JRN : Appbase = file:///C:/Users/El kobi/documents/visual studio 2010/Projects/GestionParckInfo/GestionParckInfo/bin/Debug/
    JRN : PrivatePath initial = NULL
    Assembly appelant : (Unknown).
    ===
    JRN : cette liaison démarre dans le contexte de chargement de LoadFrom.
    AVT : l'image native ne sera pas détectée dans le contexte LoadFrom. Elle sera détectée uniquement dans le contexte de chargement par défaut, comme pour Assembly.Load().
    JRN : utilisation du fichier de configuration de l'application : C:\Users\El kobi\documents\visual studio 2010\Projects\GestionParckInfo\GestionParckInfo\bin\Debug\GestionParckInfo.vshost.exe.Config
    JRN : utilisation du fichier de configuration d'h

    ôte : 
    JRN : utilisation du fichier de configuration de l'ordinateur à partir de C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    JRN : tentative de téléchargement de la nouvelle URL file:///C:/Program Files (x86)/SAP BusinessObjects/Crystal Reports for .NET Framework 4.0/Common/SAP BusinessObjects Enterprise XI 4.0/win32_x86/dotnet1/crdb_adoplus.dll.

      StackTrace:
           à System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
           à System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
           à System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
           à System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
           à System.Reflection.Assembly.LoadFrom(String assemblyFile)
           à CrystalDecisions.ReportAppServer.DataSetConversion.DataSetConverter.DataSetProcessingDelegate(IntPtr arg)
      InnerException: 


    thinks for your help :)

    Wednesday, May 16, 2012 12:25 AM
  • THanks YTN,

    For the time being my problem has been resolved. but i also would like to know that is there any kind of data lost if we change the compile engine

    Regards

    Anil Shah

    Friday, June 01, 2012 9:51 AM
  • Hello Liliane Teng:

    I have tried and it works. Thank you very much.

    Sunday, June 10, 2012 8:06 PM
  • I'm sorry im stuck in nowhere, i dunno what to do to get crystal reports for my vb .net 2010.

    I dunno which packages to download and in which order to install .... please help me!


    http://adonetaccess2003.blogspot.com http://vb6access2003.blogspot.com http://evry1falls.freevar.com

    Sunday, June 17, 2012 4:02 PM
  • Hello Anil.Shah007.

    No, I have never had an issue where any data or coding was lost during the change over, however, depending on how complex your code is, there may be some syntax errors that you may need to fix up after the change. 

    Monday, June 18, 2012 2:51 PM
  • Hello evry1falls.

    The installation proceedure is basically a standard install, but I can't specifically help you unless I can get some more information from you.  What version of Visual Studios are you using (I know you said 2010, but it is the free version, the Pro version, or just the VB portion of it)?

    If you have the full version of Visual Studios already installed, then all you will need to download is the Crystal Reports add on from here: http://www.businessobjects.com/jump/xi/crvs2010/default.asp

    After that, make sure Visual Studios is closed, and install Crystal Reports.  That is normally all there is to it.  After it is installed, you can open Visual Studios and just to test it, create a new VB .Net application and change the .Net framwork to .Net 4 (as mentioned above).  You should then see the Crystal Reports items on the tool bar on the left.

    Steve.

    Monday, June 18, 2012 3:26 PM
  • I'm sorry im stuck in nowhere, i dunno what to do to get crystal reports for my vb .net 2010.

    I dunno which packages to download and in which order to install .... please help me!


    http://adonetaccess2003.blogspot.com http://vb6access2003.blogspot.com http://evry1falls.freevar.com

    I've found my solution and posted it here

    http://adonetaccess2003.blogspot.com http://vb6access2003.blogspot.com http://evry1falls.freevar.com

    Monday, June 18, 2012 7:58 PM
  • @YTN

    i have the Pro Version, and i found the solution already thanx.

    My problem was that i did not know which Package to download and install, so i just downloaded the standard 288 MGB package and installed it, and everything is ok now ... Thanx alot !

    I'm just wondering, how to install the Click-Once Package

    [SAP Crystal Reports, version for Visual Studio 2010 - Click Once
    Click once installation package used to create self-updating Windows-based applications which can be installed and run with minimal user interaction.]


    http://adonetaccess2003.blogspot.com http://vb6access2003.blogspot.com http://evry1falls.freevar.com

    Monday, June 18, 2012 8:02 PM
  • Thank u very much.It is helpful .
    Tuesday, July 03, 2012 10:33 AM
  • thank YTN in advance
    Saturday, July 14, 2012 1:40 AM
  • Thank you very much.  It helped me a lot, not only to download CR but also to work properly with CR reports.   Thanks a ton again.
    Monday, July 16, 2012 11:50 AM
  • Thank you very much !
    Monday, July 30, 2012 8:34 AM
  • What version of Crystal are you running?

    I have done this with crystal 2011 and VS2010 but still I can't find the Crystal report viewer on my tool box.

    Wednesday, August 01, 2012 11:06 AM
  • Am using VS2010 Professional and Crystal reports 2011 Enterprise but still even after changing the target Framework, recompiling and all I stiil can't see the crystal report viewer component on my toolbox.
    Wednesday, August 01, 2012 11:10 AM
  • Am using VS2010 Professional and Crystal reports 2011 Enterprise but still even after changing the target Framework, recompiling and all I stiil can't see the crystal report viewer component on my toolbox.
    Try this one :
    http://evry1falls.freevar.com/VBNet/VS2010DataBaseBook/sap_Crystal_Reports_2010.html

    http://adonetaccess2003.blogspot.com http://vb6access2003.blogspot.com http://evry1falls.freevar.com

    Wednesday, August 15, 2012 5:44 PM
  • Many thanks to evry1falls.

    Why MS or the authors of CR make this procedure so damned obscure is anyone's guess.

    Friday, August 31, 2012 9:26 AM
  • Thx buddy,

    You have got the solution. just need to change the .net 4 framework type.


    kaiser Lorson

    Friday, August 31, 2012 8:21 PM
  • I am devlopin hospital system mgmt in ado in v.s 2010 professionl ,i cant user cystral reports in it ,i had also download SAP model den also i have a problem so plzz suggest me any other way of use of cyrstral reports .....naitikgosar99@hotmail.com
    • Proposed as answer by NaitikGosar Wednesday, December 05, 2012 9:30 AM
    • Unproposed as answer by NaitikGosar Wednesday, December 05, 2012 9:30 AM
    Wednesday, December 05, 2012 9:26 AM