Problem dislaying an Informix LVARCHAR field in Crystal Reports

Post Author: littlew
CA Forum: Data Connectivity and SQL
I am creating a report using Crystal Reports XI from a BOXI Universe.  The Universe is connecting to an Informix Dynamic Server 9.21 database.  The Informix database contains a field which is a LVARCHAR data type.   A LVARCHAR data type is one which allows the storing of more than 255 characters (up to 2KB). 
When I attempt to place the LVARCHAR data type field onto my report, Crystal Reports displays no data in my report for most of the other fields, and all the formulas return invalid results.  If I go into the Informix database and change the LVARCHAR field to CHAR (255) field, the Crystal Report will run with no problems.
Does anyone know if Crystal Reports can support the displaying of fields from the database, which are greater than 255 characters?
Also, I have created a Crystal Report which uses the same Informix data source using an ODBC connection and the LVARCHAR field caused the entire report not to display.   By changing the field from LVARCHAR to CHAR (255) the report runs fine.
-bill

Post Author: V361
CA Forum: Data Connectivity and SQL
I don't remember where I read it, but the field limit is 255 characters. Unless that has changed in CR 2008

Similar Messages

  • How to set a new value for formula field in crystal reports xi?

    <p>How to set a new value for formula field in crystal reports xi?</p><p>//formula</p><p>{@description}</p><p> </p><p>exemplo in VB6</p><p>crxSubreport.FormulaFields.Item(1).Text =  "&#39;Subreport Formula&#39;"  or</p><p>crxSubreport.FormulaFields.Item("description").Text =  "&#39;Subreport Formula&#39;"</p><p>How to in JRC?</p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p>

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • Number field on crystal report displays Exponential form.

    Number Type field on crystal report printed in Exponential form when digits in this field are more than 17.

    Hi Jay,
    The same issue is addressed in the K-Base article c2005336. This is the limitation in Crystal, If you have more than 15 digits of numberic field it will convert into Exponential
    Use database-level syntax to convert the numeric database field to a string so that Crystal Reports will interpret it as a string type, and display all of the characters.
    For example, in Oracle, cast the number using to_char() and in Microsoft SQL Server use CAST() or STR() prior to adding the field to the report.
    As a workaround to display all the number, I would suggest you to convert it to text using a SQL Expression Field. A SQL Expression field will be evaluated on the database server.
    I would suggest you to follow the below mentioned steps to create SQL Expression field and convert a database field to a string:
    1. Open the report.
    2. Right click the SQL Expression field which is present in the Field Explorer.
    3. Select New and copy and past the below-mentioned text.
    CAST ("Database Field" as varchar)
    Note u201CDatabase Fieldu201D Here you have to mention your database field.
    After you create the SQL Expression Field, insert it on the report and it will display the full number.
    Please note that no calculation can be made on that field since it is now a string.
    I hope this helps you.
    Regards,
    Prashant

  • Cant Display "Memo" Type Field in Crystal Report XI R2

    I am using Crystal Reports XI R2 and when I am trying view all of the fields in the Databse Expert, I click on Links and review the fields listed for my SAP OCRD table, I cannot see any of the "MEMO" type fields . I have recently upgraded from XI R1 and never had this problem until my conversion. Does anyone know if there is a setting or something to fix this issue. Thanks ahead time for your help.
    JIm Dyer

    Check this link
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233303335333633323332%7D.do

  • How to set formula field in crystal report

    Hello all,
    I develope the code in C#.NET and use SAP B1 2004C. I have a problem with crystal report. I have in crystal report one unbound field. This field is string type. I need in my code change value of this field to another text ex. ("test").
    I use this code:
    FormulaFieldDefinitions crFormula;
                FormulaFieldDefinition crFormulafieldD1;
                crFormula = crReportDocument.DataDefinition.FormulaFields;
                //FormulaFieldDefinition test;
                //bool test = crFormula.IsReadOnly;
                string error = "";
                bool isCorrect = true;
                crFormulafieldD1 = crFormula[1];           
                string ahoj = crFormulafieldD1.FormulaName;
                crFormulafieldD1.Text = " ""+OP.ToString()+"" ";
                isCorrect = crFormulafieldD1.Check(ref error);     
                // Display the error message if the syntax is incorrect.
                //if (!isCorrect) MessageBox.Show(error);
    The value of the field is set, but on the report isnt it. Why not. Can you help me. Send some sample.
    Thanks

    Hi
    I've never tried to change a field of the report directly. Maybe it would solve the problem if you make a parameter field, which you can use in the formula.
    You can set then the parameter field:               report.SetParameterValue("NameOfParam", valueOfParam);
    Regards,
    Martin

  • Problems with consuming SAP BW WSDL in Crystal Reports 2008

    Hello,
    I am trying to use the WSDL generated from the SAP BW in Crystal Reports 2008 using the XML and Web Services driver, but when I input the WSDL url Crystal does not interpret the url passed in as a WSDL url and the Services, Port and Method drop downs are blank.
    If I manually input the values I get the error below from Crystal
    "Logon failed.
    Details: Web Service Location is invalid
    WSDL Exception (at /wsdl:definitions/wsdl:portType/wsp:Policy): faultCode=INVALID_WSDL:Encountered unexpected element
    'Policy'."
    I know this is a valid WSDL as I have tested it with Xcelsius 2008 and I am able to get data back in Xcelsius. I found SAP note 1485601 that talks about Crystal Reports not being able to reading a WSDL generated by a SAP system.
               https://websmp230.sap-ag.de/sap/support/notes/1485601
    Based on the error message from Crystal above I feel that Crystal is unable to read the WSDL URL, has anyone else encountered this issue, if so is there a possible work around.
    We are running Crystal Reports 2008 V1 SP3 FP 3 and the SAP Integration Kit is also on the same service pack and patch level.
    Any help or insight into the issue will be very helpful.
    Thanks,
    Kumar

    Ingo,
    I am using the "XML and Web Services" connection option in Crystal Reports, and using a HTTP WSDL.Here is a sample of how WSDL url generated by SAP BW.
    http://servername:8000/sap/bc/srt/wsdl/bndg_DF6E553E117931F19C6B001560A1B616/wsdl11/allinone/ws_policy/document?sap-client=100
    We have a two structure BW query (one for keyfigures and one as characteristic structure ), I know that this will cause the structure for the characteristics to show up as a single field and each element of the structure will result in a row of data, but we need the individual elements on the structure and we were hoping to get around the MDX driver limitation by using the web service connection.
    The data in the Crystal Reports 2008 needs to be in a crosstab layout as shown below, but if we use the Crosstab expert the key figures are stacked one under the other and also we cannot get the labels from the KPI structure to show up on the Crystal Reports.
                   Characteristic Structure
                 Column1            Column2                     Column3     
    Label 1          KeyFigure 1          KeyFigure 2                    KeyFigure 3
    Label 2          KeyFigure 1          KeyFigure 2                KeyFigure 3
    Label 3          KeyFigure 1          KeyFigure 2                    KeyFigure 3
    This layout is already built in a Web Template and therefore we were planning on using the WSDL to get the layout directly into Crystal report, but I keep running into the WSDL error when I try to consume the WSDL in Crystal.
    Thanks,
    Kumar

  • Problem when trying to print standart invoice crystal report for SAP

    Hi All, I have the following problem when trying to print a system invoice report in crystal reports for SAP
    I pass params and load the report using this code
    Private Sub DisplayThreadReportSeq()
    Dim oView As New frmViewReport
    Dim strReportPath As String = ""
    Dim strParamName As String = ""
    Try
    Dim CR As New ReportDocument
    CR.Load(oReport.CrstPath)
    ' Declare the parameter related objects.
    SetReportValues(CR)
    Dim crParameterDiscreteValue As ParameterDiscreteValue
    Dim crParameterFieldDefinitions As ParameterFieldDefinitions
    Dim crParameterFieldLocation As ParameterFieldDefinition
    Dim crParameterValues As ParameterValues
    ' Get the report's parameters collection.
    For Each oPar As cslParam In oReport.Params
    crParameterFieldDefinitions = CR.DataDefinition.ParameterFields
    crParameterFieldLocation = crParameterFieldDefinitions.Item(oPar.ParName)
    crParameterValues = crParameterFieldLocation.CurrentValues
    crParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue
    crParameterDiscreteValue.Value = oPar.Value
    crParameterValues.Add(crParameterDiscreteValue)
    crParameterFieldLocation.ApplyCurrentValues(crParameterValues)
    Next
    If pPrint Then
    If oReport.Printer "" Then
    CR.PrintOptions.PrinterName = oReport.Printer
    End If
    CR.PrintToPrinter(IIf(oReport.Copies = "", 1, oReport.Copies), False, 0, 0)
    SBO_Application.StatusBar.SetText("Printed Document Successfully", SAPbouiCOM.BoMessageTime.bmt_Medium, SAPbouiCOM.BoStatusBarMessageType.smt_Success)
    Else
    oView.Text = pReport
    oView.TopMost = True
    oView.Viewer.ReportSource = CR
    oView.Hide()
    oView.ShowDialog()
    End If
    Catch ex As Exception
    Util_GenErrorLog("DisplayReport", ex)
    End Try
    End Sub
    This code works fine when the report invoke to print is developed in crystal reports version for .net 2008 or .net 2005
    when trying to print a report standart getting from SAP BO 8.8.1 using this code I getting the following error:
    Error in File C:UsersecombaAppDataLocalTemp5ARInvoiceStandartSap {300B9A68-DF05-4D7B-8F3B-1670A4493BEE}.rpt:
    Error in formula .
    'Shared numberVar SectionTotalMaxHeght;
    A number, currency amount, boolean, date, time, date-time, or string is expected here.
    This report is the standart report that SAP 8.8.1 includes and works fine on SAP.
    I referenced this dlls CrystalDecisions.CrystalReports.Engine.dll, CrystalDecisions.CrystalReports.Shared, version 10.2.3600
    How I can get these dll´s version for Crystal Report 2008 for SAP Business one or How I can solve this problem
    thanks in advance,
    Ezequiel.

    Hi Ezequiel,
    You can try to search in SAP Business One Reporting & Printing forum section or post there.
    nd.Q

  • Adobe reader problem on viewing PDF file created by crystal report

    I have a VB6 application to export the PDF file by using crystal report 9. However, when I viewed the PDF file under Adobe reader 8, I have a following message when I hit the page down key.
    "An error exists on this page. Acrobat may not display the page correctly.
    Please contact the person who created the PDF document to correct the problem."
    After hit okay, this message will be gone and I can see the PDF file without problem. However, I don't have this issue when using Adobe reader 5 or 6 version.
    If I crystal report 11 version to export the PDF, everything works fine also but our production machine can only use crystal report version 9, not 11.
    Anyone have idea?? Thx!

    Sounds as if there is a bug in the older version of Crystal reports.
    If you are prevented from installing fixes for bugs, you may well be
    stuck with the effect of the bug.
    Aandi Inston

  • Adding adobe acrobat text field in crystal reports

    Currently trying to add an adobe acrobat text field to a PDF using crystal reports.  Any help would be appreciated.

    Can you explain a bit more how you want to do this?
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • How to group by more than one fields in crystal reports

    Hi
    How to create groups in crystal reports by more than one fields, like
    select fields,aggregate functions from table group by a,b,c

    Not sure if I understand your question, but you you could create a formula to generate the string of data you want to group on.  Then simply create a group based on the formula field.
    For example, your formula could do something like (assuming all String fields):
    {table1.FirstName} + {table1.LastName} + {table1.DateOfBirth}
    , and then group on this formula.
    -MJ

  • Binary field in crystal report.

    Dear all expert,
    i have a binary field in my crystal report, how can i display it as image in crystal report? or how can i make a hyperlink on it so when user click on it, it will open a new window for them to view the image?
    Thank You.

    Drop the field into the report, depends on the version of CR if it's supported though

  • Sum the sum of fields in crystal report

    In crystal report 2008, i have rows of data grouped by document number. Sum of each document (RTotal1) display at Group Footer.
    At the Report Footer level, I want to display the Grand Total. In formula workshop, I tried to add a formula to sum RTotal1 above. However, error message indicated 'this field cannot be summarized'.
    Second try: In Running Total Fields, I tried to add RTotal1 above to the field but error message indicated 'invalid field selection'. Any idea what's the proper way to sum the sum of fields?

    You need to use a variable, create 3 formula
    @reset
    whileprintingrecords;
    global numbervar GTotal:=0;
    //place this in report header, or higher grou header as appropriate
    @Eval
    whileprintingrecords;
    global numbervar GTotal:=GTotal + Sum( valuefield, groupfield);
    // place this in group footer where your sum shows
    @display
    whileprintingrecords;
    global numbervar GTotal;
    //Place this in report or higher group footer
    Ian

  • How to Assign Image field in crystal report through Image UDF

    Hi All,
    I want to capture the Image UDF in crystal report. How can i assign the field in report.
    Can any body help me.
    regards,
    Kiran Kumar

    Hi kiran Kumar,
    IPost a message to SAP Businessone Reporting & Printing Forum
    and also check this link
    Re: SAP Business One and Crystal Reports
    Image Type In Crystal Report
    Regards
    Jambulingam.P
    Edited by: Jambulingam P on Jun 19, 2009 8:22 AM

  • Problem in using  Nested  IF-ELSE in Crystal Report  formula

    Hi Experts ,
                         I am having some problem using  Nested IF-ELSE in Crystal Report formula ,
    there is no error in the formula but only one condition is working. other condition is not working
    i am using this concept in formula workshop :-
    ' if{EXCISE_INVOICE;1.Basic Excise Duty BED@10 %}<>0 and{EXCISE_INVOICE;1.Education Cess @2%}<>0 and {EXCISE_INVOICE;1.Secondary Education Cess @1%}<>0 and {EXCISE_INVOICE;1.Central Sales Tax(CST)@2%}<>0
    then
    Sum ({EXCISE_INVOICE;1.Amount}) + {EXCISE_INVOICE;1.BedAmount@10%} + {EXCISE_INVOICE;1.EcessAmount@2%} + {EXCISE_INVOICE;1.SecCessAmount@1%} + {EXCISE_INVOICE;1.CSTAmount@2%}
    else
    if {EXCISE_INVOICE;1.Basic Excise Duty BED@10 %}<>0 and {EXCISE_INVOICE;1.Education Cess @2%}<>0 and  {EXCISE_INVOICE;1.Secondary Education Cess @1%}<>0 and   {EXCISE_INVOICE;1.Input VAT@5%}<>0  and {EXCISE_INVOICE;1.Addtional Tax@1%}<>0
    then
    Sum ({EXCISE_INVOICE;1.Amount}) + {EXCISE_INVOICE;1.BedAmount@10%} + {EXCISE_INVOICE;1.EcessAmount@2%}+{EXCISE_INVOICE;1.SecCessAmount@1% } + {EXCISE_INVOICE;1.VATAmount@5%} +{EXCISE_INVOICE;1.AddTaxAmount@1%(for VAT@4)}
    I want that  all conditions  should work and the condition which is applicable there according to formula it display the result,  if i add another condition then it should also work.
    kindly tell me the solution of this problem
    Regards
    Rahul

    Try this logic:
    if{EXCISE_INVOICE;1.Basic Excise Duty BED@10 %}!=0 and{EXCISE_INVOICE;1.Education Cess @2%} !=0 and {EXCISE_INVOICE;1.Secondary Education Cess @1%} !=0
    then
    Sum ({EXCISE_INVOICE;1.Amount}) + {EXCISE_INVOICE;1.BedAmount@10%} + {EXCISE_INVOICE;1.EcessAmount@2%} + {EXCISE_INVOICE;1.SecCessAmount@1%}
    else
    0
    +
    IF {EXCISE_INVOICE;1.Central Sales Tax(CST)@2%} !=0
    then
    {EXCISE_INVOICE;1.CSTAmount@2%}
    else
    IF  {EXCISE_INVOICE;1.Central Sales Tax(CST)@5%} !=0
    then
    {EXCISE_INVOICE;1.CSTAmount@5%}
    +
    if {EXCISE_INVOICE;1.Addtional Tax@1%} !=0
    then
    EXCISE_INVOICE;1.AddTaxAmount@1%(for VAT@4)}
    else
    0
    If not work, try SQL command.
    Thanks,
    Gordon

  • Vertical offset problem when printing labels after editing with Crystal Reports

    Hello,
    We are still using the RDC component of Crystal reports in some of our C++ Software components. Label design is done with a very old Version 8.5 of Crystal, the Clients use the 10.5 runtime for printing.
    This was running on Windows XP and Server 2003 for a Long time. Recently we changed to Server 2008 R2 (english) and Windows 7 (de) on the Clients. Again we installed CR 8.5 on the Server for Label design and a 10.5 runtime on the Clients for printing. Now something strange happened. If we just open a Report file with CR on the Server and save it (doing no changes), there is a Problem with printing on the Clients. The line spacing is now wrong. It´s about 5th the value as it should be. This only happens on the Client. The reports still print ok from the preview Windows of CR on the Server.
    However, we have to Change Labels. As a Workaround, we installed CR also on one of the Windows 7 Clients. And this is working. We can save Labels unchanged and they are printed with the correct line spacing on the Clients.
    Of Course, this should be solved in the future, because the Clients are placed in our production area and it´s not a good place for sitting and changing Labels.
    i´v no idea what could be the reason?
    Greetings, Jörg

    This might be due to differences in default/specified printer (or printer driver) across the machines involved.

Maybe you are looking for

  • While  F-92 posting with T type 210 not possible  (No acquisition posted)

    Hi Asset Retirement Not Possible We have uploded legacy data in our Production server on 01.04.2010.. after that we have to sale one of them asset . I am using T.code :- F-92 .. but i couldn't sale that and system gives me error Posting with trans.ty

  • Region as repeating  header

    I have a set of fields in the first region of one of my pages that the user would like repeated at the top of every print previewed/printed page. Is this something that can be done in HTMLDB?

  • I am unable to save my changes to security questions in my apple manage id.

    i am in section on apple website

  • My iPod does not have search feature

    Hello. I bought a 60 GB iPod last September. I have it full of music, and I need the search feature for the music menu that I have seen in this web. Am I doing somethig wrong? It is not in my iPod Menu. WHy could be possible? I have updated the iPod

  • Bridge missing lens profiles

    Hi there, for some reason my new copy of the latest Bridge seems to only show 6 lens profiles for nikon. Bridge has been updated to the most current update but that didn't seem to help... Can anyone shed some light on what the problem could be here?