S
Sharon
Hi all.
My goal is to convert html elements to bitmap.
So the first step would be to parse the html.
System.Windows.Forms.WebBrowser even has a method called DrawToBitmap,
which makes the whole thing much easier.
The problem is that WebBrowser cannot be used in a dll.
I can understand why WebBrowser is in System.Windows.Forms namespace,
but i don't understand how classes like HtmlElement belong to
System.Windows.Forms.
So my questions are:
1. is there a way to use WebBrowser in a console application or dll?
2. why is there no separation between the visual control and the parser?
Thanks.
Sharon.
My goal is to convert html elements to bitmap.
So the first step would be to parse the html.
System.Windows.Forms.WebBrowser even has a method called DrawToBitmap,
which makes the whole thing much easier.
The problem is that WebBrowser cannot be used in a dll.
I can understand why WebBrowser is in System.Windows.Forms namespace,
but i don't understand how classes like HtmlElement belong to
System.Windows.Forms.
So my questions are:
1. is there a way to use WebBrowser in a console application or dll?
2. why is there no separation between the visual control and the parser?
Thanks.
Sharon.