Xtreme.mdb

Post Author: moontube
CA Forum: General
My copy of Crystal Reports 2008 apparently did not include the xtreme.mdb demonstration database file. I cannot find it on the Business Objects Web site either. Does anyone know how I can obtain the version of xtreme.mdb that goes with Crystal Reports 2008?

Post Author: Ant5
CA Forum: General
OK, so perhaps it isn't that easy to get the Tutorial files downloaded. FYI they come as standard with Microsoft Visual Studio. I thought that they would be easily downloadable.
I did a quick google and here is a link to the xtreme.mdb
IMPORTANT I have not downloaded nor checked the validity and safety of this file hosted here **
http://testdrive.mapinfo.com/TECHSUPP/MIPROD.NSF/0/f282f1d0746e72b385256e2000625a0a?OpenDocument

Similar Messages

  • Unable to access cube in OLAP Connection Browser using xtreme.mdb

    Post Author: moontube
    CA Forum: Data Connectivity and SQL
    Hello Blair,
    Thank you for posting the xtreme.mdb sample database and associated reports on the Business Objects Web site. In addition to the xtreme.mdb database, you posted an OLAP cube named Sales Reports.cub.  I am having a problem with this, using Crystal Reports 2008. I am able to connect to Sales Reports.cub as a local cube and when I click the Test Connction button on the Connection Properties dialog box, a dialog box appears telling me that I have succeeded in connecting. However, when I click OK to dismiss that box and return to the Connection Properties dialog box, the OK button is grayed out. I connot proceed. My cube does not appear in the tree in the OLAP Connection Browser. I would appreciate any help you or anyone else can give me to get me beyond this problem.

    Before trying to use this URL in OBIEE to import cubes, try this in Internet Explorer.
    Follow the following steps:
    a. Run this URL in Internet Explorer
    b. You should get an output like this:
    +
    - <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    - <soap:Body>
    - <soap:Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/">
    <faultcode>XMLAnalysisError.0xc10e0002</faultcode>
    <faultstring>Parser: The syntax for 'GET' is incorrect.</faultstring>
    - <detail>
    <Error ErrorCode="3238920194" Description="Parser: The syntax for 'GET' is incorrect." Source="Unknown" HelpFile="" />
    </detail>
    </soap:Fault>
    </soap:Body>
    </soap:Envelope>
    +
    c. If yes, this proves that the virtual directory in IIS has been configured properly. If you get any other message, for example "Page cannot be displayed" or "Page not found", it means there are some issues with Virtual directory.
    Try this and let me know the results...and then we can proceed further

  • Crystal Reports 2008 Xtreme.mdb

    I'm trying to get started and learn Crystal Reports.  I can't seem to locate the Xtreme.mdb sample database to use for practice.  I've received conflicting information on this.  Can someone tell me how to get the data from SAP to Crystal Reports 2008 to begin evaluating the software?

    You can download xtreme sample database (.mdb) for xir2 here, you can also use this with CR 2008:
    https://smpdl.sap-ag.de/~sapidp/012002523100005852352008E/cr_xi_xtreme_rep_smpl_en.zip
    You will have to create your own DSN for it.
    Crystal Reports 2008 now comes with xtreme db in XML format. You can download this here:
    https://smpdl.sap-ag.de/~sapidp/012002523100006016532008E/XML_datasource.zip
    Cheers,
    Fritz
    Business Objects downloads:
    https://www.sdn.sap.com/irj/sdn/businessobjects-downloads

  • Xtreme.mdb sample database

    Here's an excerpt from the Crystal Reports 2008 User's Guide:
    A sample database, Xtreme.mdb, is available for you to use while you are
    learning Crystal Reports. Virtually all of the examples
    in this manual are based on Xtreme.mdb data. Xtreme.mdb is located on the Business Objects Technical Support web site http://support.businessobjects.com/samples/.
    However, xtreme.mdb is not at the location stated. In fact it is not anywhere on the Business Objects Web site. xtreme.mdb has been a valuable learning tool for many years. It could still be very valuable with CR 2008. What can be done to make this helpful tool available again?

    Thanks for this post.  All localized versions of the database and accompanying reports are now available on the Business Objects Technical Support site at http://support.businessobjects.com/downloads/samples.asp

  • Xtreme.mdb database

    Hi, I have a evaluation copy of CR2008 to try. I need a copy of the xtreme.mdb and the reports. I have been using crystal reports for 8 years. Can someone tell me where to get a download of the access DB and sample reports to test CR2008 on a vista laptop. Today is Oct 1/08 2:52 PM and I only have 3 days to test the CR2008 software. Thank you.

    Hi Jim,
    Please note when you install CR2008, it doesn't install xtreme.mdb and the sample reports.  But you can download sample reports in the following link:
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm
    In the drop down list choose Crystal Reports / 2008 / Sample
    It will list out Crystal Reports 2008 sample reports.
    In regards to the xtreme.mdb, you can use the previous version of Crystal Reports.
    Hope it helps.
    James

  • Xtreme.mdb search...

    Hi, where can I find the xtreme.mdb file database to be used for my learning purpose?
    I have downloaded the SAP crystal reports 2013, and want to try hands on before I delve to edit my real time reports.
    Looking forward your suggestions, as my search has ended up in vain.

    Hello Nagasubramaniam,
    You can find the Xtreme.mdb database here:
    https://smpdl.sap-ag.de/~sapidp/012002523100005852352008E/cr_xi_xtreme_rep_smpl_en.zip
    Hope this helps..!!!
    Regards,
    Mahesh

  • CR XI: Connect to a MS ACCESS 2K MDB (w/ MDW Systemdatabase)

    Post Author: svenworm
    CA Forum: Data Connectivity and SQL
    Hi there,
    I am trying to implement some CR Reports into my MS ACCESS 2000 Database which has MDW Systemdatabase. Inside CR XI Developer the Reports are shown and are OK. Integrated into MS ACCESS via the cr report viewer activex control I receive an error when connecting to the database:
    Within the "techref.pdf" I found Info about how to connect to a secured MS ACCESS MDB, but there is nothing said about the Systemdatabase. The Parameter is called "system database path", I guess.
    Code:
    ' Create a new instance of the report.
    Dim Report As New CrystalReport
    Private Sub Form_Load()
    ' Declare a ConnectionProperty object.
    Dim CPProperty As CRAXDRT.ConnectionProperty
    ' Declare a DatabaseTable object.
    Dim DBTable As CRAXDRT.DatabaseTable
    ' Get the first table in the report.
    Set DBTable = Report.Database.Tables(1)
    ' Set the new database location and the new table name.
    DBTable.SetTableLocation "C:\databases\xtreme.mdb",
    NewCustomer, ""
    ' Get the "Database Password" property from the
    ' ConnectionProperties collection.
    Set CPProperty = DBTable.ConnectionProperties("Database
    Password")
    ' Set the database password.
    CPProperty.Value = "password"
    Any hints ??
    Greets Sven

    Post Author: JCunningham
    CA Forum: Data Connectivity and SQL
    Hi.
    My apologies, but I cant help you with your issue.
    I was hoping that you might be able to help me with mine. Sounds like you've dealt with my issue already. I'm simply wanting to embed a Crystal Report into a simple MS Access database. I'm using Crystal XI Professional. I just need to know step by step how to get the Active X control within my Access Database to point to, and display my Crystal Report.
    If you can help, I'd really appreciate it!
    John Cunningham
    [email protected]

  • How to create a report based on a DataSet programatically

    I'm working on a CR 2008 Add-in.
    Usage of this add-in is: Let the user choose from a list of predefined datasets, and create a totally empty report with this dataset attached to is. So the user can create a report based on this dataset.
    I have a dataset in memory, and want to create a new report in cr2008.
    The new report is a blank report (with no connection information).
    If I set the ReportDocument.SetDataSource(Dataset dataSet) property, I get the error:
    The report has no tables.
    So I must programmatically define the table definition in my blank report.
    I found the following article: https://boc.sdn.sap.com/node/869, and came up with something like this:
    internal class NewReportWorker : Worker
          public NewReportWorker(string reportFileName)
             : base(reportFileName)
    public override void Process()
             DatabaseController databaseController = ClientDoc.DatabaseController;
             Table table = new Table();
             string tabelName = "Table140";
             table.Name = tabelName;
             table.Alias = tabelName;
             table.QualifiedName = tabelName;
             table.Description = tabelName;
             var fields = new Fields();
             var dbField = new DBField();
             var fieldName = "ID";
             dbField.Description = fieldName;
             dbField.HeadingText = fieldName;
             dbField.Name = fieldName;
             dbField.Type = CrFieldValueTypeEnum.crFieldValueTypeInt64sField;
             fields.Add(dbField);
             dbField = new DBField();
             fieldName = "IDLEGITIMATIEBEWIJS";
             dbField.Description = fieldName;
             dbField.HeadingText = fieldName;
             dbField.Name = fieldName;
             dbField.Type = CrFieldValueTypeEnum.crFieldValueTypeInt64sField;
             fields.Add(dbField);
             // More code for more tables to add.
             table.DataFields = fields;
             //CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo info =
             //   new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
             //info.Attributes.Add("Databse DLL", "xxx.dll");
             //table.ConnectionInfo = info;
             // Here an error occurs.
             databaseController.AddTable(table, null);
             ReportDoc.SetDataSource( [MyFilledDataSet] );
             //object path = @"d:\logfiles\";
             //ClientDoc.SaveAs("test.rpt", ref path, 0);
    The object ClientDoc referes to a ISCDReportClientDocument in a base class:
       internal abstract class Worker
          private ReportDocument _ReportDoc;
          private ISCDReportClientDocument _ClientDoc;
          private string _ReportFileName;
          public Worker(string reportFileName)
             _ReportFileName = reportFileName;
             _ReportDoc = new ReportDocument();
             // Load the report from file path passed by the designer.
             _ReportDoc.Load(reportFileName);
             // Create a RAS Document through In-Proc RAS through the RPTDoc.
             _ClientDoc = _ReportDoc.ReportClientDocument;
          public string ReportFileName
             get
                return _ReportFileName;
          public ReportDocument ReportDoc
             get
                return _ReportDoc;
          public ISCDReportClientDocument ClientDoc
             get
                return _ClientDoc;
    But I get an "Unspecified error" on the line databaseController.AddTable(table, null);
    What am i doing wrong? Or is there another way to create a new report based on a DataSet in C# code?

    Hi,
    Have a look at the snippet code below written for version 9 that you might accommodate to CR 2008, it demonstrates how to create a report based on a DataSet programmatically.
    //=========================================================================
    +           * the following two string values can be modified to reflect your system+
    +          ************************************************************************************************/+
    +          string mdb_path = "C:
    program files
    crystal decisions
    crystal reports 9
    samples
    en
    databases
    xtreme.mdb";    // path to xtreme.mdb file+
    +          string xsd_path = "C:
    Crystal
    rasnet
    ras9_csharp_win_datasetreport
    customer.xsd";  // path to customer schema file+
    +          // Dataset+
    +          OleDbConnection m_connection;                         // ado.net connection+
    +          OleDbDataAdapter m_adapter;                              // ado.net adapter+
    +          System.Data.DataSet m_dataset;                         // ado.net dataset+
    +          // CR variables+
    +          ReportClientDocument m_crReportDocument;          // report client document+
    +          Field m_crFieldCustomer;+
    +          Field m_crFieldCountry;+
    +          void CreateData()+
    +          {+
    +               // Create OLEDB connection+
    +               m_connection = new OleDbConnection();+
    +               m_connection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + mdb_path;+
    +               // Create Data Adapter+
    +               m_adapter = new OleDbDataAdapter("select * from Customer where Country='Canada'", m_connection);+
    +               // create dataset and fill+
    +               m_dataset = new System.Data.DataSet();+
    +               m_adapter.Fill(m_dataset, "Customer");+
    +               // create a schema file+
    +               m_dataset.WriteXmlSchema(xsd_path);+
    +          }+
    +          // Adds a DataSource using dataset. Since this does not require intermediate schema file, this method+
    +          // will work in a distributed environment where you have IIS box on server A and RAS Server on server B.+
    +          void AddDataSourceUsingDataSet(+
    +               ReportClientDocument rcDoc,          // report client document+
    +               System.Data.DataSet data)          // dataset+
    +          {+
    +               // add a datasource+
    +               DataSetConverter.AddDataSource(rcDoc, data);+
    +          }+
    +          // Adds a DataSource using a physical schema file. This method require you to have schema file in RAS Server+
    +          // box (NOT ON SDK BOX). In distributed environment where you have IIS on server A and RAS on server B,+
    +          // and you execute CreateData above, schema file is created in IIS box, and this method will fail, because+
    +          // RAS server cannot see that schema file on its local machine. In such environment, you must use method+
    +          // above.+
    +          void AddDataSourceUsingSchemaFile(+
    +               ReportClientDocument rcDoc,          // report client document+
    +               string schema_file_name,          // xml schema file location+
    +               string table_name,                    // table to be added+
    +               System.Data.DataSet data)          // dataset+
    +          {+
    +               PropertyBag crLogonInfo;               // logon info+
    +               PropertyBag crAttributes;               // logon attributes+
    +               ConnectionInfo crConnectionInfo;     // connection info+
    +               CrystalDecisions.ReportAppServer.DataDefModel.Table crTable;+
    +               // database table+
    +               // create logon property+
    +               crLogonInfo = new PropertyBag();+
    +               crLogonInfo["XML File Path"] = schema_file_name;+
    +               // create logon attributes+
    +               crAttributes = new PropertyBag();+
    +               crAttributes["Database DLL"] = "crdb_adoplus.dll";+
    +               crAttributes["QE_DatabaseType"] = "ADO.NET (XML)";+
    +               crAttributes["QE_ServerDescription"] = "NewDataSet";+
    +               crAttributes["QE_SQLDB"] = true;+
    +               crAttributes["QE_LogonProperties"] = crLogonInfo;+
    +               // create connection info+
    +               crConnectionInfo = new ConnectionInfo();+
    +               crConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;+
    +               crConnectionInfo.Attributes = crAttributes;+
    +               // create a table+
    +               crTable = new CrystalDecisions.ReportAppServer.DataDefModel.Table();+
    +               crTable.ConnectionInfo = crConnectionInfo;+
    +               crTable.Name = table_name;+
    +               crTable.Alias = table_name;+
    +               // add a table+
    +               rcDoc.DatabaseController.AddTable(crTable, null);+
    +               // pass dataset+
    +               rcDoc.DatabaseController.SetDataSource(DataSetConverter.Convert(data), table_name, table_name);+
    +          }+
    +          void CreateReport()+
    +          {+
    +               int iField;+
    +               // create ado.net dataset+
    +               CreateData();+
    +               // create report client document+
    +               m_crReportDocument = new ReportClientDocument();+
    +               m_crReportDocument.ReportAppServer = "127.0.0.1";+
    +               // new report document+
    +               m_crReportDocument.New();+
    +               // add a datasource using a schema file+
    +               // note that if you have distributed environment, you should use AddDataSourceUsingDataSet method instead.+
    +               // for more information, refer to comments on these methods.+
    +               AddDataSourceUsingSchemaFile(m_crReportDocument, xsd_path, "Customer", m_dataset);+
    +                              +
    +               // get Customer Name and Country fields+
    +               iField = m_crReportDocument.Database.Tables[0].DataFields.Find("Customer Name", CrFieldDisplayNameTypeEnum.crFieldDisplayNameName, CeLocale.ceLocaleUserDefault);+
    +               m_crFieldCustomer = (Field)m_crReportDocument.Database.Tables[0].DataFields[iField];+
    +               iField = m_crReportDocument.Database.Tables[0].DataFields.Find("Country", CrFieldDisplayNameTypeEnum.crFieldDisplayNameName, CeLocale.ceLocaleUserDefault);+
    +               m_crFieldCountry = (Field)m_crReportDocument.Database.Tables[0].DataFields[iField];+
    +               // add Customer Name and Country fields+
    +               m_crReportDocument.DataDefController.ResultFieldController.Add(-1, m_crFieldCustomer);+
    +               m_crReportDocument.DataDefController.ResultFieldController.Add(-1, m_crFieldCountry);+
    +               // view report+
    +               crystalReportViewer1.ReportSource = m_crReportDocument;+
    +          }+
    +          public Form1()+
    +          {+
    +               //+
    +               // Required for Windows Form Designer support+
    +               //+
    +               InitializeComponent();+
    +               // Create Report+
    +               CreateReport();+
    +               //+
    +               // TODO: Add any constructor code after InitializeComponent call+
    +               //+
    +          }+//=========================================================================

  • Can't see data in Preview View

    Note that I have posted this in the following thread:
    Forum post in Suggestions and Comments: Where is the Tech Support for Crystal Reports Where is the Tech Support for Crystal Reports
    Where is the technical support for Crystal Reports?  I have just been through one of the worst technical supports circles in my entire career - this phone# to that phone# and only to be told you cannot talk to a Tech Support person.  My dilema for anyone that can help - I am using Crystal Report 2008.  I have mapped to a database in MS Access 2002.  I copied the database to my desktop and created a test report.  I can see the fields in the Field Explorer.  I have dragged the fields onto the report and they are visible in Design View.  I can see the data in the fields when I browse the fields.  In the Preview View I do not see any data what-so-ever.  I have not changed any defaults and have not suppressed or hidden information.  The $1M question:  Why can't I see the data on my report?  I never had the problem when I used Crystal Reports v8.

    The supported platforms document for CR2008 (R3) states that Access 2003 and above are supported but you should still be able to see data.
    What happens if you go to the last page of your report (or scroll through the pages)?  Do you still see no data? (I'm thinking maybe some null values in your data may be the reason for nothing showing on the first page.)
    Connecting natively or ODBC?
    Still have your sample data (xtreme.mdb) from CR8?  See if you can hit that successfully.

  • Crystal ActiveX Runtime Lib: Change text data source path at run time.

    We have some PCs running Crystal Reports 10 and some running CR 9 and 8.5. For each PC, we set up a System DSN ODBC data source (in Control Panel - Administrative Tools) for pulling data from text files to
    generate reports.
    Recently we wrote some routines (see the Visual Basic example at the
    end of this message) to change the path of the data files at runtime.
    According to the Crystal Reports Technical Reference Guide, we may use
    the method LogOnServer() of an Application object or an DatabaseTable
    object. However, we find that this does not work: the PrintOut()
    method only pulls data from the default path as configured for the
    System DSN, not from the path passed as the third parameter of
    LogOnServer(). It does not return any error message.
    We have also tried to use SetTableLocation() method, and it still does
    not work.
    Would any experts examine our code below and advise what we are missing? Thanks.
    For the following VB example, we have:
    System DSN Name: AP_WORKSHEET
    Driver: Microsoft Text Driver
    Database Directory: D:\0ood2 (i.e. the default path)
    Crystal Report Document: D:\3g\run\Vision\apcyto\Reports\crBlockWS.rpt
    (Which specifies that the data source text file name is BlockWS.txt)
    Purpose : We would like to read the data source text file from
    D:\0ood1 instead of the default path.
    Following is the code of the VB macro:
    Sub test()
    Rem In this version of the subroutine, we call
    Rem DatabaseTable.LogOnServer() and "Rem"ed out
    Rem Application.LogOnServer() and SetTableLocation().
    Rem We have un"Rem"ed each of them and "Rem"ed others and try to run.
    Rem In all runs, data are pulled from the default file
    Rem D:\0ood2\BlockWS.txt instead of D:\0ood1\BlockWE.txt.
    Dim crxapp As CRAXDRT.Application
    Dim crxRep As CRAXDRT.Report
    Dim crxDB As CRAXDRT.Database
    Dim crxTab As CRAXDRT.DatabaseTable
    Dim crxConnPs As CRAXDRT.ConnectionProperties
    Dim crxConnP As CRAXDRT.ConnectionProperty
    Dim apropSubLoc As String
    Dim apropConnBufStr As String
    Set crxapp = CreateObject("CrystalRuntime.Application")
    Rem
    crxapp.LogOnServer "p2sodbc.dll", "AP_WORKSHEET", "<CRWDC>DBQ=D:\0ood1",
    Set crxRep = crxapp.OpenReport
    ("D:\3g\run\Vision\apcyto\Reports\crBlockWS.rpt")
    Set crxDB = crxRep.Database
    Set crxTab = crxRep.Database.Tables(1)
    apropConnBufStr = crxTab.ConnectBufferString
    apropSubLoc = crxTab.SubLocation
    crxDB.LogOnServer "p2sodbc.dll", "AP_WORKSHEET", "<CRWDC>DBQ=D:\0ood1",
    Rem crxTab.SetTableLocation "D:\0ood1\BlockWS.txt", apropSubLoc, "DSN="
    Rem Set crxConnPs = crxTab.ConnectionProperties
    Rem Set crxConnP = crxConnPs.Item("DSN")
    Rem crxConnP.Value = "AP_WORKSHEET"
    Rem Set crxConnP = crxConnPs.Item("Database")
    Rem crxConnP.Value = "D:\0ood1\BlockWS.txt"
    Rem crxTab.Location = "BlockWS.txt"
    crxRep.DiscardSavedData
    crxRep.PrinterSetup (0)
    crxRep.PrintOut
    End Sub
    For VB macros, the problem exists in all of CR 8.5, 9 and 10. However,
    for another platform we are using, Unify Vision 4GL, it works for CR
    8.5 while not working for CR 9 and 10.
    Following is the source code in Unify Vision 4GL. This language may
    not be popular, but I thin you are about to see how it calls the
    Runtime Library methods LogOnServer(), OpenReport(), PrinterSetup() and
    PrintOut().
    %gfPrintCrystalReport
    BOOL FUNCTION gfPrintCrystalReport($reportName)
    BEGIN
    if NOTMKNOWN(GF:$oSeagateId) then
    create service of activex
    class 'CrystalRuntime.Application'
    object_ref into GF:$oSeagateId;
    if MKNOWN(GF:$oSeagateId) then
    begin
    /* TD23013: Database directories are dynamic to
    accommodate multiple user requirement of Citrix */
    send message LogOnServer to GF:$oSeagateId
    using
    ( 'PDSODBC.DLL', 'AP_WORKSHEET', '<CRWDC>DBQ='+GF:$WinTempDir,'','')
    identified by $msgHandle;
    if $msgHandle:MSG_STATE 'RESPONSE_PROCESSED'
    then
    begin
    display 'Crystal Reports cannot connect
    to the datasource ' for fyi_message wait;
    return (FALSE)
    end
    send message OpenReport to GF:$oSeagateId using
    ($reportName, 1)
    identified by $msgHandle returning
    $oCrystalReport
    if MKNOWN($oCrystalReport) then
    begin
    if (NOTMKNOWN(GF:$printerName)) then
    set GF:$printerName to
    $oCrystalReport->PrinterName;
    if GF:$printerName $oCrystalReport-
    PrinterName then
    send message SelectPrinter to
    $oCrystalReport
    using
    (GF:$driverName,GF:$printerName,GF:$portName)
    identified by $msgHandle;
    set $oCrystalReport-
    DisplayProgressDialog to FALSE;
    while TRUE
    begin
    DISPLAY NOTICE 'Print to : ' +
    GF:$printerName
    LABELS 'Ok'
    DEFAULT, 'Cancel', 'Printer Setup'
    RESULT INTO $userOption
    switch ($userOption)
    begin
    case 0 :
    send
    message PrintOut to $oCrystalReport
    using
    (PROMPT_USER, NUMBER_OF_COPIES, COLLATED, START_PAGE, STOP_PAGE)
    identified by $msgHandle;
    set
    $oCrystalReport to UNDEFINED
    return
    (TRUE);
    case 1:
    set
    $oCrystalReport to UNDEFINED
    return
    (FALSE);
    case 2:
    send
    message PrinterSetup to $oCrystalReport
    using
    (0)
    identified by $msgHandle;
    if
    GF:$printerName $oCrystalReport->PrinterName then
    begin
    set GF:$printerName to $oCrystalReport->PrinterName;
    set GF:$driverName to $oCrystalReport->DriverName;
    set GF:$portName to $oCrystalReport->PortName;
    end
    break;
    end
    end
    end
    end
    return
    (FALSE);
    END

    Hi Sydney,
    If you search the Developers help file you'll find info on using the method:
    How to change the data source
    This example demonstrates how to change the data source from native Access to an OLEDB (ADO) data source by using the ConnectionProperty Object, as well as how to change the table name by using the Location property of the DatabaseTable Object. CrystalReport1 is connected to the xtreme.mdb database found in the \Program Files\Crystal Decisions\Crystal Reports 10\Samples\En\Databases folder. The report is using the Customer table. A copy of the Customer table is added to the pubs database on Microsoft SQL Server.
    ' Create a new instance of the report.
    Dim Report As New CrystalReport1
    Private Sub Form_Load()
    ' Declare a ConnectionProperties collection.
    Dim CPProperties As CRAXDRT.ConnectionProperties
    ' Declare a DatabaseTable object.
    Dim DBTable As CRAXDRT.DatabaseTable
    ' Get the first table in the report.
    Set DBTable = Report.Database.Tables(1)
    ' Get the collection of connection properties.
    Set CPProperties = DBTable.ConnectionProperties
    ' Change the database DLL used by the report from
    ' native Access (crdb_dao.dll) to ADO/OLEDB (crdb_ado.dll).
    DBTable.DllName = "crdb_ado.dll"
    '  The connection property bags contain the name and value
    ' pairs for the native Access DLL (crdb_dao.dll). So we need
    ' to clear them, and then add the name and value pairs that
    ' are required to connect to the OLEDB data source.
    ' Clear all the ConnectioProperty objects from the collection.
    CPProperties.DeleteAll
    ' Add the name value pair for the provider.
    CPProperties.Add "Provider", "SQLOLEDB"
    ' Add the name value pair for the data source (server).
    CPProperties.Add "Data Source", "ServerA"
    ' Add the name value pair for the database.
    CPProperties.Add "Initial Catalog", "pubs"
    ' Add the name value pair for the user name.
    CPProperties.Add "User ID", "UserName"
    ' Add the name value pair for the password.
    CPProperties.Add "Password", "password"
    ' Set the table name. ' for SQL types it would be "database.dbo.table"
    DBTable.Location = "Customer"
    Screen.MousePointer = vbHourglass
    ' Set the report source of the viewer and view the report.
    CRViewer1.ReportSource = Report
    CRViewer1.ViewReport
    Screen.MousePointer = vbDefault
    End Sub

  • Creating a header for rows/columns in cross-tab with syntax

    Hi,
    The issue is creating strings for rows or columns' headers. How can I create a formula field which contains more than one seperate string. Such as "aaa", "bbb" and "ccc" are headers and they should be in seperate columns. In short, they will behave like characteristics of one of my query's field but they are just headers of the columns.
    ..............aaa...bbb...ccc....
    row1.......x.......x........x.....
    row2.......y.......y........y.....
    Also there is another issue about the formulation again. Is there any operator that does the same job as " \n" which is used in C languages to break the line?
    before:
    aaabbb
    after:
    aaa
    bbb

    Hi Carl;
    Firstly, thanks for answering my question. To explain my problem there are two options ahead(for my first question); first one is writing down the actions step by step, the second one is posting an image file(jpeg etc) to visualize it. I think the first one will be enough. If not tell me
    Step 1- Create a cross-tab and right click and select cross-tab expert.
    Step 2- Click the button "New Formula" and write down any word(such as "Sales") between two -"- sign to make it string.Then save and close.
    Step 3- Drag and drop the created formula to "columns" section and fill the other necessary sections with your database's(such as xtreme.mdb which is famous for crystal users) fields.Don't forget to add another column value to "columns" section, since our formula has no link to database.
    Step 4- Then click OK to save the changes and lets preview the cross-tab.The result will have one top column and his child or children(that depends on your data). And this top column is behaving like a header not a field.
    Now turn the second step but write down a formula for 2 columns or more.For exmple "Sales" and "Profit".So the result will have 2 top columns and their child/children.
    My question is "what is the formula for 2 or more columns?"
    Also I couldn't get the answer for my second question. What is the meaning of expressions "\c" and ChrW(13)?
    Edited by: diabolus on Oct 30, 2009 9:39 AM

  • Designing simple sales report

    I am trying to create a Sales report from two tables: PRODUCT table and ORDER DETAILS table.
    The Order Details table has the following fields: Order ID, Product ID, Unit Price and Quantity. The Order ID field is a primary key in another table called ORDERS.
    The columns I want in my report are: Product code, Unit Price, Quantity Shipped and Sales. Product code and Unit Price are fields in the Product table and I can show them easily in my report. The problem I am having is displaying the Quantity Shipped and Sales columns. I have created two formulas to calculate this information.
    Quantity Shipped formula:      Sum ({Orders_Detail.Quantity},{Product.Product ID} )
    Sales formula:     {Product.Price (SRP)} * (Sum ({Orders_Detail.Quantity},{Product.Product ID} ))
    These formulas seem to work well. The problem is that when I place them in my report, I get three rows for every product id. So I end up with three rows of the same information for every product in my report.
    I am practicing with the xtreme.mdb that I downloaded from this website. Any help that you can provide would be much appreciated.

    HI,
    Thanks for the info.
    Placing the information in the group header solved the problem of having rows appear multiple times. Now each product item appears only once.
    HOwever, I am still unable to figure out how to show the quantity shipped for each item. I guess I will have to use the Quantity field in the Order_Details table. Doing a running total on this field in the group header just does a running total on the quantity field without being tied to specific product.
    Your help is much appreciated.

  • Typing SQL in an SQL field in CR always generates error message

    Hello,
    I am working with Crystal Reports 2008 (CR Developer, Version 12.1.0.892) Product Type: Full. This software is locally installed on my working computer, running on a Windows 7 system. The database I use is Progress version 10.2B01. I connect through an ODBC connection to the database.
    As a software developer, developing reports in CR is not my primary task, yet I have done some good work up to this date in Crystal. I have only one major problem:
    I can not create any SQL fields in the report, e.g. despite how I write the expression in the SQL language, it would not compile. The following error message appears: (I couldn't copy the error dialog into this message)
    Error in compiling SQL Expression:
    Database Connector Error: 'DAO Error Code: 0x03
    Source: DAO.Database
    Description: Syntaxerror in queryexpression 'SELECT
       Customer.'Customer Name".'.
    To make it as easy and basic as possible, I have tried the above excercise using C:\Program Files\Business Objects\Crystal Reports 12.0\Samples\En\DB\xtreme.mdb database. The SQL just won't work! Not even the most basic SELECT. I have really tried and searched Crystal Reports Online Help. A college of mine gets the same error message.
    I would be greatful if someone could give me a hint, what could be wrong. You may post me a simple SQL query which works together with the xtreme.mdb database. (Drawing fields with the mouse onto the report creates nice output - but I really want to accomplish output by creating and inserting an SQL field using SQL!).
    Greetings from Karlstad in Sweden!  Ivo K. (@inport.com)

    Hi
    Try to see what all tables are accessed by data source. and see if there is any lock on that..
    If some other job is accessing that table - then there might be lock on that which is causing failure..
    1) Try looking at ST22 dump also..
    2) Try to do RSA3 in R/3 and if see if its is fetching any records or not..
    Hoep it helps
    --SA

  • Parameter not showing any results

    Hi all,
    To start off, I am a SAP BI consultant starting to learn crystal report, so I am quite a novice.
    Currently I have a problem with parameters, I am using the xtreme.mdb to learn crystal report.
    My crystal report is 2008.
    My report is quite simple, it has customer id and customer name. I have created a parameter using dynamic list of values instead of static. The value of the datasource is customer id and the "allow discrete" value is set to true.
    So far, no problems. When I inserted the parameter in the report and preview it, the report comes up with a popup with a drilldown arrow. When I click on the arrow it is not showing any values.
    Also, clicking on "OK" or "Cancel" in the popup doesn't do anything.
    Can anyone please help?
    thanks in advance,
    James

    Hi james,
    Please go through the thread
    Re: CR XI - Command Parameter Not Working
    regards
    Baby

  • [Crystal Report 13.0.2000.0 & VB 2010] - Database connection from VB Code

    Hi,
    i want establish a connection between report and MsAccess database using source code in VB .NET 2010 listed below:
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Public Class Form1
        Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Dim crtableLogoninfos As New TableLogOnInfos()
            Dim crtableLogoninfo As New TableLogOnInfo()
            Dim crConnectionInfo As New ConnectionInfo()
            Dim CrTables As Tables
            Dim CrTable As Table
            Dim crReportDocument As New CrystalReport()
            With crConnectionInfo
                .ServerName = "c:\db.mdb"
                .DatabaseName = "db.mdb"
                .UserID = ""
                .Password = ""
            End With
            CrTables = crReportDocument.Database.Tables
            For Each CrTable In CrTables
                crtableLogoninfo = CrTable.LogOnInfo
                crtableLogoninfo.ConnectionInfo = crConnectionInfo
                CrTable.ApplyLogOnInfo(crtableLogoninfo)
                CrTable.Location = crConnectionInfo.DatabaseName
            Next
            CrystalReportViewer1.ReportSource = crReportDocument
        End Sub
    End Class
    This code work fine but the database connection parameters prompt every time on runtime!
    HELP ME!

    Hello,
    I used our sample Xtreme.mdb to test this and it works for me. I am using RAS to make the connection though.
    Here's the code on how:
    Public Function ChangeConnectionInfo() as ReportDocument
    Dim boReportDocument as New ReportDocument
    '**EDIT** Change the path and report name to the report you want to change.
    boReportDocument.Load("c:\reports\yourreport.rpt", OpenReportMethod.OpenReportByTempCopy)
    'Create a new Database Table to replace the reports current table.
    Dim boTable As New CrystalDecisions.ReportAppServer.DataDefModel.Table
    'boMainPropertyBag: These hold the attributes of the tables ConnectionInfo object
    Dim boMainPropertyBag As New PropertyBag
    'boInnerPropertyBag: These hold the attributes for the QE_LogonProperties
    'In the main property bag (boMainPropertyBag)
    Dim boInnerPropertyBag As New PropertyBag
    'Set the attributes for the boInnerPropertyBag
    boInnerPropertyBag.Add("Data Source", "C:\xtreme.mdb")
    boInnerPropertyBag.Add("Database Type", "Access")
    boInnerPropertyBag.Add("Locale Identifier", "1033")
    boInnerPropertyBag.Add("OLE DB Services", "-6")
    boInnerPropertyBag.Add("Provider", "Microsoft.Jet.OLEDB.4.0")
    boInnerPropertyBag.Add("Use DSN Default Properties", "False")
    'Set the attributes for the boMainPropertyBag
    boMainPropertyBag.Add("Database DLL", "crdb_ado.dll")
    boMainPropertyBag.Add("QE_DatabaseName", "")
    boMainPropertyBag.Add("QE_DatabaseType", "OLE DB (ADO)")
    'Add the QE_LogonProperties we set in the boInnerPropertyBag Object
    boMainPropertyBag.Add("QE_LogonProperties", boInnerPropertyBag)
    boMainPropertyBag.Add("QE_ServerDescription", "C:\xtreme.mdb")
    boMainPropertyBag.Add("QE_SQLDB", "True")
    boMainPropertyBag.Add("SSO Enabled", "False")
    'Create a new ConnectionInfo object
    Dim boConnectionInfo As New CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo
    'Pass the database properties to a connection info object
    boConnectionInfo.Attributes = boMainPropertyBag
    'Set the connection kind
    boConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE
    '**EDIT** Set the User Name and Password if required.
    boConnectionInfo.UserName = "UserName"
    boConnectionInfo.Password = "Password"
    'Pass the connection information to the table
    boTable.ConnectionInfo = boConnectionInfo
    'Get the Database Tables Collection for your report
    Dim boTables As CrystalDecisions.ReportAppServer.DataDefModel.Tables = _
    boReportDocument.ReportClientDocument.DatabaseController.Database.Tables
    'For each table in the report:
    ' - Set the Table Name properties.
    ' - Set the table location in the report to use the new modified table
    boTable.Name = "Credit"
    boTable.QualifiedName = "Credit"
    boTable.Alias = "Credit"
    boReportDocument.ReportClientDocument.DatabaseController.SetTableLocation(boTables(0), boTable)
    'Verify the database after adding substituting the new table.
    'To ensure that the table updates properly when adding Command tables or Stored Procedures.
    boReportDocument.VerifyDatabase()
    Return boReportDocument
    End Function
    Thank you
    Don

Maybe you are looking for

  • Planning to buy, many many questions.

    Hello, I am sorry if people have been asked this before but help would be greatly apprecaited. I have many questions such as: 1)Is MSN compatable with MacBook programming? 2)Can you run downloading programs such as Limewire on MacBooks or do you have

  • Data incosistency

    Dear experts                    Our client implemented  sap in 2006 ECC 6 version and 2011 they want to implement   new profit center instead of old profit center  .I have discussed with  client  what they are saying  they have implemented  document

  • Thmbnails in folder view

    Is there a way to view pic thumbnails when you have them stored in a folder. The perfect example is when you insert a CD or transfer a bunch of picture to your desktop. Is there a way (outside of iphoto) to view in thumbnail view. This is a standard

  • How to get the underlying OutputStream of a PrintWriter ?

    There's an interface method (in javax.sql.DataSource) setLogWriter(PrintWriter log) which I have to implement, and which supplies me an output channel for log messages. I want to use java.utils.logging to output to this log. The nearest thing I got i

  • Can I boot from an external drive

    Can I run snow leopard from an external drive? If so, would my user directory need to be moved to it? If not, would it create a new one on the external drive?