Converting a Crystal 4.6 report to Crystal XI using Visual Basic 6.0

I followed instructions for migrating from the OCX to the RDC.....
and the Crystal viewer will open but it's not passing my sql query to the crystal report,
so it ends up loading every single record in the database. I tried adding code to
actually open the db, but that didn't seem to work.
Your help is greatly appreciated!
Set rsCrystal = New ADODB.Recordset
rsCrystal.Open Csql, gdb, adOpenStatic, adLockReadOnly
Form 1
'Declare the application object used to open the rpt file.
Dim CrystalApp As New CRAXDDRT.Application
'Declare the report object
Public CrystalReport As CRAXDDRT.report
Form_Load
Reportname = Path + Filename
Set CrystalReport = CrystalApp.OpenReport(Reportname, 0)
end sub
Private Sub Command1_click
' Call form2 to preview the report
Form2.show
end sub
Form 2
Private sub Form_load
CRViewer1.Reportsource = Form1.CrystalReport
CRViewer1.ViewReport
end sub
Nancy

What I needed to do is set the viewer's reportsource to the sqlquerystring
from the Crystal Report object.
In the print module of form1 (where you select if view or print):
CRReport.SQLQueryString = "Select....from....where"
In the load module of form2 (viewer):
CRViewer.ReportSource = frmPrint.CRReport

