Connecting a dataset to a crystal report

How we can connect a  blank crystal report created by visual basic 2005 IDE to a data set. Backend database is in SQL server 2005.

You will need to write out the dataset schema and design the report against it in the designer.  Use the ado.net dll and you can choose the xsd file, design the report structure, then pass the dataset to the report at runtime.
The schema that the report is designed against has to match the dataset that you pass at runtime.

Similar Messages

  • Connection to Embeded Database from Crystal Reports XI

    I am writing an application that uses a SQL Server Mobile Database.  I have not been able to determine how to connect to this database through Crystal Reports.
    1.  Is it possible?
    2.  How do I provide the connection string that uses only 2 parameters?
    Gene

    When you create a DSN the ODBC string expects information for Server, Database, Username, and Password.  When you are working with an Embedded Database, typically you have a filename and a password (which can be null).  I was not able to create a DSN for this connection.
    What I have been able to get working is the following:
    1.  Create an ADO DataSet Object within the application.
    2,  Create the CR attaching ot the DataSet Object.
    3.  In the application code where you are attaching the CR to a viewer you must
          a.  Define a Data Adaptor for the DataSet.
          b.  Define a Data Table and load the table from the DataSet GetData() method.
          c.  Define the full path to the report file.
          d.  Define a ReportDocument Object
          e.  Load the report path in the the ReportDocument Object
          f.  Define the DataTable as the Data Source to the ReportDocument Object
          g. Define the Viewer ReportSource as the ReportDocument Object.
    I have been able to use this approach on 3 separate reports and returned the correct data.  A lot of steps, but it is working.
    GFKerls

  • Connection to database in sap crystal reports enterprise xi 4.0

    Hi,
    When we are trying to connect to database in sap crystal reports enterprise xi 4.0 ,i am geting the below error.please advise.
    Error:
    Failed to establish a connection.The cause was:
    Connot connect to SAP BussinessObjects Enterprise at this time.Please try again later.

    Thanks for your quick response Henry....
    I checked all this things and all are working fine.
    Now I am able to connect to BOE server.
    The cause behind the issue was in "CMC > Applications > Web
    Service > Access URL:"  the URL was having different server name which we have changed earliar, I just correct the URL and issue got resolved.
    But now when I am trying to access BOE Server through Crystal Reports for Enterprise 4.0 client tool directly not from launch pad, it probes me the same error. (Note: I used the same parameters which i got from launch pad token to this)
    Is that a only way to use Crystal Reports for Enterprise 4.0 from launch pad ??

  • Error Connecting SAP Business One and Crystal Report

    Hi All,
    I installed Crystal Report 2008 on my system for creating a report in Crystals.
    I clicked on "New Report" and it opened a window called "Database Exert." However, when I look in the Database Expert, I cannot see "SAP Business One" in it. How can I connect SAP Business One 8.8 with Crystal Report?
    Regards,
    Bharath S

    Hi
    On your computer, locate the Crystal folder according to the following directory path: C:\Program Files\SAP\SAP Business One\Crystal. Then double-click the file: SAP Business One Crystal Report Integration Package.exe. and follow the step of the setup status screen.
    Regards
    Christian Carrasco

  • Error While connecting  to SAP R3 from crystal reports

    Hi Experts,
    I am trying to connect to a SAP R3 from crystal reports, it gives below mentioned error.
    Logon failed.
    Details: CMALLC: rc= 27 > Connect from SAP gateway to RFC server failed
    Connect_PM GWHOST=10.11.12.13, GWSERV=SAPGW12, SYSNR= 12
    Location SAP-gateway on host xyz/sapgw12
    Error timeout during allocate
    TIME Wed Nov 18..
    Release 700
    Component SAP Gateway
    Version 2
    RC 242
    Module gwr3cpic.c
    LINE 1872
    Detail no connect of TP sapdb12 from host 10.11.12.13 after 20 sec
    COUNTER 6
    Please help me to solve this error.
    Regards,
    Ganesh

    Hi
    please ask your network admins if there is a firewall between your CR Designer installation and your SAP R/3 system.
    I assume that you have imported the necessary trsansports in your SAP R/3 system.
    Which kind of driver do you use for the connection to SAP R/3?
    Regards,
    Stratos

  • Unable to connect to defined CMS from Crystal reports Enetrprise

    Hi all,
    I am using SAP Crystal Reports for Enterprise XI 4.0 (SP2 Patch 6). We have 2 independent Intelligence & Processing Tiers installed with their own CMS services. However, temporarily we are using only 1 common WAS Netweaver 7.3 for both CMS (when we connect to CMC/BI Launch pad we juts type different CMS name). Both of them are on same patch level, etc.
    My problem is that when I try to connect to BO Enterprise (BI 4.0) from Crystal reports, I am unable to specify to which CMS it has to connect - since it take the Server name and not the CMS name. It automatically connects me to only 1 of the CMS while there is no chance to connect to another (it might have somewhere recorded the CMS name). is there a chance to choose between those 2 CMS to which Crystal should connect?
    Thanks!
    Erik.

    Erik,
    You should specify the name of the server where BOE is installed. You can use the FQDN or even the IP address and the port name.
    Regards,
    Julian

  • INTERNET CONNECTION NOT DETECTED message with Crystal Reports 2011

    Hello:
         We upgrade from SQL 3008 R2 to SQL 2012 SP1.   Had trouble with Crystal Reports not opening reports.  Information on the internet indicated that you had to reinstall Crystal Reports after upgrading SQL.  We did a repair of Crystal Reports 2011.  I have the box checked to check for updates when Crystal Reports starts.  I am now getting INTERNET CONNECTION NOT DETECTED and the application will not check for updates.  We have tried turning of the firewall and almost everything else we can think of.  I have access to the internet from that server and IE9 works just fine.  Can anyone help, please.
    Thank You,
    Jack G.

    Hello Jack,
    This one helps: INTERNET CONNECTION NOT DETECTED
    Internet Connection failure
    --Dhana

  • How to connect to a Unix from Crystal Reports running on windows?

    <p>Any idea on how to connect from windows Crystal Reports X1 client to a Unix box
    file directoriesu2026<br>
    <br>
    Any suggestions would be much appreciatedu2026<br>
     </p>
    Edited by: DarkNight on Nov 13, 2009 10:42 AM

    Hi Darknight,
    What is it you want to find once you are connected? Since you posted this in the Database Connectivity forum I assume you want to connect to some DB or flat file on that server? If it's a DB then use the client to connect from windows. If it's a flat file then you should be able to use whatever connection utility you use to see the file system from windows. I don't know Unix so not sure but need more details.
    Thank you
    Don

  • Error connecting to stored procedure in crystal report

    Hello
    I'm using crystal reports 2008 with the latest service pack.
    i'm trying to access stored procedure using the mysql jdbc driver 5.17. The crystal report has been designed which works fine with a login that created the stored procedure but when i try to run with another login that will used to run the crystal reports
    The login has access to execute the stored procedure but entered in the crystal report it complains about
    "User does not have access to metadata required to determine stored procedure parameter types. If rights cannot be granted, configure with {noAccessToProcedureBodies=true} to have driver generate parameters that represent INOUT strings irregardless of actual paramter types"

    Hi Sharon
    Thanks for response.
    I have checked that the user has permission to read and write. When i try and execute the stored procedure in the database by login with the user, it runs fine.
    When i try and call the stored procedure from crystal reports it throws that error message.
    regards
    Naresh

  • Problem connection to database when opening Crystal Report in VB6 app

    Hi all, first post, so be gentle!
    I've developed a simple app and database using VB6 and SQL Server 2005 and is seems to be working well when i test it.
    Problem i have is after i installed the app on another PC. When the user tries to open the report they get an error when the report tries to connect to the database. It appears the report is trying to connect to the SQL Server using the user's AD account details, yet i set the report up with a trusted connection. I created a replica ODBC connection (as used by me when designing the report) on the users PC to see if that was what was missing. THis was set up to use the generic SQL Server logon details. Unfortubately the report is still trying to connect with the user's AD details.
    I had a bash at creating the VB commands to set the connection settings, but i couldn't get this to work.
    If anyone can help point me in the right direction or show me the correct code/steps to get th connection details correct, i'd be very grateful.
    Here is the code i have in my app:
    (Form1)
    Dim crxApplication As New CRAXDRT.Application
    Public Report As CRAXDRT.Report
    Private Sub cmdRunReport_Click()
    ReportPath = App.Path & "\" & File1.FileName
    If (File1.FileName = "SKU MTM Report - ADR.rpt" Or File1.FileName = "SKU MTM Report - BS100.rpt") Then
        Set Report = crxApplication.OpenReport(ReportPath, 1)
        Report.ParameterFields.Item(1).AddCurrentValue (Trim(DataCombo1.Text))
        Report.ParameterFields.Item(2).AddCurrentValue (Trim(DataCombo2.Text))
        Report.ParameterFields.Item(3).AddCurrentValue (Trim(DataCombo3.Text))
    End If
    frmreports2.Show
    End Sub
    (Form2 with Crystal ActiveX Viewer component)
    Private Sub Form_Load()
    CrystalActiveXReportViewer1.ReportSource = frmReports.Report
    CrystalActiveXReportViewer1.ViewReport
    End Sub
    Thanks in advance for any advice!
    Edited by: James McCaig on Feb 5, 2009 12:39 PM

    Here is an article on how to distribute the runtime using msm files. I think the articles was written in CR 9, but all applies, save the names of the msm files:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/901c0761-cf1d-2b10-dea4-8e83937a9337
    Note that you have to use a utility such as Wise, InstallShield, MS Visual Installer, etc., to create your deployment.
    I have also created a short wiki that describes the msm downloads for each version of CR:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsReportDesignerComponentRuntimeDistribution-Versionspre8.0.xto12.0
    Ludek

  • SAP & Crystal reports connectivity

    Hi SAP Gurus,
    I'm facing a problem while connecting ABAP query & infoset from crystal reports.
    I've installed crystal reports 8.5 and also SAP crystal report enterprise add on.
    when i want to connect to sap system from crystal reports, it aunthenticate my username and password, but when i want to retrieve sap infoset or query, it stops me and show the message
    R/3 Error
    SYSTEM_FAILURE
    58FUNCTION MODULE "/CRYSTAL/GET_FUNCAREA_CATALOG" NOT FOUND.
    Please help me, it's urgent.
    Thanks,
    Salahuddin.

    Ingo,
    I've downloaded V 10 and installed it. But it does not display 'SAP' in 'other datasources', when i start creating report from crystal reports using other datasources.
    When i downloaded V 8.5 addon, i 've installed crystal report v 8.5 and then installed v 8.5 AddOn. This atleast shows SAP menu in it. but when i start creating report from it, it displays same missing function module problem.
    So in both version, I'm having problem. In V 10 SAP menu is not appearing and in V 8.5 SAP menu appears but missin function module problem. Is there any Addon for V 10.
    Please guide me.
    Thanks,
    Salahuddin.

  • KBase ID 344488: Logon failed when connecting to universe in Crystal Report

    My question is related to  [KBase Article ID:344488|http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=344488&sliceId=&dialogID=24618166&stateId=1%200%2024614949]
    Article refers to: Crystal Reports XI
    Symptom
    When attempting to create a connection to a universe in Crystal Reports, after clicking OK in the Database Expert Query Panel, the following error message appears:  "Logon failed".
    The query is not generated. In the Universe folder of Database Expert, the following message appears: "u2026no items found".
    I'm running BOE XI and Crystal Report XI R2 with MS SQL Server 2005 using ODBC.
    The resolution psoted in the KBase Article ID:344488 does not resolve the issue in my case.  Does anyone have any ideas on what to look at next?

    Hello Donald,
    I'll describe the process flow when Crystal Report reports off of a Universe, in hopes the info will help narrow down your issue.
    When you create a Crystal Report and open an Universe, it connects to the Enterprise system and uses a Report Server on Enterprise to generate the SQL Statement.   After you create the Query in the Query Panel, and add the Query to the report, the SQL Statement is sent to the Crystal Report Designer. 
    The Crystal Report Designer makes a local connection to the database and sends the SQL Statement to retrieve data.
    You're using ODBC connectivity.  If the defined ODBC isn't identical between the server where the Report Server is running, and the client where the Crystal Report Designer is running, then you'd get the Logon failed error.
    Other than checking the drivers, I'd recommend that the ODBC connection on both server and client point to the same database, and allow use of the same database logon credentials.
    Sincerely,
    Ted Ueda

  • Oracle 10g olap cube connectivity issue using Crystal Reports 2008

    Hi
    Kindly help me out with a solution. I have created a cube in oracle 10gR2 database using Oracle Analytic Workspace Manager. I am trying to connect to this cube using Crystal report Olap datasorces. But I am only getting 4 options to connect to Hyperion Essbase, HOLOS Cube, Microsoft OLEDB, Microsoft OLAP Analysis Services 8.0 and 9.0.  I am not getting any option for connection to Oracle OLAP. How do I do that or if it does not support kindly let me know.
    Thanks in advance
    Troyee

    Hi Troyee,
    I have discussed the issue with OLAP engineer and he told me that connectivity to OLAP cube is not supported.
    and please next time address OLAP questions to the following category:
    Expert Forums » Business Objects » Other Business Objects Products
    (see the relevant category description)
    Vitaly Izmaylov
    Crystal Reports Design forum moderator

  • Connect SAP  R/3 4.7 to Crystal reports

    Hi Expets,
    I have installed  trail versions of Crystal reports 2008 (Version 12.2.0.290-CR developer)  and Installed SAP BO integration kit XI.3.0 on my PC
    I could connect to SAP BW System through OLAP connection.But for connecting to  SAP R/3 no option is there is the Database expert of of crystal reports-2008.Please let me know where I am I going wrong I don't have BOE XI.3.0 or EDGE3.1 on my system,but for Demo I need to show only connection to SAP R/3 not BW
    any Idea where I can connect SAP R/3 to Crystal reports-2008 using Data base expert of CR-2008 without BOE  ...??
    Prasad

    Hi BRK,
    Thanks  a lot for the quick reply.Under the Database Expert I can
    two folders .
    1.My Connections
    2.Create new connections  
    Under this I can see More data-sources folder  but in that there is no SAP table,Infoset or FM available.
    I can see other folders like OLAP,ODBC,OLEDB,Outlook,Universes,Repository etc I am not sure where it is going wrong.
    Prasad

  • Crystal Reports 2011 cannot connect to Salesforce - Unexpected Error

    I am unable to connect to salesforce from Cystal Reports 2011. I get a dialogue saying
    Failed to Open the connection
    Details:Unexpected Error
    -I have increased the JVMMaxHeap in CRCONFIG.XML to 512000000
    -I have appended the security token to the password
    -I am not going through a proxy server
    I am able to login successfully to the salesforce account using Crystal Reports 2008.
    In order to narrow the issue down and exclude any issues related to custom objects on our corporate acount I created a clean , out of the box dev account on salesforce. Again I can connect to it with 2008 but not 2011 on whcih I get the same error
    I can verify that a login succesfully occured in salesforce, the login in history shows the connections are being made.
    In order to reproduce simply create a salesforce dev account, install CR 2011 SP02 and attempt to create a database connection to the salesforce account
    Crystal Reports Log is as follows
    011-9-30-15-14-27     10176     .\xml.cpp     112     Leaving DllMain()      20
    2011-9-30-15-14-27     10176     .\jdbc.cpp     172     Leaving DllMain()      20
    2011-9-30-15-14-27     10176     .\crdb_sforce.cpp     127     Leaving DllMain()      20
    2011-9-30-15-14-27     10176     .\javabeans.cpp     113     In DllMain()      20
    2011-9-30-15-14-27     10176     .\javabeans.cpp     136     Leaving DllMain()      20
    2011-9-30-15-14-27     10176     .\xml.cpp     112     Leaving DllMain()      20
    2011-9-30-15-14-27     10176     .\jdbc.cpp     172     Leaving DllMain()      20
    2011-9-30-15-14-27     10176     .\crdb_sforce.cpp     127     Leaving DllMain()      20
    2011-9-30-15-14-27     10176     .\javabeans.cpp     113     In DllMain()      20
    2011-9-30-15-14-27     10176     .\javabeans.cpp     136     Leaving DllMain()      20
    2011-9-30-15-14-32     10176     .\crdb_sforce.cpp     464     The ErrorArray exception thrown from the function DbLogonServer()     1
    2011-9-30-15-14-32     10176     .\crdb_sforce.cpp     661     In DbFreeLogonInfo()     20
    2011-9-30-15-14-32     10176     .\crdb_sforce.cpp     667     Leaving DbFreeLogonInfo()     20
    2011-9-30-15-14-32     10176     .\crdb_sforce.cpp     2567     In DbFreeErrorInfo()     20
    2011-9-30-15-14-32     10176     .\crdb_sforce.cpp     2570     Leaving DbFreeErrorInfo()     20
    2011-9-30-15-14-32     10176     ..\cserrinf.cpp     523     Error 31837 (..\..\src\data\queryenghelp.cpp, 554): Failed to open the connection.: Unexpected error     1
    2011-9-30-15-14-51     10176     .\javabeans.cpp     113     In DllMain()      20
    2011-9-30-15-14-51     10176     .\javabeans.cpp     136     Leaving DllMain()      20
    2011-9-30-15-14-51     10176     .\crdb_sforce.cpp     127     Leaving DllMain()      20
    Any other ideas on what I can try here?

    Hi Vitaly
    I did some further playing based on the information you provided; that it should not differ between 2008 and 2011. I currently have both Crystal 2008 SP3 and 2011 SP2 installed so I went through and looked at the CRConfig files for both applications and could not see any major differences other then where they configure as the JVM and classpath.
    I have managed to get Crystal 2011 to connect to salesforce after making one small edit to the 2011 CRConfig, changing the classpath to use the 2008 version of CRDBSForceServer.jar
    I removed the entry within classpath for the CR2011 CRDBSForceServer.jar
    F:\Program Files (x86)\SAP BusinessObjects 4
    SAP BusinessObjects Enterprise XI 4.0\java/lib/CRDBSForceServer.jar;
    and replaced it to point at the 2008 version
    F:\Program Files (x86)\Business Objects\Common\4.0\java/lib/CRDBSForceServer.jar;
    When I do this I am able to establish a connection to the salesforce DB without any other changes in the CRConfig. This does not solve my problem as I am still unable to run a deployed version of the report as I assume the latest 2011 version of the JAR is also part of the BO4 server and is getting the same connection problem on the server side but this may narrow it down enough for you to be able to provide further clarification on what the issue is.
    thanks,
    Brendan

Maybe you are looking for

  • How to print list of bookmarks

    HI, I want to print a list of my bookmarks, how do i do this?

  • Distiller Error: invalidfileaccess

    Hi there, maybe s.o. can help me.. Since I've updated acrobat Pro XI  I can't create pdf files out of autocad  anymore...I'm  getting the following error: %%[ ProductName: Distiller ]%% %%[ Error: invalidfileaccess; OffendingCommand: imageDistiller ]

  • Trying to migrate from MBPro Leopard to MBPro Lion

    ..Migration Assistant is a Liability can't even find the other computer, I'm already dragging the files from (target mode). So doing it manually. Problem: There is no Library folder in Users/home/  on the destination (Lion) computer.. There is alread

  • Direct Deposit Through F110

    Hi, How can we do direct Deposit through F110.i got this issue.But i didnot get their requirement.Give me some suggestion. Thanks Sap Guru

  • Canon LBP 810 and OSX

    Hi all, Does somebody is using this printer with OSX ? There isn't any driver for Mac, any workaround to get it working with OSX ? Thanks a lot, Peloche, MacPro 2.66, 6GB, 1TB; Mini G4, 1.45, 1GB; iPod 60 GB; 30" & 20" ACD; Apple IIC   Mac OS X (10.4