Html Rendering in Winforms

R

ramesh

Hi all,

I am facing a problem with the rendering of html into a windows
application (C# .NET). I am trying with two possible approaches:

1. Use a control that directly renders the html into windows form, but
it should not be dependent on IE or mshtml. I didn't get such kind of
control so far. Can any one help on this?

2. Use a third party Html to Rtf converter and render the rtf in
windows .net RichTextBox. But this also creating problem while
rendering html tables. This is distorting the table structure and
complex formatting into table cell. Colspan and rowspan are not working
and many more... Again this problem is solved after we put RICHED20.DLL
in the application directory. But we can ship RICHED20.DLL along with
our product as its a microsoft dll comes with MS office package. What
could be possible solution for this?

Can any one please help me out to resolve this problem.

- Ramesh
 
A

Andy

Why should you not depend on the mshtml control?

You're already tied into MS; its a winforms application and your
solution two depends on MS office (I don't believe you'd be allowed to
redistribute riched20.dll).

You could try to use mozilla's renderer, but I'm not sure how hard it
would be to incorporate, i'm sure it'd be easier just to use IE.

Andy
 
R

ramesh

Hi Andy,

Thanx for your interest. I really appreciate for your reply. The reason
I don't want to include mshtml is related with performance issue. I had
already tried web browser control but its really slow to render as it
is not meant only for rendering html but url navigation, javascript and
lots of more thing. In our application we typically need 4-10 such
control on a single form to render diiferent html.

- Ramesh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top