Similar Messages

  • Reporting in SAP CE using Visual composer webui

    Hi ,
    I am trying to create some reports using the default data sources.
    Kindly let me know if there is any default reports that are available
    regards,
    rajesh

    Hi Deep,
    Yes, you can connect to BI Datasources in NWDS. In order to that go to:
    Windows->Preferencies->Destination Configurations->R/3 Configuration and press Add button.
    Open the Single Server tab, fill the fields and press OK button.
    Afterwards you should restart the NWDS.
    General documentation about VC in NWDS:
    http://help.sap.de/saphelp_nwce72/helpdata/en/5f/5a9379abab46a08547d60bf6862097/content.htm?frameset=/en/5f/5a9379abab46…
    Regards,
    Talia

  • I am converting existing wpf application to Windows phone 8 app using visual studio 2013

    i want to replace the  xmltextreader for windows phone 8 project ????
    as we dont have  xmltextreader.whitespacehandling...... how to replace this for windows phone project.....
    and i am getting some more error like 'system.net.sockets.socket' doesnot contain a defination for 'beginconnect' and no extension method 'beginconnect' accepting a first argument........

    Hi sagaradi,
    >> So now i want to target that application  to windows 8.1 store and Windows phone 8.1
    For the exception about "System.net.sockets.socket doesnot contain a defination for 'BeginAccept' and no extension mehod 'BeginAccept' accepting a first argument of type 'system.sockets'cuold not be found",
    it is because that System.Net.Sockets is not available in Windows Phone Runtime app, we have to use the
    Windows.Networking.Sockets for instead, for more information, please try to refer to:
    http://stackoverflow.com/questions/23477961/cannot-find-system-net-sockets-assembly-for-wp-8-1 .
    For others exceptions, since I do not have your code, it will be hard to tell. But although WPF/Windows Phone/Windows Store are all XAML-based platforms, they still have a lot of difference among them. Some API which are available in the WPF
    may be not available in the Windows Store and Windows Phone. So please pay attention on it, for more information, please try to refer to the following article:
    #Move form WPF and Microsoft Silverlight to WinRT:
    https://msdn.microsoft.com/en-us/library/windows/apps/br229571.aspx .
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error running reports from Crystal Server XI R2 with datasets

    Hi, sorry if my english is not good. I'm from Spain.
    I have a problem. I'm programming with Visual Basic .NET 2008.
    I'm using Crystal Reports Server and programming under Visual Basic to take reports from crystal Server, changing the tables from the report to datasets and scheduling this report.
    Crystal server change connections to CrystalReports.Dataset.
    Preview reports from server sends me an error "DataBase connector unknown"
    If I run this report (with datasets) into my VBNET application (into a  CrystalDecisions.Windows.Forms.CrystalReportViewer control), IT WORKS!!!
    I need help because I need to schedule these reports (to send them by email, export to PDF formats, ...)

    Reporting off of a dataset is reporting off of a disconnected datasource.  The reason your application works is beacuse you most likely populating a dataset in your application and passing it to the report at the same time.  When scheduling, there is no interaction with the report so unless the report is using an xml file on disk as its datasource, how can it retrieve data?
    To get around this, you can build a dll (.net data provider) that returns either a dataset or datatable and point your report to this dll.  this way, when the report is executed, it loads the dll which fetches the data for you.
    - so the first step is to compile a dll that returns a dataset or datatable.
    - to design your report off of this dll open the database expert and create a new ADO.NET connection.
    - in the File Path area, click the ellipsis ("...") button to browse to your dll and make sure the selected File Type is ".Net DataSet Provider".
    - once the dll is selected, you can choose the dataset/table returned by the dll.
    If your method in the dll is parameterized, it will add a parameter to the report (similar to stored procedure parameters.
    note: the location of your dll must be in the same path on the CR Server as it was when you designed your report in order for it to be loaded correctly.  I usually put the dll in a folder that I know will exist on both machines.
    Dan

  • How open a report with Viewer 2008 without using Visual Studio and Java

    Hi,
    There is a way to open a report (with parameters) save in a web server with Crystal Report Viewer 2008 without using Visual Studio or Java ?
    I've an asp page and i want to open this report using some command (I know asp, vbscript and html)
    In the past it was very easy because we use CR 9, but now it's already many days im looking for a solution but seem impossible.
    I know the craxdrt.dll is not included with Crystal Reports 2008.
    It seem me i can use OpenDocument, but i'm not sure. Someone has some easy example to help me ?
    Remember i have only Crystal report viewer 2008 on the server and on the clients.
    Thanks in advance

    If you are looking to create a web application or view report through a web server using only Crystal Reports then you do have to either use Java, or .NET.
    If you have Crystal Reports server or Business Objects Enterprise you can use OpenDocument to view managed reports but this does require one of our server products.
    Trevor.

  • How to convert Crystal 8.5 Reports that use queries to Crystal XI reports

    We were using the following:
    Crystal Reports version 8.5
    Crystal SQL Designer 8.0.0.0
    CRW32 8.0.0.8
    We have now migrated to Crystal XI.
    Most of our reports use queries created in the Crystal SQL Designer. 
    This is the message we receive when I open a report in Crystal XI that uses a query:
    Reports based on Crystal Dictionary or Crystal Query are no longer supported.  Please change these reports to use Business Views.
    How do I convert a Crystal report that uses a query to use a Business View?
    Thanks,
    Mac Bradley

    Hi Mac,
    There is a Database Migration Wizard that was available but the link is broken now. I'm tracking down where we can get it from. Check your CD, it may be on the disk.
    Currently it's only shipped with our Enterprise Product because it converts Queries to Business Views and Views to Command Objects.
    If you have Enterprise Available you should have a link off the Start Menu.
    Back up your reports first....
    Thank you
    Don

  • Convertion from Bex Reports to Crystal reports

    Hi all
    we are integrating BI with BO, i have a task to convert all existing BEx reports into Crystal Reports. I knew nothing how to do this, can any one please explain in detail steps how to convert BEx reports into crystal reports.
    For example any documents or t-codes how to start and finish the task.
    Thanks

    Post your question BEX and/or B1 and classic SAP data source issues to the Integration Kit forum

  • Convert abap reports into crystal reports

    Hi,
    We are trying to convert abap reports into crystal reports.We could convert these reports into XML files
    Now we want to create utility which will automate the conversion of XML files into RPT files of crystal reports.Later on we can refresh the data in reports by changing the datasource location.
    Can you please guide us whether it is possible and if yes how should we go about it?
    regards,
    shital

    Hi, i suggest, 2 technies to do this, the first one, you can use,
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
      EXPORTING
        APPLICATION            = 'C:\Program Files\crystalreports.exe'
      EXCEPTIONS
        CNTL_ERROR             = 1
        ERROR_NO_GUI           = 2
        BAD_PARAMETER          = 3
        FILE_NOT_FOUND         = 4
        PATH_NOT_FOUND         = 5
        FILE_EXTENSION_UNKNOWN = 6
        ERROR_EXECUTE_FAILED   = 7
        SYNCHRONOUS_FAILED     = 8
        NOT_SUPPORTED_BY_GUI   = 9
        OTHERS                 = 10.
    where, exe file could be, a crviewer.exe, and, use a parameters  ( on exe ) to indicate rpt file, or, define of standar mode, a generic name and put, xml file generated via abap, on  a repository, this way, rpt file, when launched, displaying file.
    the second choice, could be,  go SM69, click create. enter a command name 'ZCREXE', enter the path and the exe file name in operating system command field. You can call this exe from ABAP using SXPG_COMMAND_EXECUTE.
    i hope so that my answers help you.
    greetings.

  • How to convert  PLD Report into Crystal Report

    Hello Experts,
                             I want to convert my  PLD Report into Crystal Report, but  i am not able to find the solution ,
                             so how can i do this and what are the  steps have to taken.
    Kindly give me the solution .
    Regards
    Rahul

    Hi Rahul........
    SAP has given a tool where you can convert your PLDs into Crystal Reports.......
    Please check the below link to download tool......
    http://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/108305a7-1555-2d10-8289-9a178d441c71
    Regards,
    Rahul

  • Error in Printing Crystal Report Directly to Printer using SDK Code

    Hello ,
    I am trying to print a crystal report created in SAP Crystal Reports 2008 through SDk Code using one parameter
    as (Document Number).But While running the Code the Report is not getting printed and also the system is
    not able to fetch the correct data in the report using the supplied parameter .
    I am using Visual Studio 2005 Crystal Report dll s in my code :-
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Imports CrystalDecisions.CrystalReports
    Imports System
    Imports System.Data.SqlClient
    Imports System.IO
    For Clarification i am pasting my code below :-
                Dim oRpt As ReportDocument
                oRpt = New ReportDocument
                oRpt.Load(Path)
                With crConnectionInfo
                    .ServerName = Server
                    .DatabaseName = Database
                    .UserID = User
                    .Password = Password
                End With
                CrTables = oRpt.Database.Tables
                For Each CrTable In CrTables
                    crtableLogoninfo = CrTable.LogOnInfo
                    crtableLogoninfo.ConnectionInfo = crConnectionInfo
                    CrTable.ApplyLogOnInfo(crtableLogoninfo)
                Next
                oRpt.ParameterFields("Document Number").CurrentValues.AddValue(Parameter)
                If Printer <> "" Then
                    oRpt.PrintOptions.PrinterName = Printer
                End If
                oRpt.PrintToPrinter(Copies, False, 0, 1)
            Catch ex As Exception
                SBO_Application.MessageBox(ex.Message)
            End Try
    Please suggest me what i have to do in my code to print the report with correct data in report.
    Thanks & Regards,
    Amit

    k

  • Error on Visual Basic 6.0 and Crystal Reports 9.2 on XP SO

    We need support to resolve an error on a system made with Visual Basic 6.x and Crystal Reports 9.2.
    Error '-2147417848 (80010108)'
    Automation Error
    Not always give these errors.
    Often occurs after request two reports followed and SO is XP
    When SO is Windows 2000 professional this error not occurs.
    These are versions of the products used:
    Versión Visual Basic:  6.0.9782
    Versión Cristal Reports:  9.2.0.448

    Hello,
    This forum is for community use and is not considered a support site. For assistance you need to purchase a case from our support site. But 9 is no longer a supported version so this is your only place to get assistance.
    Try downloading the only patches available from:
    ftp://ftp1.businessobjects.com/outgoing/CHF/cr90actxwin_en.zip
    ftp://ftp1.businessobjects.com/outgoing/CHF/cr90dbexwin_en.zip
    ftp://ftp1.businessobjects.com/outgoing/CHF/cr90devwin_en.zip
    ftp://ftp1.businessobjects.com/outgoing/CHF/cr90mainwin_en.zip
    Thank you
    Don

  • Drilldown report in Crystal

    Hi,
    I need to produce such drilldown reports with Crystal against an Oracle database
    First Look of the report
    Sales report for the country
    North   $250
    South  $100
    East    $300
    West   $150
    Total    $800
    I need to Drill on details for one of the items
    Sales report for the country
    North   $250
      AA     $100
      AB     $100
      AC     $ 50
    South  $100
    East    $300
    West   $150
    Total    $800
    Is it doable with Crystal, if so I would like to know how it can be possible without using a stored procedure in Oracle.
    Thanks in advance,
    Venkat
    Edited by: Venkat Ramamurthy on Apr 23, 2009 12:47 AM

    First you need to create a group on country in the report and place the details in detail section. Now suppress your detail section based on the condition like this
    drilldowngrouplevel=0
    Now refresh the report and you can see all the countries and the total amount. When you double click on the group name country you can see the details.
    Regards,
    Raghavendra

  • How to link a webi report from crystal report

    Hello everyone,
                          I am trying to link a webi report from crystal XI.
    In my crosstab, the data is divided grouped by periods.
    So for every country it shows data along a period of time.
    The details for the value of the crosstab are in a webi report.I am trying to pass the period value and country name as a prompt from crystal to webi but it is not picking them correctly.
    can we pass prompts from a crystal report to a webi url??

    Try to use OpenDoc URL to pass the parameter values from crystal to webi. To use OpenDoc URL you need to publish these reports in server. See the following example
    http://server name:8080/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?sType=wid&sPath=[folder name]&sDocName=Child&iDocID=4804&lsSEnter+State:=California
    Regards,
    Raghavendra
    Edited by: Raghavendra Gadhamsetty on Nov 14, 2008 8:51 PM

  • 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

  • CR2008 Not enough memory while exporting reports from Crystal Reports 2008

    I have recently upgraded our Crystal Reports version from Crystal Reports Basic for Visual Studio 2008 to Crystal Reports 2008. After upgradation I am facing the problem "Memory full.OtherErrorFailed to export the report. Not enough memory for operation" when I am trying to export the report from Crystal Reports 2008 Report viewer, or directly from the code behind. The application is hosted application. The problem occurs in our production environment.
    Server details:
    OS: Windows 2003 Enterprise Edition R2 with SP2
    IIS: IIS 6
    .Net Framework: 3.5
    Application details:
    Hosted application using Crystal Reports 2008 SP 3
    Crystal Reports Viewer version: 12.0.2000.0
    The data binding of the report object is done through an ADODB dataset.
    Web.Config:
    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
      <configSections>
        <sectionGroup name="businessObjects">
          <sectionGroup name="crystalReports">
            <section name="printControl" type="System.Configuration.NameValueSectionHandler" />
            <section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler" />
          </sectionGroup>
        </sectionGroup>
      </configSections>
      <businessObjects>
        <crystalReports>
          <printControl>
            <add key="url" value="http://myserver/mysite/PrintControl.cab" />
          </printControl>
          <crystalReportViewer>
            <add key="documentView" value="weblayout" />
          </crystalReportViewer>
        </crystalReports>
      </businessObjects>
      <appSettings>
        <add key="CrystalImageCleaner-AutoStart" value="true" />
        <add key="CrystalImageCleaner-Sleep" value="60000" />
        <add key="CrystalImageCleaner-Age" value="120000" />
      </appSettings>
      <system.web>
        <httpHandlers>
          <add path="CrystalImageHandler.aspx" verb="GET" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
        </httpHandlers>
        <compilation debug="false">
          <assemblies>
            <add assembly="CrystalDecisions.Data.AdoDotNetInterop, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
            <add assembly="CrystalDecisions.Shared, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
            <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
            <add assembly="CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
            <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
            <add assembly="CrystalDecisions.Enterprise.Framework, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
            <add assembly="CrystalDecisions.ReportSource, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
            <add assembly="CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
          </assemblies>
      </system.web>
      <system.webServer>
         <handlers>
             <add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode" />
         </handlers>
      </system.webServer>
    </configuration>
    Sample Code:
    Report = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
    Report.Load(Server.MapPath(strReportPath));
    Report.SetDataSource(dsReport);
    Creportviewer.ReportSource = Report;
    For exporting the report to PDF
    string Filename = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.InternetCache).ToString(), Guid.NewGuid().ToString() + ".pdf");
    Report.ExportToDisk(ExportFormatType.PortableDocFormat, Filename);
    Clean Up Code: (Page_UnLoad event)
    if (Report != null)
         Report.Close();
         Report.Dispose();
    Creportviewer.ReportSource = null;
    Creportviewer.Dispose();
    dsReport = null;
    GC.Collect();
    GC.WaitForPendingFinalizers();
    Can someone help me resolve the issue.

    The .rpt file size is 14MB with the Data Save option enabled, 12MB without Data Save.  Presumably the 12MB file size is because of the 24bit PNG we have as our background.
    The Designer executes the report in less than a second and we can scroll through all pages and see the image fields perfectly.
    When we Export to PDF, the Designer takes a long time, eventually gets to the 77%, the 7th record and returns "Export report failed" followed by "Memory full".  If we export only page 1 of the 3 pages, it also returns a Memory full error.  However, when the same report is run with only 1 page, that page exports to PDF but with a ridiculously large size and export time.
    The machine has 2GB of physical memory with an 8GB pagefile with Windows 2003 (latest everything).  The process runs up to about 1GB before reporting the memory full error.
    We've also tried a variety of other suggestions posted in the other thread with no success.
    We're happy to provide the RPT file to the Report Team to diagnose the problem.  Ultimately, we need to be able to produce a 15 page report with approximately 45 images.
    Our preferred scenario is fixing problem 2.  The CR Designer seems quite capable of rendering our report and printing it to our third party PDF printer in a timely manner with small size.  However, the API reports memory full.
    The API resides in a dedicated reporting web service with NO other code except for loading the report, setting parameters and printing.  When executing, it uses up to about 1.1GB before reporting the error.
    Are there any other suggestions for fixing what we have?  Are there known problems with large images in reports?  Do we need to lodge a formal support request?
    Regards,  Grant.
    PS.  Grr and my message formatting is lost when I edited this message!!!
    There is a 1500 character limit and then all formatting is removed to save space. Break you posts into separate entries.
    Edited by: grantph on Sep 30, 2009 2:49 AM

