Crystal Reports XI - Registration Wizard - Cannot get a valid key code

I'm not sure if this is the right forum or not and, if not, my apologies.  I had this installed on PC before (CR XI Professional Edition) but my PC crashed and I had to do a reinstall on Windows, etc.
Now, when installing CR, I am getting the above error and CR will not start.  Help!

Hi Harry,
Try with this:
For a new key code:
Request key codes for new orders via SAP Marketplace (SMP), will  receive a download letter on new purchases providing them with their SMP login credentials.  Using these credentials you can login and click in the "Keys & Requests" tab > Request a License key.
If your  Key code does not work
You need   create a customer message [https://websmp107.sap-ag.de/message] using component XX-SER-LIKEY-BOJ. 
Regards,
Shweta

Similar Messages

  • Crystal 11 Install message - 'Cannot get a valid key code'

    On install of Crystal 11 get the message above, although the valid key code is filled in automatically on the install process.  On launch, the app always asks for a key code, and when one is entered it proceeds as usual - but always asks again next time. Then, when the code is entered, I get the 'invalid or expired' message that others have noted. 
    The product is registered - it notes the product has already been registered when I try again but I get the following message back, always with same number:  Thank you for registering Crystal Reports Developer XI.. Your Registration number is 8414648993
    Following various clues on this forum I uninstalled/reinstalled the software.  Version 10 is also on this machine, as well as 8.5, though I think this is not unique (we have certain apps that require one or another, so developers use several versions).  I did not delete the registry keys for Crystal 11 because they weren't there, just generically Crystal ones, but otherwise uninstall and folder deletions went OK.  Reinstall had the exact same problems.
    Can anyone help?  No sense venting on people who are trying to be helpful, but I would naturally just like the stuff to install OK if I have a valid code on the install sleeve, as certainly seems to be the case.  That, or a place where I can plug in the error message and get a nice well-documented procedure to try, rather than a thread with clues - or where the solution is taken offline.
    Thanks,
    Larry R.

    Hi Larry,
    This type of issue normally occurs when the rights on the following regirty keys are insufficient: -
    HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE.
    Specifically, the rights on the software folder must be full control. (Right click on the folder and select permissions).
    Once you have provided full control, re-install the product once and everything should work fine.
    Please let us know if this helps.
    Cheers!

  • My computer crashed and I lost everything. It was the only computer with Sync on it and I cannot get my recovery key: how can I get all my bookmarks from that Sync account?

    My computer crashed and I lost everything. It was the only computer with Sync on it and I cannot get my recovery key: how can I get all my bookmarks from that Sync account? I have a ton of bookmarks/saved password and the only way to get on sync is create a new recovery key and lose all of my information.
    Is there any way to get my stuff back without creating a new recovery key and losing all my old stuff?

    It has always been very basic to always maintain a  backup copy of your computer for just such an occasion.
    Use your backup copy to put everything back.

  • I cannot get the numerical keys to work on my Mac pro any ideas?

    HI
    I am trying to return something bought on line and need to fill out various information on the website. I cannot get the numerical keys to work anybody any ideas as to what I may be doing wrong?
    GL

    Hi Goostrey Lou,
    Thanks for visiting Apple Support Communities.
    Start with the tips in this article if some keys on your keyboard are not working:
    One or more keys on the keyboard do not respond
    http://support.apple.com/kb/ts1381
    All the best,
    Jeremy

  • Launch a Crystal Report Based on a Bus. Objects Universe with code

    Post Author: BobM
    CA Forum: .NET
    Launch a Crystal Report Based on a Bus. Objects Universe with code
    We have purchased Business Objects Enterprise XI R2 and have designed a universe.  We have hundreds of scheduled reports that have been configured through the InfoView.  The problem is that we run these reports on a very odd date schedule and it is extremely cumbersome to go into these report definitions and change the dates in InfoView.
    We would like to be able to store all the report parameters in a table (outside of the BO universe) along with the date and time we would like it to run.  All of this would need to be tagged with the report name so we know what report we are referring to.  Then we would like to sweep this table periodically (or use some other triggering mechanism) and launch the reports as specified (hopefully) using an API/SDK (like the one that used to be available with Crystal) to launch the .RPT file and pass all of the appropriate parameters, and possibly the credentials if need be.
    In short we want to roll our own report scheduler due to some limitations we have found in the InfoView scheduler.
    My main question is, does an API/SDK exist that can launch a crystal report that is based on a Business Objects Universe?  As I had stated, it needs to be able to pass parameters in the report call.  Based on my previous projects using Crystal connected directly to a SQL Server DB, I beleive this is possible, but I would like to hear from others that may be doing something similar with a Business Objects Universe back end.
    We are using Crystal Reports XI R2.  Just to be clear, all of the functionality I specified up to the point where the report needs to be called is not an issue, we know how to do all of that.
    Thanks in advance,Bob
    Code; API; Business Objects; Universe; Crystal; BO Enterprise X11; Crystal Reports XI

    With the code, you've presumably logged on to the database. To insert objects on to a new report you'd want to use code along the following lines:
    private void AddTableFromDataSet(ref CrystalDecisions.CrystalReports.Engine.ReportDocument rpt, System.Data.DataSet ds)
    ISCDReportClientDocument rasReport = rpt.ReportClientDocument;
    // Convert the DataSet to an ISCRDataset object (something the ISCDReportClientDocument can understand)
    CrystalDecisions.ReportAppServer.DataDefModel.ISCRDataSet rasDS;
    rasDS = CrystalDecisions.ReportAppServer.DataSetConversion.DataSetConverter.Convert(ds);
    // Add the dataset as a data source to the report
    rasReport.DatabaseController.AddDataSource((object)rasDS);
    // Add a field to the report canvas
    // Note: This is quick and dirty. No positioning, resizing, formatting, etc.
    CrystalDecisions.ReportAppServer.Controllers.ISCRResultFieldController rfc;
    CrystalDecisions.ReportAppServer.DataDefModel.ISCRTable crTable;
    CrystalDecisions.ReportAppServer.DataDefModel.ISCRField crField;
    rfc = rasReport.DataDefController.ResultFieldController;
    crTable = rasReport.Database.Tables[0];
    crField = crTable.DataFields[2]; // Hardcoded field "Customer Name" in the Customer table from Xtreme Sample Database
    rfc.Add(-1, crField);
    // Save the report template to disk (without data)
    //object path = @"c:\documents and settings\administrator\desktop\";
    //rasReport.SaveAs("test.rpt", ref path, 0);
    //MessageBox.Show("Done!");
    For more info, see sample apps on the following link:
    http://wiki.sdn.sap.com/wiki/x/IgBmBQ
    Also, consult your 'Report Application Server .NET SDK Developer Guide" and  "Report Application Server .NET API Guide". I'd provide the appropriate links, but you do not mention the version of CR you are using...
    Thread moved to the '.NET - SAP Crystal Reports" forum.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Crystal Reports software registration

    I recently sold 5 copies of Crystal Reports XI Standard (boxed product) to a customer, and after they worked with the product for a couple of weeks, they decided that the product would not do what they needed, and they ended up shelving the product.  I purchased 2 copies of the product back from them, as I have a need for it in my office.  Unfortunately, they already registered the product, and when I try to register it with my company information, I'm getting a warning dialog that the product has already been registered.  I called the 800 number for support, and they told me that I needed to have this addressed through this forum.  Can you please provide assistance so that I can get this taken care of?
    Thanks in advance.
    Regards,
    Tim Thousand
    Computer Concepts

    Hi Tim,
    No worries. You only need to modify the registry settings. Before modifying the registry I recommend you to take a strong backup of it on a local drive.
    We need to make Crystal Reports recognize the valid registration number:
    1. Start the Registry Editor. On the 'Start' menu, click 'Run'. Type 'Regedit' and click 'OK'.
    2. Expand the registry subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\Crystal Reports\Keycodes\CR Std
    NB:
    CR Std for Crystal Reports Standard Edition
    CR Dev for Crystal Reports Developer Edition
    CR Pro for Crystal Reports Professional Edition
    3. Highlight the 'CR Std' folder and go to the 'Edit' menu and click 'New' then 'String Value'.
    4. Enter 'Serial' as the string value.
    5. Right click 'Serial' and select 'Modify'. Enter your registration number as the 'Value Data'.
    Exit the Registry. When you re-start Crystal Reports, the 'About Crystal Reports...' screen will display your valid registration number
    If you are unable to see the changes, please revert to me.
    Regards,
    Arun Sasi

  • Move Crystal Reports 10 Registration To A New Machine

    Is there a way to deregister a Crystal Key Code to transfer the application to a new PC and reregister?

    Hello,
    yes this is possible.
    You can get the keycode from the registry searching for HKLM/software/Crystal Reports and use this on the new machine.
    Best regards
    Falk

  • Crystal Report - Export; The system cannot find the path specified

    We are trying to export a reports using the crystal report sdk either export to disk or export to stream. While doing the export
    we are getting the following error
       at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
    at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
    at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
    at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
         at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export(ExportOptions options)
    Any help would be appreciated much

    Try searching and you'll find lots of info on this subject. Look for most recent posts.
    Error suggests you are exporting to a folder that does not exist or you do not have permission to write to.
    Don

  • Printing Crystal reports into adobe-hyperlinks arent getting created

    We use a third party program, iMIS to print confirmations.  These confirmations are created in Crystal Reports.  When i print these documents to adobe not all hyperlinks are coded.
    If i export the document to word then print that document into adobe it has the embedded hyperlinks.  (But this way entails alot of extra steps to create, and no normal user will want to do this)
    Is there anyway i can get the embedded hyperlinks to print straight into adobe? (without having to do the many extra steps it takes to export to word then to adobe)
    (it is very frustrating, b/c i am the one that created these 'cool' reports but no one is getting the information.)

    If Crystal Reports supports creation of a PDF with PDF Link annotations it will be discussed in the Crystal Reports Support/User documentation. If it is not supported then you'll have to accept the Crystal Reports limitation and continue with the "2-step" shuffle. 
    At its core the issue is with Crystal Reports rather than PDF or Acrobat.
    Be well...

  • Create a Crystal report to display the sum of G/L account code within a specific period

    Hi,
    Just wonder is it possible to create a crystal report to display the total of a G/L account code within a specific period?
    How to write the query to get the sum within a specific period?
    For example:
    Period: 2014-06-01-2014-06-10
    Account code A: USD "TOTAL"
    Account code B: USD "TOTAL"
    Thanks

    Hi Olga,
    Please check below Query.
    SELECT T1.[Account], T1.[ShortName], SUM (T1.[Debit]) as Debit, SUM (T1.[Credit]) As Credit, SUM (T1.[FCDebit]) As FCDebit, SUM (T1.[FCCredit]) As FCCredit, SUM (T1.[SYSDeb]) As SysDebit , SUM (T1.[SYSCred]) As SysCredit  FROM OJDT T0  INNER JOIN JDT1 T1 ON T0.[TransId] = T1.[TransId] WHERE T1.[RefDate] >=[%3]  AND   T1.[RefDate] <=[%4]
    Hope this Help
    Regards::::
    Atul Chakraborty

  • Crystal Reports v10. SP6 install failed. Reinstall product code invalid

    As the title says, I downloaded and installed the SP6 patch for Crystal Reports Professional Edition version 10, and the programme crashed on load up (even after numerous restarts of the computer)
    I tried re-installing the patch to no avail.
    So I loaded the original full installation file, and ran the 'reinstall' option. The prompt box checked that I wanted to uninstall existing version first, which I declined to do on the first pass (this didn't resolve the problem)
    I then re-ran the reinstall and selected 'yes' to uninstall existing, this being the only option left to me.
    I was then prompted to re-enter the product code. I did this using the original code supplied when I bought the software (in 2004) and the code was rejected as it has apparantly 'expired'.
    After about an hour trying to decipher this website, I called a couple of support numbers, both of which insisted the only way to contact support was through this forum.
    Hence this post.
    I would be grateful therefore for any response.

    Spoke too soon.
    Programme is now installed, but prompting me for a registration key, which I do not have.
    Website link embedded within programme is now out of date.
    ..so I'm back to this forum which I understand is my sole source for this information.
    Any help gratefully received.

  • Crystal report preview window freezes if I push any key on the keyboard

    our system is a pretty old one, and we are still using crystal report 7 and vc6(mfc6).
    It is a simple dialog based application with a button and a flex grid7.1 component on it.
    when the button is clicked, a crystal report preview window will be opened and become the active window.
    the problem is that, when i pushed a key on the keyboard ('a' for example) the whole application will freeze, and CPU Occupancy Rate is 100%.
    but if I switch the dialog to be current active window after a preview window opened, keyboard input won't make the application freeze.
    It seems that crystal report preview window don't know how to deal with the keyboard input.
    BTW:
    I use the methods below to open a preview window.
    PEOpenEngine
    PEOpenPrintJob
    PEPrintReport
    have anyone here met any similiar problems before?
    I really need your help.
    thanks in advance.
    Edited by: zhengli on May 26, 2010 4:36 AM

    Moved to Legacy Application Development SDKs forum.
    I have nothing for you, other than; consider upgrading - after all CR 7 shipped in 1998(!). I don't know what OS you are on, but I suspect what ever OS it is, it was not even in a concept stage of thought when CR 7 shipped. E.g.; this may be an OS issue more than anything else.
    BTW., print engine APIs were retired in version 9 of Crystal Reports. At this time, your best option is to upgrade to CR 2008 (12.0)and use .NET or Java. If you are using VB 6 or equivalent, you could still upgrade to CR XI r2 (11.5) and use the Report Designer Component (RDC). However, note that CR XI r2 will be out of support in June of this year. And CR XI R2 is the last version of CR to include the RDC.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Edited by: Ludek Uher on May 26, 2010 8:28 AM

  • Exporting a crystal report as PDF and Attaching to an email via code - Filename Issuses?

    Post Author: alynch
    CA Forum: .NET
    I need to export a crystal report as a pdf and send it out via email.  I have created a subroutine that works but the attached filename come up as "untitled.txt" so the receiving machine believes it is a text file.  If I rename it on the recipients machine to a ".pdf" I can open it with acrobat and it looks OK.  Does anyone know how to rename the file as a pdf prior to sending it out? 
    Thank You.
    al
    I have included a copy of the subroutine:
    Dim repdoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument()
    Dim diskOpts As New CrystalDecisions.Shared.DiskFileDestinationOptions()
    Dim ExpOpts As CrystalDecisions.Shared.ExportOptions
    Dim MailOpts As New CrystalDecisions.Shared.MicrosoftMailDestinationOptions()
    repdoc = Me.CrystalReport11
    repdoc.Load("C:\Documents and Settings\User\My Documents\Visual Studio 2005\Projects\WindowsApplication3\WindowsApplication3\CrystalReport1.rpt")
    ExpOpts = repdoc.ExportOptions
    With ExpOpts
    .ExportDestinationType = CrystalDecisions.&#91;Shared&#93;.ExportDestinationType.MicrosoftMail
    .ExportFormatType = CrystalDecisions.&#91;Shared&#93;.ExportFormatType.PortableDocFormat
    End With
    With MailOpts
    .MailMessage = "Message"
    .MailToList = "enter email adress here"
    .MailSubject = "Attached is a PDF file - .net Export test "
    End With
    ExpOpts.DestinationOptions = MailOpts
    Try
    repdoc.Export()
    Catch err As Exception
    MessageBox.Show(err.ToString())
    End Try
    End Sub

    Post Author: Knight
    CA Forum: .NET
    I had this same problem today, here's what I used. Its built in 2 parts. Step one loops throught and exports PDF copies of a traking report. Step 2 builds an email list from a SQl query and sends it.STEP ONE:Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click        'Declare the some variables        Dim row1 As DataRow        Dim brokerID As String        Dim brokername As String        Dim brokerEmail As String        Dim shipdate As String        Dim crParameterFieldDefinitions As ParameterFieldDefinitions        Dim crParameterFieldDefinition As ParameterFieldDefinition        Dim crParameterValues As New ParameterValues()        Dim crParameterDiscreteValue As New ParameterDiscreteValue()        Dim crParameterFieldDefinitions1 As ParameterFieldDefinitions        Dim crParameterFieldDefinition1 As ParameterFieldDefinition        Dim crParameterValues1 As New ParameterValues()        Dim crParameterDiscreteValue1 As New ParameterDiscreteValue()        Dim CrReport As New CrystalReport1() ' Report Name         Dim report As ReportDocument = "O:KNIFormats_ReportPrivateSMStageShipmentInfo"        Dim CrExportOptions As ExportOptions        Dim CrDiskFileDestinationOptions As New DiskFileDestinationOptions()        Dim CrFormatTypeOptions As New PdfRtfWordFormatOptions()        Dim SHIPDATE123 As String        SHIPDATE123 = _month & "/" & _day & "/" & year        Dim db As String        db = System.Configuration.ConfigurationSettings.AppSettings("Datalogin")        Dim sqlCon As New SqlConnection        sqlCon.ConnectionString = db        Dim strsql1 As String        strsql1 = "SELECT     tblSOOrd_Hdr.BrokerCd, tblSO_Ord_Hdr.BrokerName, tblSM_Ship_Hdr.ShipDate "        strsql1 &= "FROM         tblSO_Ord_Hdr INNER JOIN tblSM_Ship_Hdr ON tblSO_Ord_Hdr.Locale = tblSM_Ship_Hdr.Locale AND tblSO_Ord_Hdr.OrdNo = tblSM_Ship_Hdr.OrdNo AND "        strsql1 &= "              tblSO_Ord_Hdr.RlsNo = tblSM_Ship_Hdr.RlsNo INNER JOIN tblSys_Cust_Broker ON tblSO_Ord_Hdr.BrokerCd = tblSys_Cust_Broker.BrokerCd "        strsql1 &= "GROUP BY tblSO_Ord_Hdr.BrokerCd, tblSM_Ship_Hdr.ShipDate, tblSO_Ord_Hdr.BrokerName "        strsql1 &= "HAVING      (tblSM_Ship_Hdr.ShipDate = '" & SHIPDATE123 & "') "        Dim da1 As New SqlDataAdapter(strsql1, sqlCon)        Dim worktbl1 As DataTable        worktbl1 = New DataTable("tblEmail")        da1.Fill(worktbl1)        da1.FillSchema(worktbl1, SchemaType.Source)        If worktbl1.Rows.Count > 0 Then            For Each row1 In worktbl1.Rows                brokerID = CStr(row1("BrokerCd")).Trim                brokername = CStr(row1("BrokerName")).Trim                shipdate = CStr(row1("ShipDate")).Trim                CrReport.Load()                crParameterDiscreteValue.Value = shipdate                crParameterFieldDefinitions = CrReport.DataDefinition.ParameterFields                crParameterFieldDefinition = crParameterFieldDefinitions.Item("ShipDate")                crParameterValues = crParameterFieldDefinition.CurrentValues                crParameterValues.Clear()                crParameterValues.Add(crParameterDiscreteValue)                crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)                crParameterDiscreteValue1.Value = brokerID                crParameterFieldDefinitions1 = CrReport.DataDefinition.ParameterFields                crParameterFieldDefinition1 = crParameterFieldDefinitions1.Item("Broker")                crParameterValues1 = crParameterFieldDefinition1.CurrentValues                crParameterValues1.Clear()                crParameterValues1.Add(crParameterDiscreteValue1)                crParameterFieldDefinition1.ApplyCurrentValues(crParameterValues1)                CrDiskFileDestinationOptions.DiskFileName = "c:Test_Folder20" & _year & "-" & _month & "-" & day & "" & brokername & ".pdf"                CrFormatTypeOptions.FirstPageNumber = 1 ' Start Page in the Report                 CrFormatTypeOptions.LastPageNumber = 1000 ' End Page in the Report                 CrFormatTypeOptions.UsePageRange = True                CrExportOptions = CrReport.ExportOptions                With CrExportOptions                    .ExportDestinationType = ExportDestinationType.DiskFile                    .ExportFormatType = ExportFormatType.PortableDocFormat                    .DestinationOptions = CrDiskFileDestinationOptions                    .FormatOptions = CrFormatTypeOptions                End With                Try                    CrReport.Export()                Catch err As Exception                    MessageBox.Show("DID NOT EXPORT")                End Try            Next            MessageBox.Show("All PDF's exported succesfully")        End If    End SubSTEP 2: Private Sub Button3Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click        Dim row2 As DataRow        Dim SHIPDATE123 As String        SHIPDATE123 = _month & "/" & _day & "/" & year        Dim db1 As String        db1 = System.Configuration.ConfigurationSettings.AppSettings("Datalogin")        Dim sqlCon As New SqlConnection        sqlCon.ConnectionString = db1        Dim strsql2 As String        strsql2 = "SELECT     tblSOOrd_Hdr.BrokerCd, tblSys_Cust_Broker.BrokerName, tblSM_Ship_Hdr.ShipDate, tblSys_Cust_Broker.ContactEmail "        strsql2 &= "FROM      tblSO_Ord_Hdr INNER JOIN tblSM_Ship_Hdr ON tblSO_Ord_Hdr.Locale = tblSM_Ship_Hdr.Locale AND tblSO_Ord_Hdr.OrdNo = tblSM_Ship_Hdr.OrdNo AND "        strsql2 &= "          tblSO_Ord_Hdr.RlsNo = tblSM_Ship_Hdr.RlsNo INNER JOIN tblSys_Cust_Broker ON tblSO_Ord_Hdr.BrokerCd = tblSys_Cust_Broker.BrokerCd "        strsql2 &= "GROUP BY  tblSO_Ord_Hdr.BrokerCd, tblSM_Ship_Hdr.ShipDate, tblSys_Cust_Broker.ContactEmail, tblSys_Cust_Broker.BrokerName, tblSys_Cust_Broker.Email_ASN "        strsql2 &= "HAVING    (tblSM_Ship_Hdr.ShipDate = '" & SHIPDATE123 & "') AND (tblSys_Cust_Broker.Email_ASN = 1) AND (tblSys_Cust_Broker.ContactEmail <> '') " Dim da1 As New SqlDataAdapter(strsql2, sqlCon) Dim worktbl2 As DataTable worktbl2 = New DataTable("tblEmail12") da1.Fill(worktbl2) da1.FillSchema(worktbl2, SchemaType.Source) Dim brokerID As String Dim brokername As String Dim brokerEmail As String Dim shipdate As String If worktbl2.Rows.Count > 0 Then For Each row2 In worktbl2.Rows brokerID = CStr(row2("BrokerCd")).Trim brokername = CStr(row2("BrokerName")).Trim brokerEmail = CStr(row2("ContactEmail")).Trim shipdate = CStr(row2("ShipDate")).Trim Dim mail As New MailMessage Dim att As String att = "c:Test_Folder20" & _year & "-" & _month & "-" & _day & "" & brokername & ".pdf" 'set the addresses mail.From = New MailAddress("[email protected]") mail.To.Add(brokerEmail) mail.Attachments.Add(New Attachment(att)) 'set the content mail.Subject = "Shipment Tracking report from Knox Nursery for " & SHIPDATE123 mail.IsBodyHtml = True mail.Body = "
    " mail.Body &= "This shipment update has been requested by:
    "                'send the message                Dim smtp As New SmtpClient                smtp.Send(mail)                ' MessageBox.Show("No Records Found", "Failed to send", MessageBoxButtons.OK, MessageBoxIcon.Stop            Next        Else            MessageBox.Show("No broker have opted in", "No Emails Sent", MessageBoxButtons.OK, MessageBoxIcon.Information)        End If        MessageBox.Show("Emails sent... ", "Emails Sent", MessageBoxButtons.OK, MessageBoxIcon.Information)    End Sub

  • How to change Crystal Reports XI database name at run time from ASP code using ADO

    Dear All,
    I need advises regarding to my problem below
    I have two database in same SQL 2005 SERVER for TEST01 and LIVE01 Environtment, and I've created more than 100 reports with Crystal Reports 11 and call it from ASP classic page.
    The problem is how can I change a database from TEST01 to LIVE01 at the run time from ASP code as I already using TEST01 database on Crystal Reports and I do not want to set a new database location inside crystal for each reports
    Thanks and wait for your reply soon.
    Below is my code, which has no effect to crystal reports although I've change the database from TEST01 to LIVE01:
    <%
    Dim oADOConnection, oRptTable, oADORecordset, sql
    Dim struser, strpwd, strdriver, dblocation, dbname, strConnect
    struser = "sa"
    strpwd = ""     
    strdriver = "{SQL SERVER}" 
    dblocation = "SQL200501"     
    dbname = "LIVE01"    ' Changed from TEST01 to LIVE01
    strConnect = "User Id=" & strUser & ";"
    strConnect = strConnect & "PWD=" & strPwd & ";"
    strConnect = strConnect & "DRIVER=" & StrDriver & ";"
    strConnect = strConnect & "SERVER=" & DBLocation & ";"
    strConnect = strConnect & "DATABASE=" & dbName
    sql="Select * from Employee"
    Set session("oApp") = Server.CreateObject("CrystalRuntime.Application.11")
    Set session("oRpt") = session("oApp").OpenReport("C:\REPORTS\RPT01.RPT", 1) 'USING TEST01 DATABASE
    session("oRpt").MorePrintEngineErrorMessages = False
    session("oRpt").EnableParameterPrompting = False
    session("oRpt").DiscardSavedData
    Set oADOConnection = Server.CreateObject("ADODB.Connection")
    oADOConnection.Open (strConnect)
    Set oADORecordset = Server.CreateObject("ADODB.Recordset")
    Set oRptTable = session("oRpt").Database.Tables.Item(1)
    oRptTable.SetDataSource oADORecordset, 3
    session("oRpt").SQLQueryString = CStr(sql)
    session("oRpt").ReadRecords
    %>

    Did you ever find a solution to this problem?  I have the same problem when moving reports from development to Test to Production environments.  If the DBName is not the same the report ignores the name provided at runtime.

  • Crystal Report on SAP R/3 ABAP Program or Transaction Code

    Hi Experts,
    I am working on SAP BI, my current requirement is to develop a dashboard. Client given the list of reports and they want to see these reports as a dashboard in BO. All these reports are SAP R/3 ABAP Programs. My doubt here is, is it possible to connect directly or bring directly a ABAP program in crystal reports. I know that form crystal reports we can connect to SAP R/3 through SAP Table, Cluster , Function Modules and so on.
    Anyone please clarify this doubt.
    Thanks & Regards
    Ramakrishna Kamurthy

    Moving to Integration kits forum: Questions re: Crystal Reports/Enterprise to SAP Integration Kit - SAP

Maybe you are looking for

  • Develop settings did not transfer in Lightroom 5

    Hi, when I upgraded my catalog from Lightroom 4 to Lightroom 5, it appears that not all of the my develop settings transfered for all photos.  If I am to open the catalog in Lightroom 4, the appear to still exist.  How can I see all the settings in L

  • Questions re: Switching to Premiere Pro

    I have always been so happy to say to anyone:  "I am a Final Cut Pro Editor". I have been, professionally, since verion 1. Since then, I have used every version up until now. I LOVE THE FCP SUITE! However - I recently installed FCP X, and have spent

  • Bring back the Filter option in Search results

    Well, not only Sorting is messed up (removed) from the latest realease of Spotify, filtering is as well. You can no longer filter (ctrl-F/cmd-F) your search results, and, as with many other great features killed without explanation, we want this one

  • Old emails on grid control being sent

    ah ok so I was able to resolve email alerts not being sent but then I got flooded with old alerts how do I clean these up from grid control?

  • Find / Highlight limitations or bug?

    I have SQL Developer 3.1 installed on my PC, and am finding the 'Find/Highlight' rather restrictive. Not sure if this is just a limitation, or whether it is a bug. for example, I can query individual numbers, dates, strings, and date ranges (i.e. > '