Home All Groups Group Topic Archive Search About

Html Rendering in Winforms

Author
20 Jun 2006 10:55 AM
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

Author
20 Jun 2006 1:43 PM
Steve B.
Consider using IE ActiveX. Creating a HTML renderer is quite complex and do
not believe you will be able to create a custom browser without a very huge
amount of works.
I think relying on the WebBrowser control is a good choice for the future
(if your app will remain in a windows environment) since MS will support
this class for many years ahead.
So I wonder what is your need for developping a custom html renderer ...

Steve

"ramesh" <ramesh.a***@gmail.com> a écrit dans le message de news:
1150800904.182101.119***@u72g2000cwu.googlegroups.com...
Show quote
> 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
>
Author
20 Jun 2006 3:40 PM
ramesh
The reason I don't want to include web browser 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


Steve B. wrote:
Show quote
> Consider using IE ActiveX. Creating a HTML renderer is quite complex and do
> not believe you will be able to create a custom browser without a very huge
> amount of works.
> I think relying on the WebBrowser control is a good choice for the future
> (if your app will remain in a windows environment) since MS will support
> this class for many years ahead.
> So I wonder what is your need for developping a custom html renderer ...
>
> Steve
>
> "ramesh" <ramesh.a***@gmail.com> a écrit dans le message de news:
> 1150800904.182101.119***@u72g2000cwu.googlegroups.com...
> > 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
> >

AddThis Social Bookmark Button