Crystal Report Viewer integration with Sharepoint 2010

We had a requirement in our project to view crystal report off an hyper link embedded into sharepoint web part developed using ASP .NET. The report accepted few parameters from the sharepoint page and passed those on to the SQL server to retrive data and
display the data in the report. The challenge was to open the report in the web browser.
The first difficulty was to find the right control to use, the report viewer tool that comes with Visual Studio 2010 is not the right one to use to view Crystal reports, I realised this after spending half a day trying to figure out why wouldn't the report
load. I then downloaded the Crystal Report Viewer for VS 2010 Standard from http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp. After you install this, you get the crystal report viewer in your toolbar. All you have to do is drag and drop it on
to the web part and configure it to use your report. If any one needs help with this let me know I will show how to do that.
So far so good. The biggest challenge was to deploy this on to the production server which took better part of 3 days to figure out how its done. If you deploy the WSP file as it is expecting that the crystal DLLs would be embedded in it then be ready to
expect a rude shock because it isn't. Here are the steps -
1. Deploy the WSP to the sharepoint server
2. Install the crystal dlls used in the project (CrystalDecisions.CrystalReports.Engine.dll, CrystalDecisions.ReportSource.dll, CrystalDecisions.Shared.dll, CrystalDecisions.Web.dll) into the GAC using GacUtil command
3. Add following entries to Web.Config file (C:\inetpub\wwwroot\wss\VirtualDirectories\80\web.congif)
    <SafeControl Assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.CrystalReports.Engine" TypeName="*" Safe="True" SafeAgainstScript="False"
/>
      <SafeControl Assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.ReportSource" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Shared" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TypeName="*" Safe="True" SafeAgainstScript="False" />
4. Install crystal redistributable package which can be downloaded from http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp (
SAP Crystal Reports runtime engine for .NET Framework 4 (64-bit))
5. Copy aspnet_client folder from C:\>inetpub\wwwroot and overwrite it on C:\>inetpub\wwwroot\wss\VirtualDirectories\80
And we are done. Fingers crossed it should all work.
Prasad Matkar MCP, MCTS

Hi Mahesh,
How are you loading the report in your webpart? This is what I have done. I have tried to explain what I am doing in the program comments. Hope this helps. Good luck.
                SPSite mySite = new SPSite(SPContext.Current.Site.Url.ToString());
                SPWeb thisSite = mySite.OpenWeb();
                // Writing to event log after every step in debug mode so that you get to know if there was a failure what step the failure occured after.
                EventLog.WriteEntry("Reports", "Inside PAge Load ", EventLogEntryType.Error);
                SPFolder folder = thisSite.GetFolder("Reports");
                if (folder.Exists)
                    // get collection of Crystal Reports rpt files in the document library
                    SPFileCollection files = folder.Files;
                    // open the rpt file and get the contents
                    SPFile srcfile = files[reportToLaunch];
                    byte[] content = srcfile.OpenBinary();
                    // make a temporary folder
                    DirectoryInfo dir2 = new DirectoryInfo("~/temp");
                    if (!dir2.Exists)
                        dir2.Create();
                    if (File.Exists("~/temp/temp.rpt"))
                        File.Delete("~/temp/temp.rpt");
                    // write the report definition to a temporary file
                    // EventLog.WriteEntry("Reports", "Before Creating temp report ", EventLogEntryType.Error);
                    //EventLog.WriteEntry("Reports", "Before Create ", EventLogEntryType.Error);
                    BinaryWriter bw =
                      new BinaryWriter(File.Open("~/temp/temp.rpt", FileMode.Create));
                    bw.Write(content);
                    bw.Close();
                  //  EventLog.WriteEntry("Reports", "After Create ", EventLogEntryType.Error);
                    // set up the crystal report
                    ReportDocument reportDoc = new ReportDocument();
                    reportDoc.Load("~/temp/temp.rpt");
                    EventLog.WriteEntry("Reports", "after report load ", EventLogEntryType.Error);
                    ConnectionInfo connection = new ConnectionInfo();
                    connection.ServerName = "SQLServerName";
                    connection.DatabaseName = "SQLDatabase";
                    connection.UserID = "sqluser";
                    connection.Password = "sqlpassword";
                    TableLogOnInfo logon = new TableLogOnInfo();
                    logon.ConnectionInfo = connection;
                    reportDoc.SetParameterValue("@Parameter1", parameter1);
                    reportDoc.SetParameterValue("@Parameter2", parameter2);                                               
                    EventLog.WriteEntry("Reports", "after assigning parameters ", EventLogEntryType.Error);
                   foreach (CrystalDecisions.CrystalReports.Engine.Table t in reportDoc.Database.Tables)
                        t.ApplyLogOnInfo(logon);
                    EventLog.WriteEntry("Reports", "after applying login info ", EventLogEntryType.Error);
                    // and the Crystal report Viewer                                    
                    CrystalReportViewer1.ReportSource = reportDoc;
                    EventLog.WriteEntry("Reports", "Before delete ", EventLogEntryType.Error);
                    // clean up
                    File.Delete("~/temp/temp.rpt");
                    EventLog.WriteEntry("Reports", "after delete ", EventLogEntryType.Error);
