473,382 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Html Rendering in Winforms

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

Jun 20 '06 #1
3 10075
Ramesh,

I am curious, why do you not want it to be dependent on IE or MSHTML?
It's guaranteed to be on the machines that the framework is on.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"ramesh" <ra*********@gmail.com> wrote in message
news:11*********************@g10g2000cwb.googlegro ups.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

Jun 20 '06 #2
ramesh wrote:
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


Hi Ramesh,

You'll be hard-pushed to find a *free* control to render HTML. Rendering
HTML is a non-trivial operation, if you think about it. There needs to be
an SGML parser, a document tree, the actual rendering routines... and
that's not even thinking about things like CSS, JavaScript and other
exciting bits and bobs.

However, citing from Wikipedia: "Gecko is the open source web browser layout
engine used in all Mozilla-branded software and its derivatives". Since
you're coding in C#, you'll need to take a look at GeckoSharp, from the
Mono project: http://mono-project.com/GeckoSharp. I'm not sure if it's
what you want, or you can even get it to do what you want... but GPL rules
apply.

Hope this helps,
-- Tom Spink
Jun 20 '06 #3
Tom Spink wrote:
You'll be hard-pushed to find a *free* control to render HTML. Rendering
HTML is a non-trivial operation, if you think about it. There needs to be
an SGML parser, a document tree, the actual rendering routines... and
that's not even thinking about things like CSS, JavaScript and other
exciting bits and bobs.


Well, I've wrapped HTMLayout
(http://www.terrainformatica.com/htmlayout/) at
http://earthsideterminal.com/htmlayout.net.

It supports CSS, but not JS at the moment. The author of HTMLayout does
have a version that has JS in it, but it doesn't have a full DOM. Just
depends on what you need, is all.

--
Joel Lucsy
"The dinosaurs became extinct because they didn't have a space program."
-- Larry Niven
Jun 20 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

71
by: tomy_baseo | last post by:
I'm new to HTML and want to learn the basics by learning to code by hand (with the assistance of an HTML editor to eliminate repetitive tasks). Can anyone recommend a good, basic HTML editor that's...
81
by: sinister | last post by:
I wanted to spiff up my overly spartan homepage, and started using some CSS templates I found on a couple of weblogs. It looks fine in my browser (IE 6.0), but it doesn't print right. I tested...
3
by: Amit Chandel | last post by:
Is it safe to say that winforms coupled with soap/xml will be the future trend of the internet browsing experience down the line? In essence, corp web sites shift from HTML based browsers -->...
3
by: Pablo | last post by:
Folks, i need to send to the printer, an html document. How can i do this from winfroms?? thanks Pablo
5
by: John | last post by:
I have an application that scans files and it takes a while to finish. While my application is running if I open other applications, my main application GUI becomes grey....does not refresh or...
5
by: Rick Spiewak | last post by:
I need to generate a "buy" button as part of an ASP.NET page - this consists of a small HTML form with hidden fields, conforming to the requirements of a merchant credit card processor. PayPal is...
0
by: Joergen Bech | last post by:
Trying to implement my own webforms designer to be hosted in a WinForms environment. Basically: I know that mshtml is used in the VS.Net 2003 WebForms designer, but the HTML behind the scenes is...
59
by: phil-news-nospam | last post by:
In followups by Brian O'Connor (ironcorona) to other posts, he repeats the idea that using tables in CSS is not something that should be done because IE doesn't support it. Of course I'm not happy...
4
by: ramesh | last post by:
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.