Chris Anderson wrote:
> I found this post on another forum and had the same question. It does
> not appear that he received an answer.
>
> http://forums.asp.net/p/1167105/1944057.aspx#1944057
Why did you post the question on that forum?
I doubt it if any iText developer follows what's happening there;
so it's not surprising that you didn't get any answer.
A second reason why it's hard to answer your question is because
of sentences like:
> here i will
> have a gridview which is not databound, not have any column at design
> timeon page load only i will create a datatable based on some data and
> bind it to gridview.
It's English, Jim (or Chris, or whatever name you prefer),
but not as we know it.
I don't understand it, maybe it's because I don't know C# lingo;
but you're also using to many words in your question.
> after this i need to do formatting of some specific rows in the
> girdview. this formatting will use pre tag with some attributes like
> font-family, size, style. so while displaying the gridview after page
> load some rows of gridview will have specific formatting tags in it's
> cell's text.
Again: I have no idea what you are talking about.
> on click of a button i need to create a pdf file using itextsharp. i am
> able to create pdf only problem is all formatting tags are appearing in
> file, they are not being replaced with thier html meaning.
Aha, so you are saying that you feed iText with stuff
like "This is a sentence with words in <b>bold</b> and <i>italic</i>"
and that's exactly how iText visualizes that String.
Why is that surprising to you? Isn't that what everybody
would expect to happen?
> |Phrase phrase = new Phrase(row[columnName].ToString(),
> FontFactory.GetFont("Arial", 8));|
Is row[columnName] a sentence as desribed above?
If so, you should use HTMLWorker to translate the HTML snippet
to iText objects. Google for HTMLWorker and you'll find some
examples.
Please be more concise and specific if you have any further questions.
br,
Bruno
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar