1585518 - Background colors cover a field only partially when using the CR web viewer for VS .NET

SAP Knowledge Base Article - Public

1585518 - Background colors cover a field only partially when using the CR web viewer for VS .NET

Symptom

  • Conditionally set background colors cover a field only partially:

''

  • The issue only occurs in the Crystal reports web viewer for .NET
  • The issue is not present in the Windows or WPF viewer
  • Environment

    • VS2010
    • CRVS2010

    Reproducing the Issue

    1. Connect a report to a database
    2. Create a formula field with a database field in it;

    if RecordNumber< 2 then
     "12345"
    else
    {Customer.Address1}

    3. Format the above formula for background color:

     (if {Customer.Address1} ="7464 South Kingsway"
         then crRed
         else
              if {Customer.Address1} ="1 Featherstone Way"
              then Color (253,126 ,0 )
              else
                   if {Customer.Address1} ="8287 Scott Road"
                   then crYellow
                   else crGreen)

    4. Set the font to Times New Roman
    5. Select the font as 8 point
    6. Set the font style to Bold, or Italic, or Bold Italic (There is no issue if the font style is set to Regular)
    7. Enable "Can Grow"
    8. Enable "Tight Horizontal"
    9. View report in a VS .NET web app

    Resolution

    • This issue was found to only exist in the VS2010 IDE using the file system Cassini Web Server
    • The issue does not exist when running the application under HTTP

    Keywords

    CR2010 2010 CR4VS2010 CR4VS VS2010 NET2010 crystal reports for visual studio 2010 fill enclosed , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , Problem

    Product

    SAP Crystal Reports, developer version for Microsoft Visual Studio