Accessing trend line formula in Crystal Report

I am using Crystal Reports 8.5 and CR2008.  I have a report showing a trend line (specifically the quadratic regression).  I can show the formula that is being used for the report in the chart.  How can I access the regression formula in Crystal Reports?
Thank you for your help.

hi James,
in short you can't...the charting engine is a separate 3rd party dll so what you see there is not necessarily available in the rest of cr in summaries etc.
in order to do things like this, you either have to do the calcs on your database or using formulas. i've attached an example of linear regression that i did a while ago. change the .txt extension to .rpt after you extract the contents. sorry, there are no instructions on how to do this.
on the attached sample though it does figure out the regression formula and also extrapolate data, show residuals etc.   there are a couple of other "fits" in a parameter but i never finished those as it made my head hurt
-jamie

Similar Messages

  • How to set path of MS-Access databse file dynamically in crystal report

    i have windows application and crystal reports and access database.when i connect crystal report to database through followingpath like
    \\machinename\FolederName\AccessDBFile.mdb..here machine name is my machine name(i.e:PCNAMe).but when i will deploy this application on cliet machine then how i can set the path to crystal report with his machine name dynamically..or is
    there any other provision to do this so that i can set it dynamically.
    one more thing i want to tell you is that i wwant to share database on multiple machines so how can i do that.

    Hello,
    Crystal reports is for a long time not anymore supported by Microsoft. 
    Moreover for sure not in this forum for api's components and classes for the user interface Windows Forms
    Try direct the SAP community for Crystal reports for .Net
    http://scn.sap.com/community/crystal-reports
    Success
    Cor

  • Programmatically create objects and formulas in Crystal Reports XI Developer edition?

    <p>Is it possible to programatically/dynamically create a text, line, formula field object, etc. in Crystal XI Developer edition?  I have been programming with the Crystal .Net reports component that came with VS 2005 for the past 6 months and know for a fact you can&#39;t programmatically create those objects although you can programmatically control their properties.  My intention is to create a dynamic report that can be reused extensively.  My current work-around for this was to create a generic report with about 40 formula field objects which draws data from 40 corresponding formula fields that I can programmatically set it&#39;s formula thus imitating a report field.  I want to update to the developer edition because I heard with this edition we can programmatically create and manipulate these objects but I found no reference or examples anywhere that proves we can do this?  Does anyone know for a fact or point me to the right place to look for documentation?  TIA</p>

    Hi,
    How can I programmatically refresh list of values status on CR server XI R2?
    Currently, after I modified the data source in the data connection, some of the LOVs in the report prompt window became empty when I tried to generate the report. I have to use Business View Manager to log onto the Crystal reports server XI R2, find and double click the list of values object to bring up the Edit LOV window, and then click on "Refresh Status" button to make the LOV available in the report prompt window.
    What SDK should I use to create a simple application (preferable a desktop application) to find all LOV objects on CR server XI R2 and to refresh their status? That is an application similar to the "Refresh Status" function in Business View Manager.
    I found Report Engine SDK has the Lov.Refresh function to refresh LOV. On the other hand, Report Engine SDK seems to be for BusinessObjects Enterprise, not for Crystal Reports Server. Can this or other function achieve what I want, i.e. to refresh list of values status on CR server XI R2? If yes, can I use it to develop a self-contained desktop application instead of a web application? I only need to run this application after I modify the data source in the data connection, so I prefer not need to deploy it as a web service.
    Thanks for your help.
    C.T.

  • Mapping Access 2010 Query Expressions In Crystal Reports

    Hello,
    I am new to Crystal Reports.
    When I change the datasource of a Crystal report to an Access 2010 query that has an expression in it, it is not able to map that calculated field. The expression in question is a simple iif statement that yields a yes or no, given the condition that's met. It works fine in Access and is very basic.
    But I can't get it to map in Crystal - so I tested it by changing the expression in Access to defect:"x" - even simpler. It still shows up in Crystal as unmapped when I point to the query and hit the Crystal update button.
    Can Crystal map expressions in an Access 2010 query, or does it just handle straight table fields that occur in a table or query?
    Regards,
    Dan

    Hello Dan,
    When pointing your report from one data source, to another one, the reason it does not initially map the field, it is because they are seen as defined with different data type. One is defined with 255 characters, and the other one is seen as a Memo. In the "Map Fields" window, uncheck  the option "Match type", and you will then be able to map your expression field manually.
    Note that the MS Access provider, send the information to Crystal Reports regarding the data type, and the fact it is different, it is because the provider used send different information to Crystal Reports, and if a field is defined with more than 255 characters, it will be seen as a memo field.
    There is nothing that can be done in Crystal Reports to change the data type as it is provided by the database provider.
    By design, it does not list a memo field as a database field you can group by, because large string generally contains a description, comments, ... and this type of information is generally always different, so there is no reason to group by those field with that data type.
    Having said that, it is possible to group by a formula that contains the memo field to give the flexibility to bring back a portion of the characters that the memo field contains. To do so:
    1. Create a formula that uses the memo field like:
         {Database.MemoField}   
    2. Save and close the formula.
    3. Under the menu "Insert", select "Group"
    4. In the "Insert Group" window, select the formula created in the previous
    steps to group by.
    This information is available in the SAP Knowledge Base Article:
         1214731 - Unable to group on a memo field in Crystal Reports
    I hope the above information answered your questions.
    Patrick

  • Is there a way to Extract all formulas from Crystal Reports files?

    Hi:
    I have about 40 Crystal Reports (.rpt files).  I need to go through each one and look at formulas if a certain variable/value is used since it has currently changed.  It is taking way too long and not to mention inefficent to open each file, look through any place where there could be custom formulas such as when to suppress - etc.  Is there are way to easily exact all custom formulas from all those report into say a Text file so I can do a Search for it?  That would be the easiest way to find what I'm looking for.
    I have Crystal Reports XI.
    Thanks in advance for your help.

    One option is to use a tool such as rptInspector.  See: [http://www.softwareforces.com/Product/ri/pro/3/rptInspector.htm|http://www.softwareforces.com/Product/ri/pro/3/rptInspector.htm]

  • Error while accessing oracle packaged procedure in crystal report./ How to

    Hi,
    When i tried to call a packaged procedure in crystal reports for .net, i am unable to access it.
    i am getting error as 'unknown query engine'
    In that packaged procedure i have a two IN parameters and one OUT TABLE parameter ( which is declared in package specification )
    And when selecting the packaged procedure in crystal report,the wizard shows all the parameters like the IN parameters, and when i just leave it blank. i unable to set into report.
    ie., the OUT table type is shown as IN paramters (Actually it is an output and has field fields in it.)
    And No fields are coming in the Fields Explorer of crystal reports in .net.
    can you provide any help.
    thanks and regards
    Mohan Raj K.
    Actually using vs.net 2005 prof.
    Message was edited by:
    mohanraj_k

    Actually the OUT Parameter type in the stored
    procedure is showing as IN Parameters and asking
    for input values in the crystal report creation
    wizard(while selecting the
    database,connection,storedprocedures/qualifiers).That sounds like a problem on the .net / crystal report creation wizard side of things. Oracle no doubt recognises them as OUT parameters, so it's not Oracle at fault. I would guess the .net stuff is just querying the data dictionary to see what parameters there are rather than differentiating between the INs and OUTs.

  • How to set Formulas in crystal reports 2008

    Hi,
    I am generating crystal reports in vb6 using CR 8.5 and vb6 and below is the code snippet for the same
    CrystalReport1.Formulas(0) = "PrintTitle= '" & strMyTitle & "'"
    CrystalReport1.Formulas(1) = "FromDate= '" & MskFromDate.Text & "'"
    CrystalReport1.Formulas(2) = "ToDate= '" & MskToDate.Text & "'"
    Please let me know how the same functionality can be achieved in VB.Net using Crsytal reports 2008
    Any code snippet would be of great Help.
    Thanks in Adnvance.
    Ramnath

    Something like this:
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Public Class Form1
    Inherits System.Windows.Forms.Form
    Dim Report As New CrystalReport1()
    Dim FormulaFields As FormulaFieldDefinitions
    Dim FormulaField As FormulaFieldDefinition
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    FormulaFields = Report.DataDefinition.FormulaFields
    FormulaField = FormulaFields.Item(0)
    FormulaField.Text = "[formula text]"
    CrystalReportViewer1.ReportSource = Report
    End Sub
    Also, see the Developer help file:
    http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm
    API reference:
    http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_apiRef_12_en.chm
    and [Crystal Reports for Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23]
    And don't forget to use the search box at the top right of this page before posting to the forums...
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Edited by: Ludek Uher on Jul 26, 2010 8:57 AM

  • Last date for an invoice formula for Crystal Reports

    Post Author: jegva
    CA Forum: Crystal Reports
    I sure hope someone can help me write a formula to list only the last dated invoice from our database.  Let me explain, our sales would like a report listing all of our customers showing their last dated invoice.  We use SQL and Crystal Reports 8.5 (yea outdated).  They are interested in showing all our customers and their last invoice/date so they can try to contact those who have not done business for some time. Please help!!!!!!!

    Hi Scott,
    One reason is the older versions introduced a .5 font reduction in the viewers. This was a good thing for some but bad thing for others so I assume what the developers have done is leave the font as is and show those # symbols now to indicate the viewer you are using and font you are using works differently on the OS and the various viewers being used.
    In CR designer it uses the GDI+ to render the data through classic C++ function calls. I .NET it too uses GDI+ but it's the Framework making the calls and the Framework handles screen mapping differently. We've had this issue/functionality limitations since version 9. Various reasons and various work arounds resulted in various outputs.
    Another reason is the C++ viewer built into the Report Designer and the .NET framework handling the fonts work slightly differently when rendering. This has been tracked and few times here by me and in both cases the cause is GDI+ has bugs in it so it's nothing we can do. Post or log your issue with Microsoft, they may be able to fix it. Once they do then if it's still a problem in CR we can fix it depending on what MS does.
    Another work around may be to use a fixed font like Courier or some other font that has a specified character area all characters use, it may make the characters space oddly but as for displaying it's always the same size.
    All I can suggest is they get into a practice of testing their reports in your app before "publishing"
    Thanks again
    Don

  • Formula in Crystal Report

    hi
    can anyone tell what is the error in this formula
    if  not isnull {GetDataTable.MARK_PRICE_RATE} then
    (({GetDataTable.mark_price_rate} * {GetDataTable.BILL_DET_COUNT})  -  {GetDataTable.JARIMEH } )
    it is displaying the error like this
    The keyword 'then' missing

    Hi,
    Please post your question at crystal reports forum below for a better assistance on this, this is C# code related forum:
    https://scn.sap.com/community/crystal-reports
    Regards,
    Fouad
    Fouad Roumieh

  • Accessing test.jsp page outside Crystal Reports for Eclipse

    <p><br />Hello All,</p><p>Iam very very new to Crystal Reports for Eclipse...</p><p>I have created a .jsp called as test.jsp (by using the help file which i downloaded from diamond)..</p><p>I have created a report called CrystalReport1.rpt and i have integreatd the same with a .jsp called test.jsp</p><p>I can see the file running absoultely fine in Eclipse but when I ty to open using Internet explorer by gidving <a href="http://localhost:8080/WebContent/test.jsp">http://localhost:8080/WebContent/test.jsp</a> iam getting nothing...</p><p>Can anyone here help to open the same file using Internet explorer?</p><p>The reason why i want to open it Internet explorer is becasuse i wanted to integreat the new jsp file with my current application which is developed using jsp...</p><p>Is it require to deploy the application something like we do in Visual Studio?</p><p>Thanks in advance</p><p>Jack<br /></p>

    Rob Horne<br /><a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/blog/10</a>

  • Cannot access BO Enterprise items within Crystal Reports

    Hello,
      Having searched the forums and being unable to find the appropriate solution to my problem I have decided to ask the question myself.
      I am using Crystal Reports version 11.0.0.895 and Business Objects Enterprise version 11.0.0.748.  When using Crystal Reports I can log on to the Enterprise server as Administrator and view the enterprise items.  I can easily browse through the list of reports but when I try to open one I get the following error:
    u2018The report could not be opened from BusinessObjects Enterprise.
    Possibly the report is on a different BusinessObjects Enterprise system that the one you are currently logged onto.  If this problem persists, please contact your administrator.u2019
      The other option available to me is u2018Manage Objectu2019 and this works just fine where I can view the history, schedule, etc.
      I suspect I need to do something with the server itself but I am unable to determine what exactly is required.  Please advise.
    Regards,
    Declan.

    Hi Declan
    For the folder on which the error is returned, please ensure that there is no rights problem with it.
    In the report section, the "download files associated with the report" right should be set to "explicitly granted".
    Thanks.
    Regards
    Girish Bhosale

  • Error on accessing SAP BW query with Crystal Reports 2008: Kein Fehler

    Hi,
    I want to create a Crystal 2008 report with SAP BW data.
    The query is set to allow external access and using the BW toolbar in Crystal, I can connect to the SAP BW system and select the query. But then the following message appears:
    Fehler bei der Erstellung einer neuen Berichtsvorlage.
    Kein Fehler.
    COM exception caught in CExtToolBar::InitializeGlobalData(). HR = 0x0388bb27
    The message is always in German, no matter if I'm logged on in English.
    What's wrong? Do I have to install something else? Is something missing?
    Thanks and best regards,
    Heiko

    Hi everybody,
    I just made an authorization trace.
    11:45:37:272 AUTH    - - -   S_RFC      RC=0  RFC_TYPE=FUGR;RFC_NAME=SYST;ACTVT=16;
    11:45:38:750 AUTH    - - -   S_RFC      RC=0  RFC_TYPE=FUGR;RFC_NAME=SUSO;ACTVT=16;
    11:45:38:765 AUTH    - - -   S_RFC      RC=0  RFC_TYPE=FUGR;RFC_NAME=SUNI;ACTVT=16;
    11:45:38:782 AUTH    - - -   S_RFC      RC=0  RFC_TYPE=FUGR;RFC_NAME=RSCR;ACTVT=16;
    11:45:38:793 AUTH    - - -   S_RFC      RC=0  RFC_TYPE=FUGR;RFC_NAME=SH3A;ACTVT=16;
    11:45:39:63  AUTH    - - -   S_RFC      RC=0  RFC_TYPE=FUGR;RFC_NAME=RFC1;ACTVT=16;
    11:45:39:83  AUTH    - - -   S_RFC      RC=0  RFC_TYPE=FUGR;RFC_NAME=RFCH;ACTVT=16;
    11:45:39:228 AUTH    - - -   S_RFC      RC=0  RFC_TYPE=FUGR;RFC_NAME=RZX0;ACTVT=16;
    11:45:39:228 AUTH    - - -   S_RS_RSTT  RC=0  RSTTBOBJ=TRACE;USER=OSD03VJ0;ACTVT=01;
    11:45:39:233 AUTH    - - -   S_RS_TOOLS RC=0  COMMAND=WEBPUBLISH;
    11:45:39:238 AUTH    - - -   S_RS_FOLD  RC=0  SUP_FOLDER=' ';
    11:45:49:102 AUTH    - - -   S_RFC      RC=0  RFC_TYPE=FUGR;RFC_NAME=RZX2;ACTVT=16;
    11:45:51:707 AUTH    - - -   S_RFC      RC=0  RFC_TYPE=FUGR;RFC_NAME=RS_PERS_BOD;ACTVT=16;
    Every row was green.
    There were no conflicts or missing rights.
    Regards,
    Sebastian

  • Hyperlink using formula in Crystal Reports 8.5

    Is there a way to create hyperlink formula to link to nth page in the report (in the exported pdf file)
    for example:
    i want to created a link to a text and when clicked on the link it should take me to page 8 in the same report.
    Thanks
    -Vivek

    Hi Navin
    Thank you so much for your response.
    Is it particular to any one single report or all the reports which contain hyperlink.
    basically it's just one report that should have filer names and pages numbers in the first page followed by the detailed report of all filers
    Also let us know to what type you are linking to, Is it any email address else a website or a file type.
    The table of contents is loaded from a sub report which is connected to a temporarty table with filer names and page numbers.
    it's a database field
    -Vivek

  • Passing values at run time through a JSP page to selection formula to crystal report

    <p>hi,</p><p>   i am using one jsp page.in that page there is a field to select a date </p><p>this value will go to the report and report contain one selection formula.</p><p>which value we are passing on that basis the report should display</p><p>with date which we are passing  from GUI.</p><p>help.............................................................</p><p>//R</p>

    I believe the value of this is based on the owner of the scheduled object.  So if the Admin is scheduling it on behalf of a user I think it should use the user the Admin scheduled on behalf of.  It should be simple to test, simply create a report with this value being displayed and nothing else and see what values you get.

  • Formula Help Crystal Reports 11

    Hello,
    I am having trouble with a selection formula.  I wrote a report that queries 2 tables that have been joined within my report.  A primary table and a secondary table. The secondary table can contain multiple detail records that are associated with each primary record.
    There is a field in each record of the secondary table that contains an alpha character.  I need a slection formula to scan through the fields of the secondary records and if one of those secondary records has a particular value (In this case "T") I would like ALL of the secondary records included in my report along with the primary record indexed to it.  If no secondary record in the series has a value of "T" then all records should be excluded from the report including the primary record indexed to that series of secondary records.
    Is there a function I can use to accomplish this type of logic?...an example of the appropriate syntax would be helpful.
    Your help is much appreciated!
    Mark

    Hi Mark,
    Use the InStr function.  This will allow you to search for a string and it will return a numeric value which represents the placement. 
    Instr ({Table.FIELD}, "T") > 0;
    This will return all records that have a "T" in that field. 
    Good luck,
    Brian
    Edited by: Brian Dong on Oct 23, 2008 4:39 PM

Maybe you are looking for