Skip to Content
avatar image
Former Member

Problem with Crystal Reports while interpreting HTML

Hi,

We have an Ajax HTML Editor which is used by admin of our application to input some formatted text. Normal users can print this data in pdf format and  Crystal reports (version: 13.0.2000.0) is used to generate this pdf report. We found out that in the generated report some of the html tags are not interpreted properly. Please find below some of these html tags which are not interpreted:

<span style="font-weight: bold">This should be Bold</span>

<span style="font-style: italic">This should be Italic</span>

<span style="text-decoration: underline">This should be underlined</span>

<br />

Some bullets are also not interpreted.

When we created a sample project, we also found out that once we remove the spacing between the attribute name and value in style tag, it is interpreted fine. Even the tags <b>, <i>, <u> are interpreted properly.

As we dont have any control on the html code generated by the editor, we cannot alter the above <span> and <br> tags to the ones that work fine & we cannot change even the editor at this point of time. So please let us know what needs to be done, for crystal reports to interpret the above listed tags properly. Is this bug fixed in latest versions ?

This is a very crucial functionality in the application and please help us in resolving it at the earliest possible.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 04, 2015 at 09:02 PM

    Hi Ashok

    We are using a Richtext control which stores data in DB in HTML format. Data gets stored correctly, but while rendering in Crystal 2008 sp5 and Im facing couple of issues

    1. The bullets look too tiny and there is no space between the bullet and the text

    I tried adding &nbsp and a <pre. tag, but crystal strips it off

    2. How does the Crystal interpret the span class? Even if I save it with a class that adds say 10px i guess it will remove it. Can you pls help?

    Net-net,

    1. I need a bigger size bullet the text in HTML is as below

    <P>In-venue:</P><BR>

    <UL>

    <BR><LI>Annual promotional calendar</LI></UL><BR>

    <P></P>

    2. Space between the bullet and text

    Any help is appreciated.


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Ido Millet - The other issue I need help on is with the bullets not being displayed if there is no close </li> element. For ex the below HTML

      <P><STRONG><U>MICHELLE KWAN (figure skater):</U></STRONG> </P><BR>

      <UL>

      <LI>$175,000 fee

      <LI>2 personal appearances, <I>two</I> <I>optional appearances AFTER the Games at $25,000 per appearance</I><I>.</I>

      <LI>right to use image, likeness on print, POS, etc.

      <LI>option for television commercial usage at scale

      <LI>nonalcoholic beverage exclusivity except fro Milk (see below) 

      <LI>KWAN HAS A MILK DEAL, PRINT ONLY.  This will limit our exclusivity.  She has a "Got Milk" poster/Milk Mustache advertisement , and the Milk Board has rights to use it throughout the proposed term of our agreement. </LI></UL><BR>

      <P><STRONG><U>APOLO OHNO (short track speed skater):</U></STRONG></P><BR>

      renders as

      Since there is no closing </li> for the first 5 elements, the bullets are gone.

      Kindly help

      Arun

      No bullets.PNG (11.5 kB)
  • Jan 13, 2015 at 03:03 PM

    Hi Ashok,

    Not all tags are supported by Crystal Reports.

    This SAP Note has the list of supported tags.

    -Abhilash

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 13, 2015 at 05:03 PM

    I moved your post to the SAP Crystal Reports, version for Visual Studio SCN Space.

    Make sure you are using SP 12:

    SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates &amp; Runtime Downloads

    If that does not help, please test with SAP Crystal Reports 2013. An Eval is here:

    SME Free Trials | SME Software | SAP

    - Ludek

    Senior Support Engineer AGS Product Support, Global Support Center Canada

    Follow us on Twitter

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ludek,

      We are using a Richtext control which stores data in DB in HTML format. Data gets stored correctly, but while rendering in Crystal 2008 sp5 and Im facing couple of issues

      1. The bullets look too tiny and there is no space between the bullet and the text

      I tried adding &nbsp and a pre, but crystal strips it off

      2. How does the Crystal interpret the span class? Even if I save it with a class that adds say 10px i guess it will remove it. Can you pls help?

      Any help is appreciated.