Crystal Reports Extension methods library

I am making public some small library of extension methods for ReportDocument class in order to help simplify some operations of Report manipulation.
You can find more info about the library and download the code [from this location|http://blog.dragonsoft.us/2009/03/03/crystal-reports-extension-methods-library/]

Hello Serguei;
Thank you very much for sharing this valuable information. A potential huge time saver to any developer. Couple of us have been wanting to work on something like this for a while now, but time is always in short supply.
A bit of advice to any developer working with Serguei's product / solution. If you find a problem, see if you can duplicate the issue out of Serguei's solution. This would be the first step any technical support should take to troubleshoot an issue. Keep It Simple :).
Have a great day,
Ludek

Similar Messages

  • Crystal reports, Push method using a stored Procedure

    Could someone 'PLEASE' help!  I am trying to create and populate a Crystal Report via a stored procedure in a vb.net  asp.net web site..  I have created a dataset1.xsd and I have dragged my Stored_Proc onto the dataset.  I then use the 'DataBase Expert' and select ADO.net Datasets and select my storedProcedure from dataset1 as my selected dataset.  After that I just drag the fields onto my report.  Then via ado.net shown below I populate the dataset.  I can loop through the dataset and it does get populated correctly from the stored_proc.  yet when the report pops up in a web browser the fields are empty.  I have found that this method works fine if I drag an actual table from my database onto my dataset, but I need to populate the dataset via joins and a parameter. 
    Could someone please tell me what I'm missing!
    ***********Code Sample**************
    Dim conStr As String = System.Configuration.ConfigurationManager.AppSettings("adoConnString")
            Dim sqlConnection As New SqlConnection(conStr)
            Dim Command As SqlCommand = New SqlCommand()
            Command.Connection = sqlConnection
            Command.CommandText = "usp_GetInquiryByID"
            Command.CommandType = CommandType.StoredProcedure
            Dim Parameter As SqlParameter = New SqlParameter("@intInqID", 108)
            Parameter.Direction = ParameterDirection.Input
            Parameter.DbType = DbType.Int16
            Command.Parameters.Add(Parameter)
            Dim Adapter As SqlDataAdapter = New SqlDataAdapter(Command)
            Dim ds As New DataSet1
            Adapter.Fill(ds, "Inquirys")
            CrystalReportSource1.ReportDocument.SetDataSource(ds)
            CrystalReportSource1.DataBind()
    Duckkiller53

    Hello Scott,
    It'll be difficult to migrate CR 10 reports to SQL Server 2005, since it's not a supported combination:
    [http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr10_supported_platforms.pdf|http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr10_supported_platforms.pdf]
    Also, CR 10 will be going out of support at the end of the year, so the supported platform list will not be expanded. 
    It's not a recommended combination for production use.
    Sincerely,
    Ted Ueda

  • Crystal Report .printout method fails intermittently with no trace

    Hi,
    We have crystal 11 Developer edition installed version 11.0.0.895.
    At client side we are facing abrupt failure while calling the .printout() method on crystal object when accessing from VB 6.0.This doesn't happen all the time , the same report prints fines after couple of attempts.
    I tried putting the errorhandlers but in vain; the control comes out mentioning "method ~ of ~ failed" at application level and the last trace that I am getting is the one just prior to .printout method call.
    We have object cleaning in place in the VB project which is trying to call this object.
    Printers that we are trying to use is Xerox 4015
    Any help would be greatly appreciated.
    Thanks,
    Rajvinder

    Stratos,
    Thanks for inputs.Somehow I am not able to get the content of thei link sent by you .It throws me certificate popup and once accepted it says need user Authentication.
    Is there some specific login credentials that I need to use in order to get the patch?
    Appreciate your response in this regard.
    Thanks
    Rajvinder S.

  • Having trouble opening Crystal Report files from a document library

    I am trying to open Crystal Report .rpt files from a document library in either the native, client Crystal Reports software or in Crystal Reports Viewer. When I add the Crystal Report files to a document library and attempt to open them SharePoint displays
    a prompt asking me to save the file locally instead of opening the file. I have done a lot of research online and found several sites discussing similar scenarios, however, I have not been able to get these solutions to work. Here is a short list of sites
    I have referenced for possible solutions:
    http://naadydev.blogspot.com/2013/03/crystal-report-viewer-sharepoint-2010.html?showComment=1383339860122
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/52aabf2d-10dc-424c-bd50-124fc972a9b9/crystal-report-viewer-integration-with-sharepoint-2010?forum=sharepointgeneralprevious
    http://www.codeproject.com/Articles/42731/Crystal-Reports-WebPart-for-SharePoint
    Here are the steps I have done to try to get the .rpt files to open:
    Added the Crystal Report extension .rpt as a MIME type
    Installed the Visual Studio 2012 Crystal Reports Viewer toolbar
    Installed the 64-bit Crystal Reports runtime
    I have also created a solution file based off the Code Project site which partially works, but not quite right. In this project I have created a document library called "Crystal Reports rpt Files" and deployed the solution file to a site. When
    I open the Web Part Maintenance Toolbar I can see the selected .rpt file in the drop-down, but no Crystal Report file is displayed on the page itself.
    I am not sure what I am doing wrong. Does anyone have experience working with Crystal Reports and SharePoint 2013 (or earlier versions) that could lend some advice?
    Thank you,
    Alex

    We are having the exact same issue, has anyone resolved this yet?

  • Integration of JDeveloper 10G (UIX) with Crystal Reports 10

    My problem here is a conflict between the Oracle xml parser library (xmlparserv2.jar ) and the Crystal Reports 10 xml parser library (xmlParserAPIs.jar).
    The Oracle library is included in my project library list by default. If I add in the Crystal Reports jar file, this seems to cover up the Oracle library and my application failes to launch with a missing class file.
    (uix: java.lang.ClassCastException: oracle.xml.jaxp.JXSAXParserFactory)
    If I leave out the Crystal Reports library, then my JSP that launches the report I want to see fails on a missing class file (document.class).
    Is there a way for these libraries to co-exist in a UIX application?
    I did manage to get my integration to work in a non-UIX test using the Oracle HR sample database.
    Thanks for taking a look at this.
    Best Regards, Steve

    To answer my own question. I did not include the Crystal Reports xml parser library as part of my uix project. This allows the uix application to launch and work successfully.
    I then added all of the Crystal Reports libraries to the oc4j preferences under current workspace.
    This seems to somehow get around the conflict and supplies the needed libraries for the methods invoked in my jsp page.
    Since this jsp page is getting called from a UIX page, I have no idea how this change makes these libraries available without a conflict. If someone can explain it, I would appreciate it.
    Thanks very much, Steve

  • Crystal Reports Visual Studio 2010 SP2 Fixed issues

    Hi All,
    Here is the list with fixed issues in Crystal Reports Visual Studio 2010 SP2
    http://www.crystaladvice.com/crystalreports/crystal-reports-2010-sp2
    The following list with issues is fixed:
    1566763 - CRVS2010 WPF Viewer error; "System.NullReferenceException was unhandled" PageControl.OnMouseMove
    1540637 - Error: External component has thrown an exception. Launching the Database Expert in the embedded Crystal Reports designer in Visual Studio
    1544675 - Error; 'Object reference not set to an instance of an object' when using the CR WPF viewer in VS2010
    1578823 - CRVS2010; "Load Report Failed" error when Report is open in any full version of the CR Designer
    1638191 - Using RTL language (Arabic) the CR viewer Group Tree Panel does not display RTL
    1631283 - Error; 'Failed to load database information' when reporting off of file system data
    1553469 - How to enable Database logging in Crystal Reports for Visual Studio 2010
    1299185 - Error: Operation not yet implemented or Failed to Export, when exporting a Crystal Reports to Text format
    1451960 - Null or empty values are not surrounded with delimiter when exported to CSV format
    1659185 - The special Crystal Reports field, 'File Name and Path' shows temp path and temp name when viewing a report
    1452648 - Dynamic Cascading Parameter prompts two times when using the Crystal Reports in VS .NET
    1580338 - When refreshing a report that contains a linked subreport report takes long time to execute
    1659111 - GCHandle left in memory for each open and close of a Crystal Report in VS2010 application
    1356672 - Crystal Reports special field "File Path and Name" displays incorrect information in a Visual Studio .NET application
    1593658 - Impersonation of database Log On credentials failure in report generation when set at runtime in a .NET application
    1661239 - Summary fields are converted to String fields
    1661276 - Using the Crystal Reports SetTableLocation method in VS .NET causes long report processing delays
    1661200 - Not able to copy text from report objects using the Crystal Reports WinForm viewer for VS .NET
    1631722 - Date function in a Selection Formula is removed when running a report in a VS .NET application
    1525822 - Exception "Object reference not set to an instance of an object." thrown when clicking on Parameter Panel button in Crystal Report .NET Windows Form Viewer
    1603082 - Cross-tab background colors not retained when exporting a report to PDF format
    1603154 - Shared variable display the incorrect value in Crystal Reports
    1427747 - Why does a CR .NET SDK web app have problems running on IIS 7 in integrated pipeline mode?
    1545536 - Alignment set to Justify causes broken underline
    Source: Resolved Issues in Service Pack 2 for Crystal Reports for Visual Studio 2010
    With kind regards,
    Pieter Jong
    Crystal Advice
    http://www.crystaladvice.com

    Many thanks for the link Pieter.
    I recently created a wiki that lists all of the fixes, their tracking numbers, associated Kbase numbers, Kbase titles and links to the kbases:
    http://wiki.sdn.sap.com/wiki/x/tgK3Dw
    It's 90% complete. I think I have a few Kbases to do to complete it.
    Now that I think about it, I'll also add the link to the [sticky thread|SP 2 for Crystal Reports for Visual Studio 2010 released!; re. SP2 release.
    - Ludek

  • Logon Failed using Crystal Report XI

    I wrote a VB 6 app that has the CRViewer and calls (.rpt's). The ".rpt's" use a MS Access 2003 database. This database DOES NOT have any security in the way of passwords. This application runs on a "stand-alone" system NO SERVER IS INVOLVED.
    The program and Crystal Reports work fine on my system. About a week ago, I tried to install Crystal Reports Release 2. I had a lot of problems. I deleted it and re-installed CR from my install cd's. Ever since then, I have had the following problem:
    I use MS Package and Deployment system to create the "Setup and Install" package. Ever since the above problem with Release 2, when I install and run the package on a different system, when I try to access the reports, I am getting a "Logon Failed" error message. PRIOR to trying to install Release 2, I never had this error message. I have no idea what is causing the problem.
    I even deleted and recreated the database--same problem exist.
    I have a very small scale-down version of this app. Is there any way I can send a "zip" file to you?
    Please, I have a deadline on this project. I need some serious help ASAP.
    In an effort to help resolve this problem, here is code from the scaled-down version: Prior to running this code, ReportPath = App.Path and ReportName = "Report1.rpt"
    This code is from my CRVIEWER form:
    Private Sub Form_Activate()
    Set craxreport = craxapp.OpenReport(ReportPath & "\" & ReportName)
        If ReportName = "Report1.rpt" Then
        End If
    DoReport:
        DoEvents
    ' ==============================================================================
        Screen.MousePointer = vbHourglass
        crviewer1.Refresh
        crviewer1.Zoom "100"
        While crviewer1.IsBusy
            DoEvents
        Wend
        crviewer1.ReportSource = craxreport
        crviewer1.Refresh
        crviewer1.ViewReport
        crviewer1.Refresh
        Set craxreport = Nothing
        Screen.MousePointer = vbDefault
    End Sub
    Private Sub Form_Load()
    Set craxapp = CreateObject("Crystalruntime.application.11")
    End Sub
    Private Sub Form_Resize()
    Me.Height = Screen.Height
    Me.Width = Screen.Width
    Me.Top = 0
    Me.Left = 0
    crviewer1.Top = 0
    crviewer1.Height = Me.ScaleHeight
    crviewer1.Width = Me.ScaleWidth
    frmCRPrint.Refresh
    End Sub
    This code is the "Connection" string:
    Public ReportPath As String
    Public craxapp As New CRAXDRT.Application
    Public craxreport As CRAXDRT.Report
    Public CRXDatabaseField As CRAXDRT.DatabaseFieldDefinition
    Public ReportName As String
    Public pconSports As ADODB.Connection
    Public Sub OpenConnections()
    Set pconSports = New ADODB.Connection
            pconSports.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\Sports.mdb" & ";Persist Security Info=False"
            ReportPath = App.Path
        pconSports.Mode = adModeReadWrite
        pconSports.Open

    OK, a few details to go over.
    You do not need all of the below references:
    Crystal ActiveX Report Viewer Library 11.0
    Crystal Reports ActiveX Designer Design and Runtime Library 11.0
    Crystal Reports ActiveX Designer Library 11.0
    Crystal Reports ActiveX Designer Run Time Library 11.0
    As long as you are not using report creation APIs, you only need
    Crystal ActiveX Report Viewer Library 11.0
    Crystal Reports ActiveX Designer Run Time Library 11.0
    Which means you'd be using the craxdrt.dll (Dim myApp as New Craxdrt.Application), and the MSM files you need would be; crystalreports11_RDC_Runtime.msm, crystalreports11_RDC_license.msm (you need to add the keycode to this) and crystalreports11_RDC_reportEngine.msm.
    If you are using report creation APIs, you do not need Crystal Reports ActiveX Designer Run Time Library 11.0.
    Re. creation of deployment package:
    I reloaded CR XI on my Development System Build 11.0.0.895
    I installed CR XI on my other PC(Test) Build 11.0.0.895
    During the creation of the Install Package using MS Package and Deployment System
    I do not believe the MS Package and Deployment Wizard that came with VB 6 can handle MSM files(?). To use MS files, you have to use something like MS Visual Installer, InstallShield, Wise, etc.
    Ludek
    Edited by: Ludek Uher on Oct 23, 2008 6:30 AM

  • Share database connection among multiple crystal reports using PULL model

    Hi All,
    Is there any way to share database connection using crystal report PULL method ? I m using crystal report 2011 with visual c# (VS2010). Reports get connected to database server using Oracle Native client drivers.
    Thanks,
    Gaurav

    In crystal report 8.5, we have used "PESetNthTableLogonInfo" (after PELogOnServer got deprecated) which shares the connection among reports. Is there any way to implement the same functionality in crystal reports.
    Thanks,
    Gaurav

  • Crystal Reports versions and DSR files

    Hi,
    I am working with an ancient VB6 application that has 25 or so reports attached to it.  These files are .dsr files.  I am having a problem opening them in the VB6 IDE and when I investigate (through talking to people here or researching on line - via CodeGuru,VBForums,StackOverflow etc.), I get conflicting reports of what I should be looking for and doing.
    My question to anyone who can answer me quasi-intelligently is this:  Has Crystal Reports, in ANY of its previous versions, ever produced a DSR file as a report.  I know the versions since v8, I think, use the .RPT suffix.  I have been searching and talking to people and some say no, some say yes.  I figured someone here would definitively know.  I have tried to convert one of the dsr files to a Crystal Report file using VS 2008 (assuming it was Data Report file), but received the error that the file was not a Data Report file.
    If you need any more information I will be glad to fill in any blanks necessary....
    For the current application, the following is true:
    XP Platform
    VB6
    Crystal Reports 8.5 installed, but I have Crystal Reports 7 dlls (Library and ActiveX Designer Runtime) available but not the full application.
    Anything you can tell me would be greatly appreciated....
    Thank you,
    Gene Bonfiglo
    Software Engineer

    Hi Don,
    Sorry to be so vague.  I think my newbie-ness is shining through a bit.
    I think the closest scenario is the third one.  I am trying to resurrect this "Jurassic:" application in order to see what it does, so that it can be rewritten.  The problem is, or was, that it was not compiling and the problem was seen as Crystal Reports.  I removed Crystal from the equation and it turns out Crystal was not the only problem.  I, howevver, fixed the other issues and have gone back to the Crystal issue.
    I cannot effectively use anything associated with CR7.  It causes errors and crashes the app and generally that's not acceptable.  Since I am working remotely, I am waiting to hear back from the server guy who set this up to see if he installed or even has the 8.5 Developer edition (I am fairly sure he did not install it even if he had it).  Assuming that it is or gets installed, I will implement it in the app and upgrade the DSR files as you suggested.
    For 8.5 I currently have the following dlls:
    Crystal Reports 8.5 ActiveX Designer Run Time Library (craxdrt.dll)
    Crystal Reports 8.5 Standard Wizard Component (crystalwizard.dll)
    Crystal Reports Viewer 8.5 (crviewer.dll)
    These have been included in my application, but at the present time I cannot run my application with an older DSR file because the application shuts down with an "Unexpected Error - 50057"
    If I may, can I leave this open for now, and get back to you when I have more results?  I have a feeling that I am missing some things (ie Developer edition and associated support files) and that I need to go hunting for them.
    I appreciate the information you have given and would appreciate anything further you can tell me, which I understand due to the age of this app may be very little.
    Thank you once again, Don,
    Gene

  • Using Crystal Reports in a C# com library

    Hi,
    we use CR (with the old RDC activeX) for one of our native C++ applications. Since RDC is no longer supported we try to migrate to CR XI V4.
    We've created a C# com library that hosts the report viewer control and call library functions via IDispatch methods.
    When trying to load a report we get an C++ MalformedURLException
    Testcode:
    ReportDocument rd = new ReportDocument();
    rd.Load(@"test.rpt"); // Throws exception
    I was able to trace back this to a call into xerces-c_2_1_0.dll:
    void XMLURL::parse(const XMLCh* const urlText)
        // Simplify things by checking for the psycho scenarios first
        if (!*urlText)
            ThrowXML(MalformedURLException, XMLExcepts::URL_NoProtocolPresent);
        //  The first thing we will do is to check for a file name, so that
        //  we don't waste time thinking its a URL. If its in the form x:\
        //  or x:/ and x is an ASCII letter, then assume that's the deal.
        if (((*urlText >= chLatin_A) && (*urlText <= chLatin_Z))
        ||  ((*urlText >= chLatin_a) && (*urlText <= chLatin_z)))
            if (*(urlText + 1) == chColon)
                if ((*(urlText + 2) == chForwardSlash)
                ||  (*(urlText + 2) == chBackSlash))
                    ThrowXML(MalformedURLException, XMLExcepts::URL_NoProtocolPresent);
    urlText points to "C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\java\CRConfig.xml". This file doesn't exist and is invalid in above context.
    The above sample works fine when using in a standard C# application.
    Any ideas ?
    Gunnar

    Daniel,
    Thank you so much for your answer. It was very helpful. In the end, it didn't work but it helped me figure out what was happening. I use a different form for the reports and I had it coded in the form which report to use. I created a second form for the second crystal and then I used an if statement to choose the form and it worked like a charm.
    Thanks so much again!

  • Error:When adding RDC runtime library (Crystal report XI R2) to Lotus notes

    Background : We have reporting feature implemented in one of lotus notes application using crystal reports 6 (OCX) and as Crystal report is going to be upgraded to CR XI version in my organisation, we need to implement the same using RDC component available in crystal XI . we have installed Crytal report XI R2 - SP 6 version for testing the integration.
    we are  referring a document available on SAP web site(attached below) that illustrates the steps required to integrate the Crystal Reports®  Report Designer Component into a Lotus® Dominou2122 application.  http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/509b02de-a81e-2b10-f598-822b6d6f2024?quicklink=index&overridelayout=true
    Steps which have been outlined for adding runtime library in lotus domino application is shown below:-
    1. In Domino Designer, add a Form to the application.
    2. In the programmeru2019s pane, go to the (Declarations) handler of the Form and enter:
       Dim App As Variant,    Dim Rep As Variant
    3. Select Create | Object and select the u201CControlu201D radio button in the u201CCreate Objectu201D dialog box that comes up. From the list of controls, select u201CCrystal Report Viewer Control.u201D This adds the control to the Form.
    4. Click on the control and select Edit | Properties. In the u201CAppletu201D properties dialog, select the u201CSize object to fit windowu201D radio button and then close the properties dialog.
    We are getting an error message while trying to add 'Crystal Report Viewer Control' control (illustated in Step 3 above) in the lotus notes form . Error message which we get is 'An error has occured while processing a request on an object'.
    Alternatively , we created the object of Crystal Report Viewer on lotus notes form by adding viewer object file (Crviewer.dll) from the file system  after selecting the u201CObject from a fileu201D radio button in the u201CCreate Objectu201D dialog box and added following code in the postopen event of lotus notes form .
    Set m_Viewer = Source.GetObject("Crystal Report Viewer Control")
    Set App = CreateObject("CrystalRuntime.Application")
    Set Rep = App.OpenReport(u201Cc:lotus
    otes
    ep.rptu201D)
    Set m_Viewer.ReportSource = Rep
    Again, when lotus notes form is opened , it gives error 'Variant does not contain object' at 'Set m_Viewer.ReportSource = Rep' .
    Can any one suggest us any workaround or if iit is not possible in CR XI R2 into a Lotus® Dominou2122 application. Also, can any one provide us sample code if CR 2008 version can be integatred with lotus notes.

    I believe, Lotus was never a "supported" development platform, though it did work - at one time or another. Eventually it did not and you are at that point. I think it was CR 10 where it started to be impossible to add the viewer to Lotus. This was never fixed and we never did find out if this was a Lotus thing or a CR thing.
    Re. CR 2008 and Lotus. The RDC has been retired in CR 2008, so no luck there either for you. The only SDKs available in CR 2008 are for .NET and Java.
    Ludek

  • Crystal report Using Push Method (OutOfMemoryException)

    Hello,
    i am developping reports using Sap Crystal reports , i am using the push method ( which uses a DataSet for binding informations with the reports) , and i want to display a large data, but i m getting an OutOfMemoryException, because of using the dataset,
    is there any solution to solve this problem?

    This is my code, and i think it's correct, i was using this code for previous versions of crystal report (cr10) and it worked fine,
    now i am using crystal report v 13 sp1 with visual studio 2010,
    When i used the Data set , the next page and zoom worked fine, but with stored procedure it doesn't work,
    Note: when i open the Tree of Data on the left,  then click on the next page or the zoom, it become funtional, it's very weird,
            protected void Page_Init(object sender, EventArgs e)
                if (!IsPostBack)
                    reportDocument = (ReportDocument)this.Page.Session["_reportDocument"];
                    if (reportDocument != null)
                            string rptFile = reportDocument.FileName.Split('
    ', '/').Last();
                            LoadReportRessource(reportDocument);
                                TableLogOnInfo log = new TableLogOnInfo();
                                ConnectionStringSettings conn = WebConfigurationManager.ConnectionStrings[0]; //la premiere connectionstring
                                SqlConnectionStringBuilder SConn = new SqlConnectionStringBuilder(conn.ConnectionString);
                                log.ConnectionInfo.ServerName = SConn.DataSource;
                                log.ConnectionInfo.DatabaseName = SConn.InitialCatalog;
                                log.ConnectionInfo.UserID = SConn.UserID;
                                log.ConnectionInfo.Password = SConn.Password;
                                log.ConnectionInfo.Type = ConnectionInfoType.SQL;
                                for (int i = 0; i < reportDocument.Database.Tables.Count; i++)
                                    reportDocument.Database.Tables<i>.ApplyLogOnInfo(log);
                                for (int i = 0; i < CrystalReportViewer1.LogOnInfo.Count; i++)
                                    CrystalReportViewer1.LogOnInfo<i>.ConnectionInfo = log.ConnectionInfo;
                            CrystalReportViewer1.ParameterFieldInfo = (ParameterFields)this.Page.Session["_paramFields"];
                            CrystalReportViewer1.ReportSource = reportDocument;
                            CrystalReportViewer1.DataBind();
                            CrystalReportViewer1.ShowFirstPage();
                else
                    CrystalReportViewer1.ReportSource = (ReportDocument)this.Page.Session [ "_reportDocument" ] ;

  • How to feed data into crystal reporte with "SQLQuery" method in c#?

    Hi there,
    I've an old app that was written in VB with some crystal reports from Crystal Report 7.
    Now I need to upgrade this old app into c# with newer version of Crystal Report, so we decide to go for VS2010.
    I can open the report template in the VS2010 without any problems.
    But I'm running into some issue here:
    the old report has multiple tables from a SQL db as the connection. Each table has a PK to each other.
    and the VB code feed the data like below:
    MainForm.CrystalReport(1).SQLQuery = SQLString
    I couldn't find any reference for "SQLQuery" method in the C#, is there such command exist?
    Thank you in advanced,

    Thank you Ludek. Looking into the info you provided.

  • Library of Crystal Reports (not Layouts) for 8.8

    Hello All,
    Is there a library of sample CRystal Reports for SBO 8.8.
    I don't mean Layouts.
    I mean Crystal Reports for typical business reports like Ageing, Stock LIstings, SAles Analysis etc..

    Hi Christian
    Here is the latest version for you with 64 Bit compatibility 2.0.0.7
    [Crystal Add-On with 64 Bit Compatibility|https://sapmats-de.sap-ag.de/download/download.cgi?id=0G5XHIZJQPZGO012YOH7W95H7M7SA4UOHHZZ28HQZGMOO5OH8R]

  • Crystal Report Can nt Load System.Web.Extensions Version=2.0.0.0.

    I have an application that I created in ASP.NET 1.1 that I subsequently upgraded to VS2008 - ASP.NET 2.0. Whenever I attempt to run the report in the application, I get the following error
    Could not load file or assembly 'System.Web.Extensions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    I have installed the Crystal Reports Runtime but to no avail. I would appreciate if someone could give me some help. Below is the source of the form containing the viewer
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="frmCompletedApplication.aspx.cs" Inherits="JobApplication.frmCompletedApplication" %>
    <%@ Register Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
        Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"
                AutoDataBind="True"
                SelectionFormula="{ApplicantPersonalInfo.ApplicantID} = 2"
                SeparatePages="False" Height="32767px"
                Width="901px" ReportSourceID="CrystalReportSource1">
            </CR:CrystalReportViewer>          
            <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
                <Report FileName="JobApplicationReport.rpt">
                </Report>
            </CR:CrystalReportSource>
        </form>
    </body>
    </html>
    Here is my Web Config
    <?xml version="1.0"?>
    <configuration>
         <configSections>
              <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                   <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                             <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
                             <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                             <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                        </sectionGroup>
                   </sectionGroup>
              </sectionGroup>
         </configSections>
        <appSettings>
            <add key="CrystalImageCleaner-AutoStart" value="true" />
            <add key="CrystalImageCleaner-Sleep" value="60000" />
            <add key="CrystalImageCleaner-Age" value="120000" />
        </appSettings>
        <runtime>
            <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
                <publisherPolicy apply="no"/>
                <dependentAssembly>
                    <assemblyIdentity name="system.web.extensions" PublicKeyToken="31bf3856ad364e35" Culture="neutral"/>
                    <bindingRedirect oldVersion="2.0.0.0" newVersion="1.0.61025.0"/>
                </dependentAssembly>
            </assemblyBinding>
        </runtime>
        <system.web>
              <pages>
                   <controls>
                        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                        <add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxToolkit"/>
                   </controls>
              </pages>
              <!--
              Set compilation debug="true" to insert debugging
              symbols into the compiled page. Because this
              affects performance, set this value to true only
              during development.
        -->
              <compilation debug="true">
                   <assemblies>
                        <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                        <!<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>>
                        <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                    <!-- <add assembly="System.Windows.Forms,
                    , Culture=neutral, PublicKeyToken=B77A5C561934E089"/>-->
                        <add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                        <add assembly="CrystalDecisions.ReportSource, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                        <add assembly="CrystalDecisions.Shared, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                        <add assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                        <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                        <add assembly="CrystalDecisions.Enterprise.Framework, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                        <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                        <add assembly="CrystalDecisions.Data.AdoDotNetInterop, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
                        <add assembly="CrystalDecisions.VSDesigner, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
                         </assemblies>
              </compilation>
              <httpHandlers>
                   <remove verb="" path=".asmx"/>
                   <add verb="" path=".asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                   <add verb="" path="_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                   <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
                   <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
              </httpHandlers>
              <httpModules>
                   <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
              </httpModules>
         </system.web>
    <system.webServer>
              <validation validateIntegratedModeConfiguration="false"/>
              <modules>
                   <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
              </modules>
              <handlers>
                   <remove name="WebServiceHandlerFactory-Integrated"/>
                   <add name="ScriptHandlerFactory" verb="" path=".asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                   <add name="ScriptHandlerFactoryAppServices" verb="" path="_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                   --<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                   <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                   <add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode"/>
                   <validation validateIntegratedModeConfiguration="false"/>
              </handlers>
         </system.webServer>
    </configuration>

    Note the error is re. 'System.Web.Extensions' which is a Microsoft framework dll. I would suggest:
    1) repair of the .NET installation
    2) update the framework with the latest SP
    3) see if you can crate a new app - without Crystal Reports using the 'System.Web.Extensions' assembly
    4) see if you can create a new app using Crystal Reports (One line app using saved data report will do; crystalreportviewer1.reportsource = <path>)
    5) Download the latest CR SP. As you don not mention what version of CR you are using, see if you can find the SP in our downloads section:
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm
    Ludek

Maybe you are looking for