Crystal Report 10 and Visual Basic 6 - logon failed in crystal report viewe

Guyz,.
Report viewer is showing logon failed, pelase help me, i can able to view the data from rs1(recorset).
please hellp me to fix this issue, i need to pass the sql query to my pre designed Crystal report which has all the field as same as SQL query.
Please suggest me if any other alternate way to do this , my code is below.
Environment : Crystal Report 10, Visual Basic 6
cr_preview -> CrystalActiveXReportViewer
RepName  -> Fiename and path of the Crystal report is designed from Crystal Report Designer.
Function show_rep(Sql As String, RepName As String)
Dim crystal As CRAXDRT.Application
Dim report As New CRAXDRT.report
Dim rs1 As New ADODB.Recordset
    If rs1.State Then rs1.Close
    rs1.Open Sql, cn, adOpenStatic, adLockReadOnly
    Set crystal = New CRAXDRT.Application
    Set report = crystal.OpenReport(RepName)
    report.DiscardSavedData
    report.Database.SetDataSource rs1
    'cr_preview.Refresh
    cr_preview.ReportSource = report
    cr_preview.Visible = True
    cr_preview.ViewReport
    Do While cr_preview.IsBusy
        DoEvents
    Loop
    cr_preview.Zoom 100
    If rs1.State Then rs1.Close
    Set rs1 = Nothing
Set crystal = Nothing
Set report = Nothing
End Function