Prasad Matkar MCP, MCTS

Similar Messages

  • Issue with connection SSRS reportviewer control to SSRS 2012 integrated with SharePoint 2010...

    Hi,
    I have a .NET application that uses SSRS ReportViewer 2012 control to render reports deployed on SSRS 2012 integrated with SharePoint 2010. I am getting error "the report execution '' has expired or not found". The same code works when I connect
    to SSRS 2008 R2 integrated with SharePoint 2007. I investigated the issue and it seems the JavaScript that pings the SSRS server before it expires is missing from rendered HTML.
    Let me know if there is a way to fix this issue.
    following is the code:
    ASPX:
    <formid="form1"runat="server">
    <rsweb:ReportViewerAsyncRendering="true"  
    KeepSessionAlive="true"ID="test"runat="server"></rsweb:ReportViewer>
    <asp:scriptmanagerrunat="server"></asp:scriptmanager>
    </form>
    Code Behind:
    if(!IsPostBack)
    this.Session.Clear();
            test.Reset();
            test.ProcessingMode =
    ProcessingMode.Remote;
            test.KeepSessionAlive =
    true;
            test.ServerReport.ReportServerUrl =
    newSystem.Uri("https://webappname/_vti_bin/reportserver/");
            test.ServerReport.ReportPath =
    https://webappname/RS_Reports/REportEngineTest.rdl;
    ReportServerCredentialscred =
    newReportServerCredentials();
                test.ServerReport.ReportServerCredentials = cred;
    report server credentials:
    publicICredentialsNetworkCredentials
    get
    // Use default identity.
    returnnewNetworkCredential("user",
    "pwd",
    "domain");

    What's the meaning of webappname, are you mean the sharepoint site?
    I think this issue can be caused by the incorrect url. You can refer to the following link:
    http://msdn.microsoft.com/en-us/library/ms154497(v=sql.110).aspx
    Familyabc

  • How to assign a variable value to crystal report viewer formula with CR2008

    Hi ,
    I am using crystal reports 2008 and i am not able to find how to assign  variable value  to crystal report viewer formula.
    In CR 8.5 , i used to have crystalreport1.Formulas(0) = variable1
                                             crystalreport1.Formulas(1) = variable2
    but, i don't find similar kind  in crystal reports 2008.
    How can i achieve the same functionality using crystal reports 2008.
    Thanks in Advance
    Regards,
    Ramnath

    Hi,
    Can i anyone help me out with this.
    I am generating crystal reports in vb6 using CR 8.5 and vb6 and below is the code snippet for the same
    CrystalReport1.Formulas(0) = "PrintTitle= '" & strMyTitle & "'"
    CrystalReport1.Formulas(1) = "FromDate= '" & MskFromDate.Text & "'"
    CrystalReport1.Formulas(2) = "ToDate= '" & MskToDate.Text & "'"
    Please let me know how the same functionality can be achieved in VB.Net using Crsytal reports 2008
    Any code snippet would be of great Help.
    Thanks in Adnvance.
    Ramnath

  • EP7.31 integration with Sharepoint 2010

    Hi ,
    we are integrating EP 7.31 with Sharepoint 2010 server, we can able to see in HTTP header in MYSSO2 ticket cookie,but Sharepoint application can't able to parse the ticket,
    Here is the Log :
    [Thr 10788]     Initializing SSF Library Version
    [Thr 10788]     SAPCRYPTOLIB  5.5.5C pl36  (Jul  3 2013) MT,[aesni],NB
    [Thr 10788] Leave function MySapInitialize with rc = 0.
    [Thr 10788] Thu Feb 27 07:39:05 2014
    [Thr 10788] Ticket is 橁硅䑍杁䅁眹㍢お坙㙷㍚畖䡤牖塙䥏䉁楎塙灎㉙ㅆ䝤汨湢灒㉙う坡甹...
    [Thr 10788] DecodeB64Len returns 0. iDecLength=251
    [Thr 10788] *** ERROR => Ticket has probably not yet been parsed. [ssoxxext.c   2494]
    Thanks,
    Balaji

    Hi,
    No, Project Server 2013 requires SharePoint 2013.
    See reference below:
    https://technet.microsoft.com/en-us/library/ee683978.aspx
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Yammer Integration with SharePoint 2010

    Hello Team
    We integrated Yammer with SharePoint 2010 and everything were working properly, since we updated embeded code with latest yammer its not working properly-
    http://success.yammer.com/integrations/yammer-embed/ 
    Following issues are occured-
    • In the new yammer feed, I couldn’t find a way to add an attachment or photo to the post. This is a vital component to the functionality of the feed
    • In the previous version the feed also had tabbed areas to show different Yammer Areas: ‘My Feed’, ‘Private Messages’, ‘Notifications’, and ‘More >’. Is there any way to keep this functionality.
    We also wanted to integrate SSO with our FBA SharePoint 2010 site. But could not found any good article so far. Is there any option by which we can do SSO and all above functionlaity. 
    Thanks Ranveer Katiyar

    Hi,
    According to your description, my understanding is that when you add the Yammer feeds app to SharePoint page, it occurs "The
    page or app using unsupported version of yammer platform" error.
    This  maybe related to the Yammer API version has been updated, the solution is to update the Yammer app in site contents.
    Here is a similiar thread for your reference:
    Yammer App for SharePoint – unsupported version
    Here is a detailed useful article for your reference:
    "This page or app is using an unsupported version of the Yammer platform" error message when you use the Yammer App for SharePoint
    If the issue still exists, I suggest you can check the ULS log error message for more detailed information. By default, the ULS log for SharePoint 2010 is located at the path:
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • BI 4.1 SP2 IOMS integration with Sharepoint 2010

    I'm trying to configure SAP BI 4.1 SP2 with sharepoint 2010. After installation of BI 4.1 SP2 IOMS with Sharepoint 2010 i get the error message while trying to open a site page on Sharepoint browser.
    An unexpected error has occurred.
    Troubleshoot issues with Microsoft SharePoint Foundation.
    Correlation ID: bc9d814d-7f14-407a-9986-b6096f5fc799
    Date and Time: 6/25/2014 4:00:54 PM
    Any help in configuring BI 4.1 SP2 with sharepoint will be really helpfull.
    Thanks in Advance.
    Krishna

    Please share more details about the error bc9d814d-7f14-407a-9986-b6096f5fc799 from ULS logs
    If this helped you resolve your issue, please mark it Answered

  • Electronic Data Interchange (EDI) software integration with SharePoint 2010

    Is possible to integrate EDI (Electronic Data Interchange ) softwares with SharePoint 2010?
    Please let me know if anyone has done this? If yes,let me know which EDI software is used?
    Marulasiddappa SB (Swamy)

    Well I did something similar.... but I received the data, Transformed it XML using BizTalk and Finally from BizTalk I send it to Sharepoint. if you wants a document on how to do it, let me know
    Abraham Forchue Frias MCITP:Database Administrator 2008 -- Santo Domingo, Republica Dominicana

  • SSRS reports integration with sharepoint 2010

    Hi Friends,
    Any one can u pls tell me what are the  prerequisites for integrating SSRS Reports with Sharepoint.
    This is the first time im going to integrate SSRS reports with Sharepoint. Any one pls help me on this.
    Thanks in advance.
    Regards,
    LuckyAbdul

    Hi LuckyAbdul,
    We can integrate Microsoft SQL Server Reporting Services with SharePoint Foundation 2010 or SharePoint Server 2010 by configuring a report server to run in SharePoint integrated mode. There are some prerequisites for integrating SSRS Reports with SharePoint,
    including Report server requirement, SharePoint Products and Technology requirements and Database server requirements in SQL 2008 R2.
    The Reporting Services Configuration Manager is no longer required or supported to configure and administer Reporting Services SharePoint mode in SQL 2012. Use SharePoint Central Administration to configure a report server in SharePoint mode.
    The configuration steps for this version you need to do in Reporting Services Configuration Manager and In Central Administration, please see the following articles:
    2008 R2:
    http://technet.microsoft.com/en-us/library/bb283190(v=sql.105).aspx
    http://sharepointtaskmaster.blogspot.in/2010/11/intergration-reporting-service-with.html
    2012:
    http://technet.microsoft.com/en-us/library/47efa72e-1735-4387-8485-f8994fb08c8c
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Dyanmics CRM integrated with sharepoint 2010 foundation - new created account folder can not trigger sharepoint workflow.

    I integrated MS CRM 2013 with SharePoint foundation 2010 for document management. integration works.
    Now I need to create several subfolders and set proper permission on each folder. So, I created a workflow to do it automatically. It works when I manually create a new folder under SharePoint account, or I manually run it for an account folder. Thus, sharepoint
    workflow works as I expected.
    However, when I access Account's document from CRM (first time), sharepoint would create an folder for this account. In this case, the workflow doesn't work. and it show error: "Failed on Start(retrying)".
    Anyone has experience on similar issues or have clue how to trace this error?

    Hi Justin,
    From your description, the issue might be related to the workflow created by visual studio.
    Could you please try to locate error message in workflow report or ULS log:
    https://technet.microsoft.com/en-in/library/cc298927%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
    also debug the workflow per:
    http://blogs.msdn.com/b/philloth/archive/2009/01/19/how-to-debug-a-workflow-with-visual-studio.aspx
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Sql server 2008 r2 reportserver integration with sharepoint 2010 datasource credential

    hello,
    I am using sharepoint 2010 and sql server 2008 r2 and integrated in sharepoint integration mode and i am using windows authentication ,not keberos ,so i deletd negotiate in authentication tag in rssharepoint.config file,but when i tried to create data source
    i am getting credential error and when windows credential is used it is getting connected.
    please help.
    thanks

    Hi Krishnakumar_DeV,
    Based on the current description, I understand that you should use the Windows NTLM authentication and delete the Negotiatein in authentication tag from RSReportServer.config which is located in the folder “C:\Program Files\Common Files\Microsoft Shared\Web
    Server Extensions\XX\WebServices\Reporting”. You can use a local account or domain account to connect report server, while there is credential error message when creating data source, right?
    To narrow down the issue, I want to confirm some information below:
    1. To connect to remote data source, we can specify the following credentials’ ways:
    •Prompt the user for credentials
    •Store credentials
    •Use Windows integrated security
    •Use no credentials
     Which credential way is you using and what’s the detailed error message?
    2. How do you create the data source?
    If I have any misunderstanding, please feel free to contact me.
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • P6r8.0 Integration with SharePoint 2010: P6WebAccessLibraryTemplate2010.stp

    Hi all,
    Pls. guide me where can I find this template P6WebAccessLibraryTemplate2010.stp
    I am following Oracle Document for Integration of P6 EPPM r8.0 to MS SharePoint 2010.
    The \Tools\SharePoint Connector folder of the P6 EPPM contains P6WebAccessLibraryTemplate.stp which is for SP-2007 version.
    Regards,
    Shivank

    Sharepoint 2010 is not supported with P6 EPPM R8.0.
    Review the tested configuration at http://www.oracle.com/technetwork/documentation/primavera-093289.html

  • Live meeting integration with Sharepoint 2010

    Hi all,
          We have the following requirement:
          a. User should be able to start live meeting from Sharepoint 2010 portal (Note: OCS 2007 R2 is part of the environment, Users online presence is shown in Portal).
          b. Users should be automatically added to live meeting.
          Any information for this integration is highly appreciated.
    Thanks
    Prasad

    Hi Prasad,
    Based on my knowledge, there is no OOB web part which you can use it to start live meeting from SharePoint 2010 portal. You need to develop a custom web part to achieve
    your goal.
    For more information about SharePoint integrate with OCS, you can refer to the following article:
    http://social.microsoft.com/Forums/en/communicationsserversetup/thread/3c4050f4-5c34-4fc2-a9ca-dc6b4f60ba17
    In addition, you can try the following method:
    http://social.technet.microsoft.com/Forums/en/ocsplanningdeployment/thread/b68f064b-3442-4f94-86d6-a2652ca6b951
    Hope this helps.
    Rock Wang
    Regards, Rock Wang Microsoft Online Community Support

  • Communicator integration with SharePoint 2010 site.

    Hi,
         Recently, we have integrated Cisco jabber with your SharePoint sites to know the presence working of the users.
    But it is not showing the presence working of the users. We have tried starting Full user profile synchronization.
    Only few users working is getting presented,& most of the users presence is not available.
    Please let me know any resolution for this asap....
    Thanks in Advance.
    Badri

    We have had exactly the same issue. Since the integration is OS dependent, there are registry keys that need to be correctly set up in order for Jabber to integrate with Sharepoint. You could create a script that corrects this but it will be a losing battle
    since users will install Lync or Skype or another app that hijacks the reg entries.
    You should go for
    Jabber SDK for Web with SharePoint. It's just JavaScripts that interface the CUCM, so they execute in the browser.

  • Does Seagate Crystal Report Be Integrated with Java Swing

    Hello All
    We are developing java programs for quiet some time now, But what we are trying to do now is can we do the things what VB can do , Thatis the reports from the Database Query can be formatted into Crystal reports
    I use Forte For java Sun One Studio 4 For developing Swing Applicatioon
    If Any of U can give me idea, ie a report not in HTML format But Crystal Report, PLease Le me know
    Regds

    Are you developing an Applet or a standalone application?
    The way I'd handle this is to install the Crystal Reports web server and then call these reports from the web simply by specifying an appropriate URL.
    By the way: the Crytsal reports server also handles report requests in Netscape with JAVA (IE with ActiveX)
    so perhaps this is the right corner to look for answers
    Regards

  • Acrobat X integration with Sharepoint 2010 previous versions

    We noticed a weird issue today which I hope someone can help. Im not finding much on google.
    We have a document library with versioning enabled. When a user opens a PDF file they can view the most recent version, but when they attempt to look at a previous version thay get an error that says:
    "The URL you have provided cannot be reached. Please verify that the URL is correct and the network location is reachable."
    This only happens on older versions of a document.
    Older versions of acrobat can open these revisions without a problem.
    Also, if I disable the Adobe/SharePoint IE addon the files are accessible but that rules out the integration within SP.
    Thanks a ton!

    Hi,
    I was going to move this to a more appropriate forum but I'm not clear on where to try. Can you repost this under the Reader forum as well as on http://answers.acrobatusers.com/?
    thanks,
    Ben

Maybe you are looking for

  • Create Type as Object not working in linux oracle 11g

    Pleae refer to the following simple create type as object statement. CREATE OR REPLACE TYPE EC_VIEWABLETYPES as object ( CASE_TYPE_ID NUMBER) It is working in oracle 11g and windows server 2008 environment. But it is not working in oracle 11g with li

  • How to retrieve data from the serial port and decode it each 2 bytes is a long variable and 1 frame is about 6 bytes

    I send the frame by a microcontroller ( 8bits) the fram contains 6 bytes, 2bytes conform a long variable, I want to decode the frame and make operations with these long variables and then plot them

  • Restore data in fact table

    Hi All Can you please let me know whether the data in the fact table can be moved from Dev to QA? If yes, how? Many Thanks! Regards, Afreen

  • 'unit STD not created in language RO'

    Hi there everyone system outputs error message: 'unit STD not created in language RO' while loading the cube YSD_C03 (transaction SM37- in job log). (The loding process ends with error.) Why is that? the same message or the like appears in transactio

  • 'Unkn error in App Store

    My partner and I share a mac book pro, but there's a conflict when I login to use my itunes account to update my software with App Store – I get an 'Unknow error'. We both have separate accountswith different purchases – very frustrating – any soluti