Crystal Report Query design

Hello,
I am very new to Crystal Reports and for some reason the online content for CR is abysmally low and not lucid enough in most cases.
I am designing a simple Invoice type report in CR and am using an Access database with .accdb extension.I have been able to connect the database to my CR environment but now I am not able to design a suitable Query in CR which can enable me to display the
Invoice.
I have two tables in my database-InvoiceTran and InvoiceDetail.The InvoiceTran table has a primary key under which the details are saved in the InvoiceDetail table.
What I want to be able to do in CR is to select an Invoice Number in the InvoiceTran table and then print only the related details from the InvoiceDetail table(in the Detail section of CR) along with some other fields from the InvoiceTran table.I will also
need a SUM field in the Invoice Footer.
It was very easy in Access reports in which a suitably designed query did the trick but for now I had to abandon it due to a designing problem that I ran into.
Thanks in advance,
Khalid.

You're not finding online content here because CR is (as of VS 2010) no longer part of Visual Studio as delivered. It is a separate add-on.
The forum where you're most likely to fin help with CR in VS is here:
http://scn.sap.com/community/crystal-reports-for-visual-studio/content?filterID=contentstatus%5bpublished%5d~objecttype~objecttype%5bthread%5d

Similar Messages

  • Partial payment Crystal report query

    Hi,
    I have partial payment in outgoing. So I am not able capture this thing correctly so any one can give me the Crystal report query for this thing.
    Regards
    Swapnil

    Try this may it will help you ..
    in this query i have tracked againest PO.
    SELECT     Distinct OPOR.DocNum,OPCH.CardName,OPOR.DocNum
                          ,convert(varchar, OPCH.DocDueDate, 103) As "Payment Date",(OPCH.DocTotal-OPCH.PaidSUM) AS ' Pending Payment',DATEDIFF(DD,OPCH.DocdueDate,GETDATE()) as "Over Due Days"
    FROM         OPOR INNER JOIN
                          POR1 ON OPOR.DocEntry = POR1.DocEntry INNER JOIN
                          OPDN INNER JOIN
                          PDN1 ON OPDN.DocEntry = PDN1.DocEntry INNER JOIN
                          OPCH ON PDN1.TrgetEntry = OPCH.DocEntry INNER JOIN
                          PCH1 ON OPCH.DocEntry = PCH1.DocEntry ON POR1.TrgetEntry = OPDN.DocEntry where OPCH.DocStatus = 'O'
                          order by OPOR.DocNum ASC
    one more think we can design QPLD or CR not PLD.
    Thanks
    Manvendra singh Niranjan
    Edited by: Manvendra Singh Niranjan on Jun 25, 2011 2:57 PM
    Edited by: Manvendra Singh Niranjan on Jun 26, 2011 8:14 AM

  • Crystal Reports ActiveX Designer Failed to open document

    Yesterday I created a report in Visual Studio 2008 with about 20 subreports, each subreport containing a single aggregate query (i.e count or sum). I then saved the report file. Hours later when I attempted to reopen the report in Visual Studio I recived the message box "Crystal Reports ActiveX Designer Failed to open document". The report file was completely unusable - it could not be opened for editting.
    Today I repeated the process twice (once ith multiple subreports and once with all aggregate queries combined in a single subreport), only to have the new report files become unusable with the same error message. I am completely shocked at this behaviour from Crystal Reports. I have now spent 10+ hours with no usable report. I realy need a fix for this ASAP!!! Any suggestions would be greatlhy appreciated.

    Hi Jeff,
    Just wanted to confirm you were on SP1.
    I've found that these types of error are usually due to corrupt system files or sometimes even Anti-virus software denying access. If there is no error it's not CR corrupting the file.
    Look in your AV logs to see if it's logging anything.
    Another possibility is with MS pushing out patches they can also cause problems. I've see them change permissions on our dependencies that can cause problems.
    Sorry I can't be specific but without seeing your report or any details you'll have to determine at which step in the report it stops working.
    Can you save any reports now?
    Steps to debug, create a new report with no subreports and save it. Then re-open, if that works then start adding one subreport and then save/open. It may be something related to either the subreports or the number of subreports.
    You could try doing a repair install of VS and SP1.
    Was this working at one time or is this something new, do you have other reports that are similar that have problems?
    You need to debug the report and find out what is causing it to be corrupted. Try adding the 20th subreport and then delete it also.
    Don

  • Using crystal reports query (.qry) as datasource in crystal 9

    I have a problem using crystal reports query as a datasource in crystal reports 9. When Im using a report withing application i cannot change database or server property of the query.
    For example - during report design im using one odbc for query but I want to change it during runtime.
    Changing any options beside username or password results in external exception. Im using Builder XE as application environment.
    I tried switching to SQL commands which works but i lose all the fields on report when changing from query to report.
    Is there a way to make query work or to change query to sql command without losing all the fields (and putting them back on the report manually)?

    Hello,
    Unfortunately .QRY files are no longer supported as of CR 9. We replaced it with the Command Object where it basically did the same thing only you had to write the query yourself.
    The problem is because the Command Object can be anything CR has no way of mapping a query to the database field within the report so it auto deletes all of the fields.
    The only way is to create new reports, you can open the original report in one window and then create your new report, copy the SQL into the Command windows and then copy and paste the report objects from the window with the old report into the new report window.
    There is no migration wizard to do this. I have heard of others who used the RAS server or RDC to get the objects from one report and .add them to the new report. Depending on the number of reports you have depends on if it is worth the time writing that app or just rebuild all of your reports.
    Thank you
    Don

  • Seagate Crystal Reports ActiveX Designer error '80043ac4'

    Website slows down when users are running reports. Users start getting errors when running any crystal report. After sometime main page itself stops loading and only static html is visible. Following is one of the errors users see:
    Seagate Crystal Reports ActiveX Designer error '80043ac4'
    Invalid directory.
    /opera_mort2/report/AlwaysRequiredSteps.asp, line 54
    Other errors seen on reporting site at that time are
    Active Server pages error 'ASP 0115'
    Unexpected error
    /opera_mort2/report/rpt_level.asp
    A trappable error (C00000005) occurred in an external object. The script cannot continue running.
    authentication and network errors.
    Rebooting the Web Server temporarily fixes the issue however the error recurs again after a day or two. We are seeing this problem in both our PROD and DR server. There was no change done to either of these boxes recently.
    Also at this pint IIS was crashing. Microsoft Support analyzed the crash dumps created from IIS and came up with the following:
    "All the memory dumps captured showed the same DLL that was accessing corrupted memory. This same DLL would also be the one that had originally written to those addresses. The DLL was craxdrt.dll from Crystal Reports 8.0 ActiveX Designer, which was version 8.0.1.0 from 1/28/2000. This DLL should be updated to see if this issue has already been fixed. Other options are to recycle IIS more frequently and move to a new version of Crystal Reports."
    Here is a detailed analysis from Microsoft Support:
    The issue appears to be heap corruption. Normally these are difficult to troubleshoot, however, in this case every memory dump that I looked at had the same component involved.
    start end module name
    42b30000 4307f000 craxdrt (export symbols) craxdrt.dll
    Loaded symbol image file: craxdrt.dll
    Image path: C:\Program Files\Seagate Software\Report Designer Component\craxdrt.dll
    Image name: craxdrt.dll
    Timestamp: Fri Jan 28 15:16:46 2000 (3892235E)
    CheckSum: 0055446A
    ImageSize: 0054F000
    File version: 8.0.0.371
    Product version: 8.0.1.0
    File flags: 22 (Mask 3F) Pre-release Special
    File OS: 40004 NT Win32
    File type: 2.0 Dll
    File date: 00000000.00000000
    Translations: 1009.04b0
    CompanyName: Seagate Software, Inc.
    ProductName: Crystal Reports 8.0 ActiveX Designer.
    InternalName: CRAXDRT
    OriginalFilename: CRAXDRT.DLL
    ProductVersion: 8.0.1.0
    FileVersion: 8.0.0.371
    PrivateBuild: 8.0.0.371
    SpecialBuild: 8.0.0.371
    FileDescription: Crystal Reports ActiveX Designer Runtime Support
    LegalCopyright: Copyright (c) 1991-1999 Seagate Software, Inc. All rights reserved.
    LegalTrademarks: Copyright (c) 1991-1999 Seagate Software, Inc. All rights reserved.
    Comments: Crystal Reports for Visual Basic
    This component is from the year 2000 and needs to be updated. I searched our old cases and found several where old version of this component caused the same heap corruption.
    Please help as this is a production issue. Please let me know if you need any more information.
    thanks and regards
    sudatta soman

    Something must have changed. Were any patches or auto updates done to the OS?
    CR 8.0 has been out of the support cycle for some time now.
    As Microsoft suggested please log in and download the patches for CR 8.0 from:
    https://www.sdn.sap.com/irj/sdn/businessobjects-support
    If that does not resolve the issue the only option will be to schedule sn IIS restart each night.

  • Crystal Report query on top of BI Query : Exception raised in infoview

    Hi experts,
    I have created a crystal report query on ntop of a BI query and exported to BO.
      - For the BI query without variable, the crystal report runs with success in infoview and Crystal report
      -For the same BI query with a  variable, the crystal report does not run. A java exception is raised
    Please could somebody tell me what is the pb ?
    Tha

    Hi there,
    Actually i am investigating the best way to produce Cristal Clear Reports using data from BI, so Cubes, DOS, etc. As far as i know BO use BEx queries, then CR can produce Reports, but i thought it works for all cases, i mean calculation, filtering and variables.
    That's quite disapointing because i already told my client i will use his old BEx Queries to produce Reports with CR (frozen Reports), so use CR as Workbook to present them in fancy way.
    Any comments will be welcome.
    Al.

  • Crystal Reports ActiveX Designer Design and Runtime Library 11.0

    Hi to all,
               I want to design the CR at runtime because depending upon the situation the SProcs return 20 or 30 or 40 columns. so am using Crystal Reports ActiveX Designer Design and Runtime Library 11.0 COM component. but i dont know how to write the code for this dll and the same time i want to bind the image also from the SQL database as BLOB. Could any body post sample code.
    Tools am using :
    Asp.Net 2.0, SQL Server 2005, Crystal Report 11.0

    You will likely need them all.
    Here's another [link|https://boc.sdn.sap.com/developer/library] to our Diamond support site which has much more info and sample code.
    Find this section:
    Sample Code
    Download sample code projects to run in your BusinessObjects Enterprise XI 3.0 and Crystal Reports 2008 development environments.
    Title (click to download) Technology Topic
    BusinessObjects Enterprise Java SDK Sample Code  Java Enterprise Administration
    Report Application Server Java SDK Sample Code  Java Crystal Reports
    Viewers Java SDK Sample Code  Java Crystal Reports
    Report Engine Java SDK Sample Code  Java Web Intelligence
    Web Services Java SDK Sample Code  Java Web Services
    Data Access Driver Java Sample Code  Java Data Access
    Crystal Reports .NET SDK Sample Code  .NET Crystal Reports
    Report Application Server .NET SDK Sample Code  .NET Crystal Reports
    Web Services .NET SDK Sample Code .NET Web Services
    Desktop Intelligence COM SDK Sample Code COM Desktop Intelligence
    Thanks again
    Don

  • Crystal Reports ActiveX Designer Design and Runtime Library 11.5

    Hai to all,
                I'm new in crystal report 11.5, my task is desig time i just create a blank report during runtime programaticaly create Fieldobject,Blob object and so on, i came to know this is the right (Crystal Reports ActiveX Designer Design and Runtime Library 11.5) dll but, i dont know how to write the code. Experts please post simple code, i tried this site https://boc.sdn.sap.com/codesamples but there is no code related my task, experts please help me.
    Softwares am using:
    Visual studio 2005, asp.net 2.0, SQL server 2005 and crystal report 11.5
    Edited by: winseelan j on Aug 21, 2008 4:03 PM

    Hello,
    You are using the wrong SDK in this case. You cannot use ADO.NET (crdb_adoplus.dll) with the RDC. It would not recognise it. RDC only supports classic ADO (crdb_oledb.dll). Report Creation APi and the RDC was designed for Visual Basic 6.0.
    To do what you are trying to do you would have to use the Report Application Server (RAS) in .NET to create your reports.
    I recommend starting by creating a simple application with the report created in the Crystal Report designer using ADO.NET(XML) driver and Visual Studio .NET code to pass the dataset at runtime so you are familiar with the code and properties before trying to create the full report in code with RAS.
    You will find more information and samples in the Developer's Library:
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    The samples are at:
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/sampleList.htm
    Look for "VB_Web_Data_DataSets".
    If you create a dataset you want in Visual Studio .NET, you can write it to XML or and XML Schema and use that to create the report.
            'From a dataset, create an XML file to use creating a new report
            'using the full path to the .xml file, include the schema
            dataSet.WriteXml("C:\Temp\myReportData.xml", XmlWriteMode.WriteSchema)
            'Or create a schema to use building a report
            dataSet.WriteXmlSchema("C:\Temp\myReportData.xsd")
    Once you have the report format the way you want it, you can use the Report Application Server Samples from the Developer's Help to give you direction in building your report at runtime:
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/RAS_SDK/sampleList.htm
    Elaine

  • Error from the seagate Crystal Reports ActiveX Designer

    Hi guys,
    I get the following message when I running a report application based on Web. The Message is as following:
    The Error Message was Error detected by database DLL from Seagate Crystal Reports ActiveX Designer
    Internet Explorer has encountered a problem wiht an add-on and needs to close.
    the following add-on is running when this problem occured
    Add-on Name:   CRview.dll
    Company Name: Crystal Decision, Inc
    Description: Crystal Viewer for ActiveX
    I think the crystal is old version , the IE is version 7
    Thank you very much
    Clara

    OK, an upgrade of Oracle causes Crystal Reports to throw "Error detected by database DLL". It may very well be that version 8 report will not be able to run that version of Oracle. E.g.; version 8 of CR will not run Oracle 10 g for sure...
    Something to look at; can you run the report in the CR 8 designer when connecting to that updated version of Oracle?
    You'll have to locate the platforms.txt file for CR 8 and see what version of Oracle it supported. I do not have a link or even an idea of where that may be as CR 8 has been out of support for soooo long.
    Ludek

  • I am looking for Crystal reports arleady designed.

    I am looking for Crystal reports already designed.  Does anyone know where I could fine them?

    Navin,
    Thanks for the reply, I have another question you might be able to answer.
    I have a picture field (blob field) on the same line as our Product ID field (regular data field) and i want the report to show the picture that goes with that Product ID. 50% of our products dont have pictures, so when I print the report, it currently prints large empty spaces for the Products that dont have pictures and makes the report quite long and unattractive.
    I have tried to supress the field and also put the field in its own section and use a formula for supressing if the data is blank, but I get the error message that says "Can not use a BLOB field in a formula".
    I need to find a way around this. Can you, or any of your experts help?
    I could send you the report with some data in it if that would help.
    Thanks again!
    JM

  • How to read Crystal Report file Design version programmatically

    Hi,
    I am working on a project where I need the read Crystal file header and extract information that which designer was used to create the (Crystal) report. This will help me do some specific task if the version of the crystal used is very old (say older than 7.0), relatively new (say between 7.0 and 11.0) and the latest (11.0 or later).
    I have downloaded the SDK and all the dlls, but I just couldn't find any API or function using which I can get this info.
    Could you please let me know if there is any way to read this information programmatically from a crystal file?
    (I know this info can be seen in Crystal designer, but I need to do it at runtime).
    Thanks.
    Edited by: addi2011 on Mar 14, 2011 2:02 PM

    Unfortunately, not enough info...
    if you are using CR for Eclipse, please post your query here:
    SAP Crystal Reports, version for Eclipse
    Before you do, I'd highly recommend having a quick peek at this:
    What do I need to do to get the fastest issue resolution?
    If you are using BI, post your query here:
    Java SDK Application Development
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Crystal Report Query

    How will i implement a query like this in Crystal Report?.
    select * from a
    where a.id not exist
    (select b.id from b where a.id = b.id)

    Enter the statement in the designer, or write a stored
    procedure that performs the query and reference that in the
    designer.
    This question is best asked in a Crystal Reports forum,
    BTW.

  • Sale Order Query Print layout/Crystal Report Query required

    Hi Experts,
    I created a Sale Order. Items included in it are service and material.
    (I created a BOM, bound the child material item to the parent service item. Moreover child item will have unit price where as parent item will not have unit price)
    I need the report on it please let me know how i can do it.
    I tried with below query
    select a.DocEntry, a.DocNum, a.CardCode, a.CardName, b.DocEntry,b.ItemCode, b.Dscription, b.Quantity, b.Price, b.LineTotal, a.DocTotal, a.VatSum 
    from ORDR a inner join RDR1 b on a.DocEntry = b.DocEntry
    --and b.TreeType <> 'N'
    where a.docnum = '14240621'
    output of above query is
    DocEntry
    DocNum
    CardCode
    CardName
    DocEntry
    ItemCode
    Description
    Qty
    Unit Price
    Line Total
    DocTotal
    Tax Amount
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    302010001
    PROVIDING & LAYING
    17.62
    2493.76
    43940.05
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    MT0001
    Material for PROVIDING & LAYING
    17.62
    2800
    49336
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    305010005
    BM CM INCLUDING CEMENT
    10.055
    1980
    19908.9
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    MT0002
    Material for BM CM  INCLUDING CEMENT
    10.055
    1650
    16590.75
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    302040001
    P/APPLYING
    65
    116.5
    7572.5
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    MT0003
    Material for P/APPLYING
    65
    65
    4225
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    301000001
    P& FIXING
    2.233
    31625.05
    70618.74
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    MT0004
    Material for P& FIXING
    2.233
    44000
    98252
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    306010001
    PROVIDING RMC
    3
    3593
    10779
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    MT0005
    Material for PROVIDING RMC
    3
    4847
    14541
    354652
    18888.46
    and my desired output is
    Unit price of both child item and parent item should be display in single column. ie. cumulative in Unit Price Column and Linetotal respectively.
    DocEntry
    DocNum
    CardCode
    CardName
    DocEntry
    ItemCode
    Description
    Qty
    Unit Price
    Line Total
    DocTotal
    Tax Amount
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    302010001
    PROVIDING & LAYING
    17.62
    5293.76
    93276.05
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    305010005
    BM CM  INCLUDING CEMENT
    10.055
    3630
    36499.65
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    302040001
    P/APPLYING
    65
    181.5
    11797.5
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    301000001
    P& FIXING
    2.233
    75625.05
    168870.7
    354652
    18888.46
    621
    14240621
    CDR0001
    ABCDEFGH
    621
    306010001
    PROVIDING RMC
    3
    8440
    25320
    354652
    18888.46
    please let me know the update on this.
    with regards

    Hi Nagarajan,
    thanks for reply..
    1) Yes, i.e i have taken into BomType: Template
    2) i did not get any helpful output by using treetype by keeping 'S' and 'N', i kept in comment.
    3) Actually MT0001-05 - these are material item- unit prices are fixed. see in attached image
         for parent item, unit prices are not fixed. I give the price for them in Sale Order.
         I want unit price for parent and child should be summed/cumulative for Sale Order print.
         (in my above post, first matrix exactly same as sale order line items plz check it)
    Please help me, how i can achieve this by query(for PLd or Crystal report)
    With Regards

  • HTML View Error in Crystal Report 2008 Designer

    Hi,
       I am getting an Error when i am trying to see the HTML Preview on the Crystal Report Designer. but, It is working Properly From CMC.
    I was getting the following Error.
    "Failed to access the HTML Server Page
    Contact your system administrator and make sure the BOE servers are running properly/
    Also make sure that the default viewer URL is set Properly in the CMC of BOE
    You can set the Default Viewer URL by following Steps
    1) Log into the CMC
    2) Clicl the APpplication Link.
    3) On the applications page Select CMC, CLcik the Manage menu, A=and Select Processing Settings.
    4) In the set default viewerURL, the URL Should be similarto the fllowing:
    http://[hostname]:[portnumber]/OpenDocument/Opendoc/OpenDocument.jsp?sIDType=CUID&IDocID=O%SI_CUID%"
    Kindly let me know how to resolve this issue. It was working properly. Thanks for your support in advance.
    Regards
    Shiva,

    It is still an issue for me.  I have a new install and am using WebElements to improve my reports.  I am new to 2008 Server (OEM version) so it's probably something very basic.  When I do a submit it shows a path of:
      BOE/OpenDocument/Opendoc/OpenDocument.jsp?sIDType=CUID&IDocID=O%SI_CUID%
    I don't even have a BOE folder.  My setting as instructed on the page is correct.  I have tried making changes but then the HTML preview doesn't even load the 1st page.  That leads me to believe that the link is correct regardless of what debug says.  Unlike other posts I have seen, my pages do not work in InfoView.  After hitting submit I get:
    http//servicedeskcrs:8080/OpenDocument/opendoc/openDocument.jsp?sType=rpt@sDocName=Resolution%20Report.rpt&lsSSelect1=1
    Notice that there is no : after http.  I have a feeling it is in a setting somewhere but I can't find it.

  • How to parse crystal report query prompt value via url parameters

    HI All,
    I am creating a employee detail report in crystal report. The recordset is huge and i have created a parameter prompts in the query and thinking to parse the prompt value via url parameters. Not sure why i still could not make it works.
    for example, in my query panel i have created a prompt called "pwwid"
    and this is how i parse the prompt value via open document url.
    OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=AV8U6HlIq4FBl_MhcBwHqGI&lsSpwwid=12345678
    I read the sap documentation, this is how it parse the prompt value via url parameter. but it is not working for me and i am getting prompt to fill in the wwid whenever i run the reports.
    any idea why i am not getting this works?
    Regards,
    KeatAun

    Could you try:
    OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=AV8U6HlIq4FBl_MhcBwHqGI&lsSpspwwid=12345678
    -Abhilash

Maybe you are looking for

  • Precompiling JSP with admin/managed servers

    Grrr... The JSP engine is extremely frustrating! I've spent many hours           fighting the "staleness" checker in WL. I've been through all of the           newsgroup messages pertaining to pre-compiling, etc., and I've gotten           pre-compil

  • Photoshop CS4 layers palette too wide problem!

    http://img232.imageshack.us/img232/6828/swatchesld2.jpg The Photoshop CS4 layers palette is too wide and distorts the layout of the default color swatches palette when docked on the same column. And I don't want to have to put the color swatches pale

  • Backup iPhoto Library to iDisk

    I tried to backup my 2.4 gig iPhoto library to iDisk via the finder. It was so slow as to be unusable. I tried to backup via the browser but it has a 1 gig limitation. Is there any way to split up the iPhoto library to get under the 1 gig limit? It a

  • Error 403--Forbidden

    Hi all , I create a simple stateless ejb named LoginSession to manage the login task , package it to a ejb jar file named login.jar , and then I want to explode it as a wls7.0 webservice , the build.xml like this : <project name="buildWebservice" def

  • Termination in operation Error X025********

    Dear Experts, While running payroll we are getting error Termination  in operation error X025******** please find attached screen shot for your reference.