Print a report in crystal Report using SDK

Hi Dear;
any body can publish a sample code how can i print a report built in crystal report using SDK?
regards;

Hi Dany,
Hope the following code will help u .
before calling the function make a XML by using dataset.writexml, in which you have to pass the name of your stored procedure.
for this you have to decalre commantype as stored procedure.
first parameter of this is rpt name . asecon paramer is ur xml name which you got from DAtaset.writexml.
Sub ShowReport(ByVal rptName As String, ByVal SourceXML As String)
        Try
            Dim oSubReport As CrystalDecisions.CrystalReports.Engine.SubreportObject
            Dim rptSubReportDoc As CrystalDecisions.CrystalReports.Engine.ReportDocument
            Dim rptView As New CrystalDecisions.Windows.Forms.CrystalReportViewer
            Dim rptPath As String = System.Windows.Forms.Application.StartupPath & "\" & rptName
            Dim rptDoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument
            rptDoc.Load(rptPath)
            For Each oMainReportTable As CrystalDecisions.CrystalReports.Engine.Table In rptDoc.Database.Tables
                oMainReportTable.Location = System.Windows.Forms.Application.StartupPath & "\" & SourceXML
            Next
            For Each rptSection As CrystalDecisions.CrystalReports.Engine.Section In rptDoc.ReportDefinition.Sections
                For Each rptObject As CrystalDecisions.CrystalReports.Engine.ReportObject In rptSection.ReportObjects
                    If rptObject.Kind = CrystalDecisions.Shared.ReportObjectKind.SubreportObject Then
                        oSubReport = rptObject
                        rptSubReportDoc = oSubReport.OpenSubreport(oSubReport.SubreportName)
                        For Each oSubTable As CrystalDecisions.CrystalReports.Engine.Table In rptSubReportDoc.Database.Tables
                            oSubTable.Location = System.Windows.Forms.Application.StartupPath & "\" & SourceXML
                        Next
                    End If
                Next
            Next
            rptView.ReportSource = rptDoc
            rptView.Show()
            Dim oFrm As New System.Windows.Forms.Form
            rptView.DisplayGroupTree = False
            rptView.Dock = System.Windows.Forms.DockStyle.Fill
            rptView.Location = New System.Drawing.Point(0, 0)
            oFrm.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
            oFrm.Controls.Add(rptView)
            oFrm.Name = "rptForm"
            oFrm.Text = "rptForm"
            oFrm.ResumeLayout(False)
            oFrm.WindowState = System.Windows.Forms.FormWindowState.Maximized
            oFrm.TopMost = True
            oFrm.ShowDialog()
        Catch ex As Exception
            oApplication.MessageBox(ex.Message)
        End Try
    End Sub