Maybe you are looking for

  • How to create the folder in LabVIEW 7.1?

    Dear All,             I need to create the folder in LabVIEW 7.1?.. Then if the folder exsists i need to ceate the new folder with the file name by increate by nemerical number by 1. As well as i need write the data's which i acquired in sepeate test

  • What is wrong with my Eclipse??

    Dear Sir: I have following problem in Eclipse 3.3.1 When i run in Command console, It success all, But when I put into Eclipse, It fails, I got follwoing error: ERROR>java version "1.6.0" ERROR>Java(TM) SE Runtime Environment (build 1.6.0-b105) ERROR

  • Wrong calendar

    I gave my husband my Desktop mac, running snow leopard. I have a iphone and mobile me which I was syncing on that computer. He just bought a iphone and mobile me. Having a problem with my calendar syncing on his phone. On the computer, I did sign out

  • Iphone 5s hangs up when talking.  Verizon rep said it needed to be calibrated or sensor adjusted, how do you do that?

    Every time I talk on my iPhone 5s, my cheek hits the face time button or just ends the call.  I was in a Verizon store and they told me the sensor needs adjusting or it needs to be calibrated but I didn't have my phone with me at the time.  I can't f

  • Having issues with exporting workflow in LR v2.4

    I am having trouble "exporting",  and I  wanted to know if you experienced this at all.  In LR v.1, I would do my pre  edits in Develop Module, then once done I would either open in PS or Export to a  subfolder in the original folder and they would a