Display HTML Table in ASP.Net Crystal Report

anirudhp
 
on Nov 27, 2021 04:48 AM
1933 Views

Dear sir,

im not able to display html table in my report

<table border="1" cellpadding="1" cellspacing="1" style="width:500px">
    <tbody>
        <tr>
            <td>look</td>
            <td>looked</td>
        </tr>
        <tr>
            <td>cook</td>
            <td>cooked</td>
        </tr>
        <tr>
            <td>bless</td>
            <td>blessed</td>
        </tr>
    </tbody>
</table>

 

Download FREE API for Word, Excel and PDF in ASP.Net: Download
Andrea
 
on Nov 27, 2021 04:48 AM
Hi @anirudhp,
Please try the following

Display Group wise Percentage in Crystal Report from Multiple Table in ASP.Net

It might help you.

Cheers Andrea.
dharmendr
 
on Nov 27, 2021 05:06 AM

Hi anirudhp,

Unfortunately, the HTML tags not supported within Crystal Reports.

anirudhp
 
on Nov 27, 2021 05:13 AM
dharmendr says:

Hi anirudhp,

Unfortunately, the HTML tags not supported within Crystal Reports.

 Then How we create a table in crystal report

arjunv
 
on Nov 27, 2021 05:18 AM

Hi Anirudhp,

You can use tr only for paragraph break. It does not preserve column structure of a table.

Refer below for supported HTML tags.

HTML Text Interpretation formatting option supports basic HTML tags for text formatting only.

  • Below is the list of supported HTML tags:  
       
      • html
      • body
      • div (causes a paragraph break)
      • tr (causes only a paragraph break; does not preserve column structure of a table)
      • span
      • font
      • p (causes a paragraph break)
      • br (causes a paragraph break)
      • h1 (causes a paragraph break, makes the font bold & twice default size)
      • h2 (causes a paragraph break, makes the font bold & 1.5 times default size)
      • h3 (causes a paragraph break, makes the font bold & 9/8 default size)
      • h4 (causes a paragraph break, makes the font bold)
      • h5 (causes a paragraph break, makes the font bold & 5/6 default size)
      • h6 (causes a paragraph break, makes the font bold & 5/8 default size)
      • center
      • big (increases font size by 2 points)
      • small (decreases font size by 2 points if it's 8 points or larger)
      • b
      • i
      • s
      • strike
      • u
           
    • The supported HTML attributes are:
      • align
      • face
      • size
      • color
      • font-family
      • font-size
      • font-style
      • font-weight 
            
  • In Crystal Reports 2008 Service Pack 2 and above, the following additional HTML tags and attributes have been added to the supported list:
        
    • The supported HTML tags are:
      • ul  ( bulleted list )  Important Note: The bullet will not show up as a regular size bullet, but as a small dot. 
      • ol  ( ordered list )
      • li   ( tag defining a list item used for both list type: ul and ol. )   
              Important Note: It only support simple list, with no combinaison with other HTML tags within the list.
           
    • The supported HTML attribute is:
      • strong ( bold )
             
  • In Crystal Reports 2008 Service Pack 3 and above, the following additional HTML tags and attributes have been added to the supported list:
      
    • The supported HTML tag is a (hyperlink)
          
    • The only supported attribute for the hyperlink tag is href.
    • Important Note: All other attributes for the hyperlink tag <a> are not supported.
        • Example: The attribute: target='_new', to open the hyperlink in a new window is not supported.

Reference : https://userapps.support.sap.com/sap/support/knowledge/en/1217084