Hi,
Please refer to the link for the list of example, [click here|http://pscode.com/vb/scripts/BrowseCategoryOrSearchResults.asp?optSort=Alphabetical&lngWId=1&B1=QuickSearch&txtCriteria=crystalreport+10&blnWorldDropDownUsed=TRUE&txtMaxNumberOfEntriesPerPage=10&blnResetAllVariables=TRUE]
Regards,
Clint

Similar Messages

  • The migrated Crystal Report throws "The database logon information for this report is either incomplete or incorrect" error

    [ENVIRONMENT]
    Product version - BI4.1 SP03
    OS - Windows 2008 R2
    CMS Database - Oracle 11g
    Java Application Server - Tomcat7
    [ISSUE]
    Using the Upgrade Management Tool to completely migrate a BOXI3.1 SP3+FP3.6 to BI4.1 SP03.  The reporting database from both BOXI3.1 and BI4.1 are the same and so is the database logon credential.
    When viewing and refresh a migrated Crystal Report, it throws "The viewer could not process an event. The database logon information for this report is either incomplete or incorrect. [] ---- Error code:0 [CRWEB00000119]" error in both BI Launchpad and "The database logon information for this report is either incomplete or incorrect" in scheduled job.
    [STEPS TAKEN]
    - Update the Database Configuration with the SAME Oracle database password in CMC and "The database logon information for this report is either incomplete or incorrect" issue goes away.
    I search the SAP SMP and SCN forum and found no reference on this UMT and Crystal Report database logon problem.  Hope any of you have seen this problem and share if there is an ADAPT for it.
    Thank you in advance,
    Jin-Chong

    Hi,
    The BI4.1 SP03 server and client and Crystal Report 2013 SP03 developer and Crystal Report for Enterprise 4.1 SP03 are all installed onto this Windows 2008 R2 server.
    I am able to open the migrated report from CMS repository in Crystal Report 2013 SP03 developer and am able to refresh it with database logon password provided.  After save it back to the Enterprise, the database logon password field for this report in CMC becomes empty so that I have to enter the database password and choose "Use same database logon as when report is run" when viewing and scheduling report.
    What is interesting to me is that the UMT seems to migrate the report along the database logon password because I can see the encrypted password in the report database logon property in CMC.  The workaround is to reenter the database logon password in the report database logon property in CMC.
    With this said, there are hundreds of the Crystal reports and the workaround would consume lots of manual work by update each report's database logon password in CMC.
    For other customers who have more crystal reports, I wonder if there is an automated way to update the crystal report's database logon password on BI4.1 or if this is an isolated incident on my new BI4.1 SP03 environment.
    I run UMT in command line to perform livetolive migration, and my steps are listed below
    cd "E:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\apps\upgradeManagementTool\jars\"
    "E:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win64_x64\sapjvm\bin\javaw.exe" -Xmx56g -Djava.library.path="..\..\..\..\win64_x64" -jar upgrademanagementtool.jar -internal_use_only_noversioncheck -responsefile LIVETOLIVEResponseFile.txt
    LIVETOLIVEResponseFile.txt:
    mode=livetolive
    source=edhc01nwapp65:6400
    sourceusername=Administrator
    sourcepassword=xxxxxxxxxx
    destination=WAPP246N:6400
    destinationusername=Administrator
    destinationpassword=xxxxxxxxxx
    logfile=E:\temp\livetolive.csv
    configparam:base_url=https://boprod.bsc.bscal.com/dswsbobje
    locale=en_US
    Regards,
    Jin-Chong

  • Hello guys...im john from the phillippines and im just new to sap business one...ryt now my boss tasked me to research about crystal reports and he is making a demand of report for customer recievables ageing.......i find it hard to look at on the part wh

    hello guys...im john from the phillippines and im just new to sap business one...ryt now my boss tasked me to research about crystal reports and he is making a demand of report for customer recievables ageing.......i find it hard to look at on the part which corresponds to value dates of customer like their lapses in payments for the previous months....anyone who could help me?thanks

    hello guys...im john from the phillippines and im just new to sap business one...ryt now my boss tasked me to research about crystal reports and he is making a demand of report for customer recievables ageing.......i find it hard to look at on the part which corresponds to value dates of customer like their lapses in payments for the previous months....anyone who could help me?thanks

  • Crystal Reports 13 and Visual Basic 6

    I have a application written in Visual Basic 6, with an access back end, with major reporting functions provided by Crystal Reports 6.
    This program is used by a number of clients that all until some weeks had XP as their operating system.    Needless to say cr6 does
    not play well in win 8.1 environment and hence my desire to update to CR13.   VB6 I am told is a dying if not already defunct but the truth is I like it and would like to continue to use it.   My problem is that I cannot find any info on how to use CR13 in VB6.   If it was just a matter of running a pre-defined report I guess that can be done, but it somewhat defeats me how to pass parameters and variables to the report.   It seems a long  way removed from CR6 but willing to give CR13 a good go in the hope of making it work, as I have nothing but praise for my comfortable (for 10 years) CR6
    Any help very gratefully accepted with hat in hand.

    And to add to all that, VB 6 is dead along time ago. We no longer have any SDK that will work in VB 6 now. No COM components and VB 6 does not support .NET framework.
    Only option is to upgrade to Visual Studio 2010, 2012 or 2013 and use CR for VS.
    SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
    Sample apps are here:
    NET RAS SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
    Don

  • Logon Failed using Crystal Report XI

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

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

  • Using Crystal Reports in Visual Basic 2010

    I am trying to add several Crystal Reports to a new project and having a major problem.  Here's the situation. I created a new Visual Basic 2010 project with only one form, In visual Basic I added Crystal Reports.   I then imported a form that was created in Crystal Reports 8.5.
    There were no errors and the report with valid data was visible. I then tried to run...it wouldn't run and 31 errors appeared.
    Obviously I missed something. I have searched for a very simple basic tutorial and  either can't find one or didn't recognize one.
    Can anyone point me in the right direction.
    Milt

    Ok. So, you added the report to the project. Now we have to add the CR assemblies to the project, add the viewer (if need be) and fire it off. Simplest code would be:
    Public Sub New()
            ' This call is required by the designer.
            InitializeComponent()
            ' Add any initialization after the InitializeComponent() call.
            CrystalReportViewer1.ReportSource = ("path to report")
        End Sub
    In this case you are using the viewer SDK to runt he report. The report will prompt for any logon parameters - but you can code these also. You can load the report via the engine as bellow. Again, the report will prompt. I prefer to use the engine as it is way more "extensible"...
    Public Sub New()
            ' This call is required by the designer.
            InitializeComponent()
            ' Add any initialization after the InitializeComponent() call.
            Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument()
            crReportDocument.Load("path to report")
            'Bind the report to the viewer
            CrystalReportViewer1.ReportSource = crReportDocument
        End Sub
    If you have a report added to the project (strongly typed) the code would be:
    CrystalReportViewer1.ReportSource = New myReport()
    For more details, I'd recommend looking at the sample app vbnet_win_simplepreviewreport.zip available from the following location:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    The developer help files are here:
    [SAP Crystal Reports .NET SDK Developer Guide|http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_dg_2010_en.zip]
    [SAP Crystal Reports .NET API Guide|http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_api_2010_en.zip]
    - Ludek

  • Database logon failed when opening report with parameter values in CrystalReportViewer

    Hi,
    I designed 2 crystal reports: report A contains parameter fields and report B did not contain any parameter
    I can open both reports in development site using CrystalReportViewer control. When I open the reports in testing site,
    I can open report B but can't open report A. It display error message "Database logon failed". When I set EnableDatabaseLogonPrompt
    to true and try to open the report A again, it shows database connection data which was created on report.
    In addition, it is strange that it displays error "Database logon failed" when I click an item in group tree panel of the report B. This indicates that it can load data from database
    in testing site but it connect to development database when clicking items in group tree panel
    All reports connect to database using Windows Authenication. It use dynamic database connection at runtime
    How to ensure the report always connect database using login data dynamically at runtime?
    Below is my code about database connection:
    string strServerName = null;
    string strDatabaseName = null;
    ReportDocument rptDoc = new ReportDocument();
    rptDoc.Load(strFilePath);
    ConnectionInfo connInfo = new ConnectionInfo();
    TableLogOnInfo logonInfo;
    for (int i = 0; i < rptDoc.Database.Tables.Count; i++)
    logonInfo = rptDoc.Database.Tables[i].LogOnInfo;
    ReportHelper.GetReportConnection(ref strServerName, ref strDatabaseName, strSystemType);
    logonInfo.ConnectionInfo.ServerName = strServerName; 
    logonInfo.ConnectionInfo.DatabaseName = strDatabaseName;
    logonInfo.ConnectionInfo.IntegratedSecurity = true;
    rptDoc.Database.Tables[i].ApplyLogOnInfo(logonInfo);
    rptDoc.Database.Tables[i].Location = rptDoc.Database.Tables[i].Location.Substring(0, rptDoc.Database.Tables[i].Location.Length - 2);
    crvViewer.ReportSource = rptDoc;
    crvViewer.DataBind();
    Development environment:
    - SAP Crystal Reports 2013 Support Pack 1
    - Visual Studio Professional 2012
    - .NET Framework 3.5
    - DDL
    CrystalDecisions.Shared (v 13.0.8.1216)
    CrystalDecisions.Web (v 13.0.8.1216)
    CrystalDecisions.CrystalReports.Engine (v 13.0.8.1216)
    Database connection in crystal report:
    - Database Type: OLEDB (ADO)
    - Provider: SQLOLEDB
    - Integrated Security: True
    Thanks and Regards,
    Tony

    Hi Tonylck
    Try  to pass login info to crystal report dynamically as follows:
    using System;
    using System.Windows.Forms;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    namespace WindowsApplication1
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    private void button1_Click(object sender, EventArgs e)
    ReportDocument cryRpt = new ReportDocument();
    TableLogOnInfos crtableLogoninfos = new TableLogOnInfos();
    TableLogOnInfo crtableLogoninfo = new TableLogOnInfo();
    ConnectionInfo crConnectionInfo = new ConnectionInfo();
    Tables CrTables ;
    cryRpt.Load("PUT CRYSTAL REPORT PATH HERE\CrystalReport1.rpt");
    crConnectionInfo.ServerName = "YOUR SERVER NAME";
    crConnectionInfo.DatabaseName = "YOUR DATABASE NAME";
    crConnectionInfo.UserID = "YOUR DATABASE USERNAME";
    crConnectionInfo.Password = "YOUR DATABASE PASSWORD";
    CrTables = cryRpt.Database.Tables ;
    foreach (CrystalDecisions.CrystalReports.Engine.Table CrTable in CrTables)
    crtableLogoninfo = CrTable.LogOnInfo;
    crtableLogoninfo.ConnectionInfo = crConnectionInfo;
    CrTable.ApplyLogOnInfo(crtableLogoninfo);
    crystalReportViewer1.ReportSource = cryRpt;
    crystalReportViewer1.Refresh();
    Ref
    http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-dynamic-login.htm
    Mark as answer if you find it useful
    Shridhar J Joshi Thanks a lot

  • Database Logon Failed after first report

    I have a Windows Server 2003 x86 server running IIS6 and ASP.NET. On this server, I have two different web forms set up to export Crystal Reports to PDF.
    My problem is that only one of these reports can run. For example, I open report 1 and can then reopen (generate PDF of) report1 as many times as I want. I cannot open report 2 - I get a "Database Logon Failed" error message. If I restart the server, I can generate a PDF of report 2 successfully and as many times as I want but report 1 will get a "Database Logon Failed" error message.
    Has anyone seen this behavior before? My code is very concise and manually closes the report document (and forces the garbage collection to run) once the PDF has been generated. However, for some reason, the report is staying in memory and is trying to run again even though it has been closed. It is driving me crazy.
    Thanks in advance for any assistance you can offer.

    Let's get the server confusion out of the way.
    A "server" runtime install is an msi file called CrystalReports11_5_NET_2005.msi.
    The msi is in a download called Crystal Reports XI Release 2 - FP x.x .NET Server Install (where x.x refers to SP or FP version (e.g.; Crystal Reports XI Release 2 - FP 5.6 .NET Server Install)
    So, this gives you an easy way of installing the CR runtime on a server (e.g.. Win 2003 server). No CR server (RAS) implication here. To install the runtime, all you have to do is run the msi, provide the keycode when prompted and the runtime is installed. You should see the directory C:\Program Files\Business Objects\Common\3.5\bin created. No pretty interface, etc. If you want a pretty interface, you create your own setup project or msi using the CR msm files.
    Hopefully this clears up the "server" confusion.
    To the actual issue on hand.
    You say this works with older "Crystal Reports viewers" installed on a WIN 2003 64 bit server. My question is; does this CR XI r2 based app work anywhere? Your dev box? Staging server?
    Ludek

  • Report and Field Explorer dont work in Crystal Reports 2008

    Hi
    I am using the following versions of Crystal Reports:
    Crystal Reports 2008  (Service Pack 1)
    CR Developer
    Version 12.1.0.892
    Product Type: Full
    Target environment: .NET 3.5 windows forms and asp.net application
    Since a couple of days, i can no longer access the field explorer nor the report exlorer. Anything else seems to be working fine. I first thought these windows were somewhere hidden behind another window but as much as i searched, i didnt succed in finding them :-(.  Our product has a valid licence and is registered, by the way.
    My question is now, what do i have to do to get my field/report explorer again. Maybe, installing the latest service pack had an influence, but i cannot tell for sure.
    Any help is appreciated
    Thanks in advance

    Please note that this forum is dedicated to topics related to custom application development or deployment with Crystal Reports in .Net. This includes full versions of Crystal Reports as well as those versions of Crystal Reports bundled with Microsoft Visual Studio .Net.
    Your query appears to concern the CR designer. As such, please post your query to the Crystal Reports Design Forum:
    SAP Crystal Reports
    Ludek

  • How can i write a pattern to a output port of NI PCI 6503 with Traditional NI DAQ 7.0 and Visual Basic 6.0?

    Hello, i'm using a NI PCI-6503 (with CB50LP accesory) to write digital patterns to one of the output ports. Can i do it directly from NIDAQ7.0?
    I know  some Visual Basic 6.0 functions to configure a par as output and to write a pattern to a port, but i don't know how run it.
    I've read some examples from "Help" (C:\Program Files\National Instruments\NI-DAQ\Examples\VBasic\Do) but I can't measuring TTL levels on my CB50LP accesory.
                    Thanks!!

    Hello,
    What is your buffer size ? The buffer should be 0 or greater than 2. You can get this error if your buffer size is equal to 1.
    Regards,
    Isabelle
    National Instruments France
    Isabelle
    Ingénieur d'applications
    National Instruments France

  • ATL, UDT and Visual Basic

    Hi,
    This isn't a measurement studio question but....
    I'm writing an ATL COM object that contains some UDTs that are used in some of the methods
    Ex:
    typedef [public, v1_enum]enum GateModeVal{
    ContinousGating = 0,
    GateOnce = 1
    }GateModeVal;
    typedef [public, v1_enum]enum MeasurementVal{
    FreqA = 1,
    TI_A_B = 2,
    TI_Delay = 3,
    RatioA_B = 4,
    FreqC = 5,
    Totalize_Stop = 6,
    Period = 7,
    TI_Average_A_B = 8,
    Check_10MHz = 9,
    A_Gated_By_B = 10,
    Gate_Time = 11,
    Totalize_Start = 12
    }MeasurementVal;
    The component will be used in Visual Basic.
    Does anybody know if there is a way to access the UDT list in VB so I can populate a list box in the VB app at run time with the descriptive strings
    Thanks
    Curt

    Hi Curt,
    This forum is reserved for Measurement Studio questions. I would recommend posting your question to Microsoft or perhaps refer to this forum.
    Thanks
    Jonathan N.
    National Instruments

  • SQL SERVER 2012 and Visual Basic 2010

    Can an SQL Server 2012 database function when used with a Visual Basic 2010 Program?
    Milt
    sirmilt

    Can an SQL Server 2012 database function when used with a Visual Basic 2010 Program?
    Milt
    sirmilt
    Yes
    Basically you can use any T-SQL query that you want, directly or through a Stored Procedure.
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • Column Headings in the report and adding an extra field to the report

    Hi All.
    I had an issue like i need to put column headings for a report and I want to add an extra field to the report.
    The problem here is that the report was actually cloned from a Query.At the time of cloning,they forgot to add the column headings.
    Now we need to add the column headings for the same.How can we proceed for this and where we need to add our code?
    How to add an extra field  to the existing report?
    Any pointers will be very much helpful.
    Regards,
    SSR.

    Hi,
    you can get this done in 2 ways:
    1 - Change the query to add another column and the re-generate the report
    2 - If changing query is not possible, you can change the report it self for adding extra field. If you look at the code, it will be more like normal ABAP code. you can easily modify it (If you are ABAPer) for your additional requirements.
    thnx,
    ags.
    Edited by: Agasti Kale on Jun 12, 2008 6:26 PM

  • What are events in ALV report and explain how sorting is done  alv report

    events in alv report and sorting in alv report
    Moderator Message: Search before posting.
    Edited by: kishan P on Dec 21, 2011 11:13 AM

    Hi Raja,
    <<content and links removed by moderator>>
    PavanKumar.G
    Edited by: kishan P on Dec 21, 2011 11:12 AM

  • ASP Crystal Report 2008 (12) Oracle 9 and Visual Basic!

    Hi All,
    I'm mainting an old application and I need to simulate the same client environment in my machine.
    I have a VB application (with COM+ server components) that's creates a report object with parameters. But the only thing that this application does it's call an ASP page that contains all the logic to call a .rpt file, connect to Oracle 9i and then show the crystal report inside a MS webbrowser component (activeX) in the VB form.
    I already setup the IIS, and the site there, I put all the .rpt files in the site and if you try to access without calling from VB you can run the asp pages, but the reports still doesn't appears.
    These ASP pages should connect to Oracle and then show the rpt file, but I'm facing the following error:
    The url that's the application creates is for example this: http://localhost/application1/createreport.asp?sSessionId=2&ReportName=TransactionsProcessed.rpt&parameter1&parameter2... etc etc...
    Script Error Number: -21471922153
    File could not be opened because the library "P2sora7.dll" cannot be found.
    User Error Text: An error has ocurred in CreateReport.asp while logging onto the Oracle database server. Please try again.
    I already check the database connection and it is working fine using ODBC, and the application works fine with the database.
    The file p2sora.dll is in C:\WINDOWS\SYSTEM32, I already copied from another machine, and I have installed Crystal Report 2008 (12) in my server machine with Windows 2003 server, that's the application and web server where report should be run. I know that the old application was executed with Crystal 7, but I cannot found this version to buy.
    Edited by: Don Williams on Mar 21, 2010 9:05 AM

    This is the code of the createPage.asp that it's called from VB:
    <%
    On Error Resume Next
    Dim sDLLName
    Dim sDatabaseType
    Dim sServerName
    Dim sUserId
    Dim sPassword
    Dim arrayInteger
    Dim sReportDbName
    Dim oTransStore
    Dim oReportObject
    Dim oCRSections
    Dim oCRSection
    Dim oCRSubReportObject
    Dim oCRReportObjects
    Dim oCRReportObject
    Dim oCRSubReport
    Dim oCRPageEngine
    Dim sSessionId, sReportPath, sReportName, sTablename
    ' Errorhandling Parameters
    Dim lUserErrorNumber, sUserErrorText
    ' -- Get parameters --
    sSessionId = Request.QueryString("SessionId")
    sReportName = Request.QueryString("ReportName")
    sStartDay = Request.QueryString("StartDay")
    sStartMonth = Request.QueryString("StartMonth")
    sStartYear = Request.QueryString("StartYear")
    sEndDay = Request.QueryString("EndDay")
    sEndMonth = Request.QueryString("EndMonth")
    sEndYear = Request.QueryString("EndYear")
    sAccName = Request.QueryString("AccId")
    sUserName = Request.QueryString("UserName")
    ' -- Initialisation --
    Session("ImageFolder") = ".\images"
    sDatabaseType = Request.QueryString("DbType")
    sServerName = Request.QueryString("ServerName")
    sUserId = Request.QueryString("DbUserId")
    sPassword = Request.QueryString("DbPassword")
    sReportPath = Request.QueryString("ReportsFolder")
    ' -- Select DLL for DB Type
    - Hide quoted text -
    sDLLName = "P2sora7.dll"
    Response.Write "DATABASE SELECCIONADA: " & sDatabaseType
    Select Case sDatabaseType
    Case "Oracle":
      sDLLName = "P2sora7.dll"
      sReportDbName = ""
            Case "SQLServer":
                 sDLLName = "P2ssql.dll"
      sReportDbName = Request.QueryString("ReportsDbName")
            Case "Informix":
                 sDLLName = "P2sifmx.dll"
    End Select
    ' -- Set the ErrorNumber to 400 and sErrorText.
    sUserErrorText = "An error has occurred in CreateReport.asp while loading the report details. CreateObject(CrystalRuntime.Application) . Please try again."
    lUserErrorNumber = 400

Maybe you are looking for