Similar Messages

  • Print layout different with crystal report 2008 runtime

    Hi,
    I have reports which I print on a pre printed stationary. With Crystal report 11.5 run time it works fine.
    Now I am using Crystal Report 2008 run time and with this I found that layout on the print is different than the actual layout in the design.
    The print with CR 2008 run time is not exactly matching with the pre printed stationary. Whereas it is working fine with the 11.5 run time.
    Can anyone please help?
    Thanks,
    Abhijit Gorhe

    hi,
    you can verify the settings
    File -> Page Setup
    - Printer Options
    - Page Options
    - Margins
    Regards,
    Vamsee

  • Printing font Barcode3of9 from Crystal Reports XI

    I have an issue with printing font Barcode3of9 from Crystal Reports XI utilizing Manhattan Associates Performance Management (PM) UI application.
    The font is applied to a field that is converted from a number to a text using the CStr formula in Crystal Reports XI in order to display the value as a barcode.
    The barcode on the report is converted successfully in the PM UI 100% of the time.  However the business tries to print the report using the print or the export the report functions and the barcode is not converted 100% of the time into a barcode only the value of the field displays.
    The font is installed on the server that the business accesses and I have installed the font on the web server for our testing environment, but it still does not aide with fixing the issue.
    Does anybody have any experience with this issue?
    Thank you

    Please contact Manhatten Assoc. for supporting their software.

  • Report in Crystal CRXI using Workshop class datasource

    I am trying to create a report using Crystal Reports XI that uses a Workshop class as a datasource. The documentation for V10 and XI says that any compiled java class that has a public method returning a java.sql.ResultSet object can be used as a data source.
    I followed an example in the Crystal documentation that uses a bean compiled outside of Workshop and it works fine. When I try to point the config file to my Workshop classes, it does not list any of my class files. Has anybody successfully done this?

    Hi Sudhir,
    For Building up a connection for OLEDB  we need :
    In order for Crystal Reports to connect to a database through OLE DB, there are some requirements that must be met:
    u2022     The database client software must be installed on the client machine.
    u2022     The client machine must be able to connect to the server from its client software
    u2022     The client softwareu2019s working directory (example. c:\orant\bin) must be in the Windows search path
    u2022     The OLE DB provider must be installed on the local machine.
    We have the connection for crystal reports through OLEDB :
    The process by which Crystal Reports access data from an OLE DB data source consists of these five layers:
    Crystal Reports Layer
    OLE DB Translation Layer
    OLE DB Layer
    DBMS Translation (OLE DB provider) Layer
    Database Layer
    The data translation is similar to the ODBC connection model. Crystal Reports uses CRDB_ADO.DLL to communicate to the OLE DB provider, which communicates to the database. Crystal Reports can connect to any database as long as that database has an OLE DB provider.
    When creating a new report in Crystal Reports, OLE DB data sources are found in the Create New Connection folder with the OLE DB (ADO) connection.
    Regards,
    Naveen.

  • Printing the datas through Crystal Report from Java

    How can I Print the datas through Crystal Report from java?

    How can I Print the datas through Crystal Report from
    java?
    What the hell are "the datas"?
    Jesus, I can understand this is a shrinking planet, Global community, and all that happy horse pucky. Typos or small grammar errors are no big deal, I make them all the time. But when I have to spend more time interpretting the question than figuring out the answer, it drives me crazy.

  • 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

  • Missing column at the end of report in Crystal report server 2008 VI

    When we run the reports in Crystal report server 2008 VI, for some reports we see the last column is missing some characters. I have few reports that show numbers with decimals at the end of the report, but in CMC it cuts the number at the start of the decimal. I only see the numbers upto the decimal. When I run the same report in Crystal designer, everything works fine.
    I had the same problem with CR developer 2008 and I used the following code to fix it:
    Private Sub SetMargins(ByVal myReportDocument As ReportDocument, ByVal left As Integer, ByVal top As Integer, ByVal right As Integer, ByVal bottom As Integer)
            Dim myPageMargins As PageMargins
            myPageMargins = myReportDocument.PrintOptions.PageMargins
            myPageMargins.leftMargin = left
            myPageMargins.topMargin = top
            myPageMargins.rightMargin = right
            myPageMargins.bottomMargin = bottom
            myReportDocument.PrintOptions.ApplyPageMargins(myPageMargins)
        End Sub
    Any help is greatly appreciated.

    HI Don,
    Install the same default printer as what you have onto the CRS server then what you should be the same. Also, which viewer are you using, ActiveX, DHTML or Java on the CRS Server?
    Thanks
    Don

  • Call report by Crystal Report

    I'm beginner , I'm going to code about calling Report by Crystal Report (not print layout) . I create one button in one page(such as purchase order). If i put this button i would like to show data this page by Crystal Report but I don't know how i begin code about it ?
    I would like example calling crystal report (source code) that "how do you do?"
    Thanks for all answer
    Wibet Choeisutanon

    Hi Wibet,
    There're numerous ways to call crystal reports. Basically, I call with datasource.
    My example comes below.
    dim crxReport as CrystalDecisions.CrystalReports.Engine.ReportDocument
    crxReport.load(ReportFileName)
    crxReport.setDataSource(RptRs)
    crxReport.PrintToPrinter(1, False, 0, 0)
    ReportFileName is physical path and file name of the report (.rpt) file.
    And RptRS is recortset of datasource. I basically use TTX predefiled source.
    Hope this can help you.
    Hyunil Choi.

  • Deadlock with thread issues while generating reports with Crystal Report XI

    We are facing deadlock with thread issues while generating report with Crystal Report XI
    Version Number is 11.0 and the database used is Oracle
    In the log file on line number 74350  by 2008/12/16 13:35:54 there is a dead lock with Thread: u20184u2019 is waiting to acquire lock for 'com.crystaldecisions.reports.queryengine.av@15214b9' which is held by the Thread: '0'.
    And  a dead lock with Thread: u20180u2019 is waiting to acquire lock for 'com.crystaldecisions.reports.queryengine.av@15214b9' which is held by the Thread: '4'.
    Exactly after 10 minutes we can see the thread 4 and 0 are declared as STUCK by 2008/12/16  13:45:54 .
    Is this an existing issue with Crystal Report?
    Is there some solution for this problem?
    THE LOG FILE INFORMATION IS GIVEN BELOW
    [deadlocked thread] [ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)':
    Thread '[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'' is waiting to acquire lock 'com.crystaldecisions.reports.queryengine.av@15214b9' that is held by thread '[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)''
    Stack trace:
         com.crystaldecisions.reports.queryengine.av.V(Unknown Source)
         com.crystaldecisions.reports.queryengine.av.do(Unknown Source)
         com.crystaldecisions.reports.queryengine.as.if(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.datainterface.j.c(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.cy.b(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.cy.long(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.a1.a(Unknown Source)
         com.crystaldecisions.reports.common.ab.a(Unknown Source)
         com.crystaldecisions.reports.common.ab.if(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.a1.if(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source)
         com.crystaldecisions.reports.reportengineinterface.a.a(Unknown Source)
         com.crystaldecisions.reports.reportengineinterface.a.a.b.a(Unknown Source)
         com.crystaldecisions.reports.sdk.ReportClientDocument.open(Unknown Source)
         com.sysarris.aris.crystalreports.RepServlet.generateReport(RepServlet.java:65)
         com.sysarris.aris.crystalreports.RepServlet.doPost(RepServlet.java:40)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
         weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
         weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
         weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
         weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
         weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
         weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
         weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
         weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
    [deadlocked thread] [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)':
    Thread '[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'' is waiting to acquire lock 'com.crystaldecisions.reports.queryengine.av@12e0415' that is held by thread '[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)''
    Stack trace:
         com.crystaldecisions.reports.queryengine.av.V(Unknown Source)
         com.crystaldecisions.reports.queryengine.av.do(Unknown Source)
         com.crystaldecisions.reports.queryengine.as.if(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.datainterface.j.c(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.cy.b(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.cy.long(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.a1.a(Unknown Source)
         com.crystaldecisions.reports.common.ab.a(Unknown Source)
         com.crystaldecisions.reports.common.ab.if(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.a1.if(Unknown Source)
         com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source)
         com.crystaldecisions.reports.reportengineinterface.a.a(Unknown Source)
         com.crystaldecisions.reports.reportengineinterface.a.a.b.a(Unknown Source)
         com.crystaldecisions.reports.sdk.ReportClientDocument.open(Unknown Source)
         com.sysarris.aris.crystalreports.RepServlet.generateReport(RepServlet.java:65)
         com.sysarris.aris.crystalreports.RepServlet.doPost(RepServlet.java:40)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
         weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
         weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
         weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
         weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
         weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
         weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
         weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
         weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
    Can you please suggest any work around for this?

    I'm not referring to Servlet threading issues.
    I'll clarify.
    You have two threads, both entering ReportClientDocument.open(...) method.
    Thread 4 is waiting to acquire 'com.crystaldecisions.reports.queryengine.av@15214b9'
    Thread 0 is waiting to acquire ''com.crystaldecisions.reports.queryengine.av@12e0415'
    So I'm thinking ??? are they the same objects?
    My specific question concerning the ReportClientDocument is that both are calling open - i.e., trying to open a new report.  You wouldn't be trying to open different reports using the same ReportClientDocument - so was wondering if you've cached the RCD and trying to open two different reports at the same time on the same instance via different threads.
    You'd normally tie a ReportClientDocument instance to a HTTP Session, to ensure each user gets their own copy.
    Sincerely,
    Ted Ueda

  • See sql query from crystal report without crystal report

    see sql query from crystal report without crystal report 

    Hi,
    Depends on datasource type but you could have a look at ODBC trace or if you have access to the SQL Server you could use profiler to monitor the session.
    Regards,
    Craig
    And this will only be of use if you know which Server/Insstance/Database the Report is connecting to...
    Please click "Mark As Answer" if my post helped. Tony C.

  • Report in Crystal reports has different values in Infoview

    I have uploaded a Crystal Report into BO Enterprise using the CMC.
    The logging into the Infoview to view the report and the results are different to those in the report when run against the same data in Crystal reports.
    It is pulling up data, but not the correct figures. I dont know where it is getting its data from.
    Any help would be appreciated.

    I deleted the ODBC connection and recreated it with a new name.
    I then relinked the report in crystal reports, and it suddenly decided to give updated values.
    Thanks

  • Font style issue with exporting report in Crystal Reports 2008

    Hi,
    I got stuck on the below issue for a while. Please can anyone help on this?
    When I designed and executed a report in Crystal Reports 2008 on my local PC, the font style and size used in charts were exactly what I was expecting.
    However, after I exported the report to our BusinessObjects CMC and displayed it in InfoView, the font style and size in charts looked quite different from what they were in CrystalReports.
    Any ideas of how to fix this issue?
    Thanks!
    BAI

    Hi Nanda Kishore,
    This is because you do not have proper rights on Business View Manager.  Whenever you create a dynamic parameter in crystal and try to save the report on BO, it creates a Business view automatically.  Now in your case, it is unable to create a business view due to insufficient rights.
    Go in Business View Manager u2013 Repository exploreru2014You will find Dynamic Cascading Prompts folderu2014Right click on that and go in rights and add your user information and give full rights.
    Also make sure that your BO and CR designer on same version and patch level.
    Thanks,
    Sastry

  • Report containing 15 sub reports crashing - Crystal Reports 2008

    I am using Crystal report 2008 with all latest service packs applied. I have more then 20 different reports wich work absolutely fine and never crash. One of my report contains 15 sub reports since its bringing data from 15 different queries. This consistently keeps crashing everytime I try to run it. Not sure what could be the root cause.
    We are using Postgres database and connected to it with  ODBC connection using Microsoft DSN.
    - All Subreport data is being displayed on Report Footer
    - All subreports are included in the Main report  page header section. (I have also tried doing it on report footer section but it still crashes)
    I have tried searching through the forum and did not find similar issue resolutions. Did someone face similar problems before?
    The crash message is:
    "crw32.exe has encountered a problem and needs to close. We are sorry of the inconvenience."
    Error report contains this data:
    AppName: crw32.exe      AppVer: 12.2.0.290      ModName: psqlodbc35w.dll
    ModVer: 9.0.2.0      Offset: 0004c538
    I am using Windows XP
    Crystal Report Version Details:
    CR Developer Version 12.2.0.290
    Product Type: Full
    Let me know how can I debug this issue? Any help is appreciated.

    @Don - We performed extensive testing for this crash issue and found that now this crash is not happening only in one scenario. So we have partially fixed this.
    Now the report crashes if I get disconnected from database and reconnect. This is what happens
    1. open the report in crystal report 2008
    2. try to run the report when db is connected- it works fine.
    3. Now disconnect the database (we are using ssh tunnel to connect to db so we just close the tunnel)
    4. now try to refresh the report - it fails to retrieve data.
    5. Now close the report without saving it.
    6. Now Close Crystal Report.
    7. Now Connect the DB using ssh tunnel so crystal report can connect.
    8. Now open Crystal Report
    9. Launch the target report.
    10 Preview the report - it works for first time.
    11. Now do a refresh keeping same parameters - Report crashes here.
    - I tried these steps with some of my other reports and they do not crash.
    - Now I have only one report which contains a Postgres Query with date range,order by and a union join.
    - No subreports now - I am trying to run this one subreport as a standalone report which I created from scratch(using blank report wizard) and just copied the query.
    Any more pointers would help.

  • How to make crosstab report in crystal report

    Hi all ,
    I want to make a crosstab report in crystal report
    my query is like this
    select YearDate.year ,
    (currentasset.currentaset / currentliability.currentliability  ) as CurrentRatio
    ,(currentasset.currentaset - Inventory.Inventoryaset / currentliability.currentliability ) as QuickRatio
    from
    select distinct YEAR(JDT1.RefDate) as year from JDT1
    )YearDate left join
    select YEAR(JDT1.RefDate) as year,sum(JDT1.Debit - JDT1.Credit ) as currentaset from JDT1,OACT
    where JDT1.Account = OACT.AcctCode
    and OACT.AcctCode = '11'
    group by YEAR(JDT1.RefDate)
    )currentasset on YearDate.year = currentasset.year left join
    select YEAR(JDT1.RefDate) as year,sum(JDT1.Debit - JDT1.Credit ) as Inventoryaset from JDT1,OACT
    where JDT1.Account = OACT.AcctCode
    and OACT.AcctCode = '11.05'
    group by YEAR(JDT1.RefDate)
    )Inventory on YearDate.year = Inventory.year left join
    select YEAR(JDT1.RefDate) as year,sum(JDT1.Debit - JDT1.Credit ) as currentliability from JDT1,OACT
    where JDT1.Account = OACT.AcctCode
    and OACT.AcctCode = '21'
    group by YEAR(JDT1.RefDate)
    )currentliability on YearDate.year = currentliability.year  left join
    order by YearDate.year
    So if i view the data in sql server it should be like this
    Year   CurrentRatio   quickRatio
    2006               501                 100
    2007              600                  200
    2008             700                   300
    2009             900                   400
    I want to make a crosstab with the column is year . the Year is dynamic according to the selection
    So if i select the year from  2007 to 2009
    It should be like this in report
    2007                2008              2009
    CurrentRatio                 600                  700                  900
    QuickRatio                    200                   300                 400
    How can i make it in Crystal report ?
    I have use the template in crosstab crystal report, but there is not suitable.
    Can i make manually. ?
    Thanks in advance
    Regards
    KK

    Hi kevin,
    thanks for your respond . Actually, it's work.
    But i have some issue again.
    How can i make a grouping
    So the grouping per Item
    For example                                                                               
                                                          2006                 2007                 2008
    Group 1               Item A                5                        6                       7
                                Item B                7                        8                       9
    Group 2              Item C                  9                       0                      0
                               Item D                 8                        8                      9
    And another question, Is there always have row summary ? It seems that after the 2008 column, there is a total column, Can I remove this ?
    Thanks in advance
    regards
    KK
    Edited by: kah kian on Jun 2, 2011 4:17 PM

  • 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.

  • Error when I deploy a report on crystal reports server 2008 V1.

    Hi ,
    I am getting below error when I deploy a report on crystal reports server 2008 V1. I have installed the crystal server on Linux machine.
    "A server communication error occurred. All servers with kind rptappserver could be down or disabled by the administrator. "
    Please help.
    Thanks,

    Hi
    use the Universe Designer (designer.exe).
    Regards,
    Stratos

Maybe you are looking for

  • Need help with Simulator

    I've been using DVDSP4 for a year and a half and this is the first time that I haven't had subtitles show up in my Simulator. The subtitle track is activated, View is checked in Simulator...everything seems to be working as usual--anyone have any tho

  • IPOD TOUCH KEEPS COMING UP WITH CONNECT USB HAVNT GOT IT GOING YET?

    Just got ipod touch am setting it up through windows vista all i get is picture of usb to itunes. have register with itunes but it say ipod is in recovery mode restore click on restore button. can't restore error 1603. how do i get it going?

  • How can I put report parameters and report on the same page?

    I want to have a page that has user input (text fields, checkboxes, radio buttons, etc.) at the top of the page, with a submit button. When the user submits the page, I want the resulting report (returned from a query) to display below the input area

  • More than one colour in titledborder text

    Hi, Can we have more than one colour in titledborder text at the same time. I have tried using html like you can in labels etc but no good. Cheers, Jim

  • Mouse pointer disappears after using the magnifying glass in the color picker

    Hello, I've a problem (one more) with Lion on a Mac mini 2010. Every time I select a color from the screen using the magnifying glass in the color picker, the mouse pointer disappears. I've to move the mouse to the top of the screen and try to click