Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Helllooo All,
 
First of all Happy new year to all.
 
My Question is that,
I have a problem with Crystal report.
When i render Crystal Report and my one of the field contains HTML string with TD,TR,TABLE html tag.
Due to this my result not getting proper formatting means crystal reports not support html td,tr,table tags any more.
 
tell me solution for above.
help me for the above.
 
thanks in advance.
Posted 1-Jan-13 23:08pm
Edited 1-Jan-13 23:09pm
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

crystal report does not support table,tr,td tags
tr (causes only a paragraph break; does not preserve column structure of a table)
 
you can see details for supported tags with description. in this link...
http://stackoverflow.com/questions/12791321/what-html-tags-are-supported-in-crystal-reports-2008[^]
 
Happy coding!
Smile | :)
  Permalink  
Comments
prashant patil 4987 at 2-Jan-13 4:44am
   
hello Aarti.
can you please tell me another way to do this.??
Aarti Meswania at 2-Jan-13 4:52am
   
it's not supported by crystal report
 
so, I think you should make a sql-table from HTML and then
use crosstab report to display it in a table form
 
for convert html table to sql table
visit
http://www.simple-talk.com/sql/learn-sql-server/how-to-import-data-from-html-pages/
see.. "Using a datatable" - second topic. you will get some hints
Aarti Meswania at 2-Jan-13 8:05am
   
visit for converting HTML to Sql table
http://www.codeproject.com/Tips/520119/HTML-Table-to-SQL-table-conversion
 
prashant patil 4987 at 2-Jan-13 22:20pm
   
thanks for replying aarti.. but i want in crystal report only.
can you get some link of Html to PDF conversion..??
Aarti Meswania at 2-Jan-13 23:41pm
   
Welcome! :)
Glad to help you! :)
 
here it is...same topic for html->pdf
http://www.codeproject.com/Questions/192046/how-i-can-convert-html-to-pdf-by-net-code
 
In crystal report it's not possible to set html-table format
In my suggested sql you can create subreport or crosstab, as per my knowledge it will be easiest way :)
 
hope it help you!
prashant patil 4987 at 2-Jan-13 23:46pm
   
thanks aarti you are owesome,,,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 345
1 OriginalGriff 210
2 DamithSL 210
3 Kornfeld Eliyahu Peter 210
4 Peter Leow 95
0 OriginalGriff 7,215
1 DamithSL 5,199
2 Maciej Los 4,866
3 Sergey Alexandrovich Kryukov 4,757
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 2 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100