 |
|
|
 |
|
 |
I've been looking to the longer period. What I still miss is the HTML validation. I did have a written Extends Methods that done. Otherwise is still much room for expansion. Around but a good thing. Congratulations and thank you.
Best regards
Rene
http://weblog.drescher-hackel.de
|
|
|
|
 |
|
 |
Is there a way to just use <br /> when the user presses the return button, instead of <p> & </p>? Thanks!
|
|
|
|
 |
|
 |
... long time ago... but
Use Shift+ENTER
|
|
|
|
 |
|
 |
Hello,
Can I insert tables? If yes, how can I do it?
----------------------------------------------
When the sorrow takes me
I'm embracing the darkness alone
Please - take me home
[Embraced By Darkness - Saturnus]
|
|
|
|
 |
|
 |
for a list of what you can and cant do go to this link:
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.WEBDEV.v10.en/dhtml/workshop/author/dhtml/reference/commandids.htm
in local vs2005 documentation. The MSDN one is a broken link so i had to find it in local help.
|
|
|
|
 |
|
 |
I copied an image from MSWord but it doesn't show. It just display an empty box. Any idea how can I fix this
Thanks
|
|
|
|
 |
|
 |
I copied an image from MSWord but it doesn't show. It just display an empty box. Any idea how can I fix this
Thanks
|
|
|
|
 |
|
|
 |
|
 |
Hi!, this article is great but i have a big problem, when you reference shdocvw.dll it gets referenced to the version you have on the development machine.
On my machine i have XP with SP2 (shdocvw.dll v7.xx.xx)
and i recently installed the aplication on a windows XP without SP2 (shdocvw.dll v6.xx.xx) and when i open the form that has the editor it gives and error and asks for the version 7.xx of shdocvw.dll.
Is there a way to use the version that is available on the machine i make deploy to instead of looking for that specific version?
|
|
|
|
 |
|
 |
How can i insert a text ( tag) in a given position?
|
|
|
|
 |
|
 |
I know it's been some years but I think this should work:
mshtml.HTMLDocumentClass doc = (mshtml.HTMLDocumentClass)this.axWebBrowser1.Document;
string html = "<body>" + doc.IHTMLDocument2_body.innerHTML + "</body>";
doc.IHTMLDocument2_body.innerHTML = html;
|
|
|
|
 |
|
 |
hey i want to develop an html editor in other language then english.can anybody help me how to do this?
|
|
|
|
 |
|
 |
Hello,
I would like to create a editor that allows you to introduce text with form (black,...) and later use the text for generating a new Document.
How can i create this component? i use WindowsForms fro my GUI application.
|
|
|
|
 |
|
 |
Hi,
first thank you for your application.
unfortunatly, it removes all tags before & after <body> tag in the html code...
do u have any solution to get rid of my problem ?
thank you !
Kevin
|
|
|
|
 |
|
 |
oh sorry i have the solution, if someone is interested with...
u just have to replace :
string str = "<body>" + doc.IHTMLDocument2_body.innerHTML + "</body>";
with
string str = doc.documentElement.outerHTML;
c ya
|
|
|
|
 |
|
 |
Hi,
In usual editors (like Word or FrontPage, maybe), when the cursor is moved to a piece of text that is bold or underlined, you'd have the corresponding toolbar items checked.
I was wondering how to implement this functionality in this particular editor. I know about the queryCommandState() or Value() or Text() functions, but when do I use it? I can't seem to get events like onselectionchange working properly.
Has anybody tried this before?
Thanks.
|
|
|
|
 |
|
|
 |
|
 |
hello
please explain how to
The Microsoft Web Control found in: c:\windows\system32\shdocvw.dll (add as a COM control).
MSHTML: c:\windows\system32\MSHTML.tlb (add as a COM reference).
espesially about msgtml
because i didn`t get it
|
|
|
|
 |
|
 |
Hi,
when i compile the code i get the InvalidCastException error relating to the doc = (MSHTML.HTMLDocumentClass)this.axWebBrowser1.Document; line of your code...
any idea what would cause this problem and how to fix it?
this control looks great and could really help me out if i can get it to work...
thanks,
Pasquale
|
|
|
|
 |
|
 |
There is a bug that sometimes happnes. The HTML page is not loaded yet, when the form tries to cast the HTMLDocumentClass (while it's still empty). The reaso is that the Borwser Control opens the page in a seperate thread. Change the form_Load of the form to this:
private void Form1_Load(object sender, System.EventArgs e)
{
object path = Directory.GetCurrentDirectory() + "\\test.htm";
object missing = System.Reflection.Missing.Value;
this.axWebBrowser1.Navigate2(ref path, ref missing, ref missing, ref missing, ref missing);
int start = Environment.TickCount;
while ((axWebBrowser1.ReadyState == SHDocVw.tagREADYSTATE.READYSTATE_LOADING) && (start > Environment.TickCount-5000))
{
System.Windows.Forms.Application.DoEvents();
}
mshtml.HTMLDocumentClass doc;
doc = (mshtml.HTMLDocumentClass)this.axWebBrowser1.Document;
doc.designMode = "On"; // This turns the control into an editor
}
|
|
|
|
 |
|
 |
I tried your suggestion, the build succeeded, but when it started to run the application in debug mode, it gave me the same error about the InvalidCastException was unhandled.
it gives this information regarding the error:
"Unable to cast COM object of type 'System.__ComObject' to class type 'MSHTML.HTMLDocumentClass'. COM components that enter the CLR and do not support IProvideClassInfo or that do not have any interop assembly registered will be wrapped in the __ComObject type. Instances of this type cannot be cast to any other class; however they can be cast to interfaces as long as the underlying COM component supports QueryInterface calls for the IID of the interface."
thanks for all the help. i hope this information helps
Pasquale
|
|
|
|
 |
|
 |
What Windows version are you using, and what IE is installed? seems like the document is not an HTMLDocumentClass object and I really don't know why.
|
|
|
|
 |
|
 |
Windows XP SP2, IE6 SP2 with all the latest security updates...
also .net 2.0 framework. hope this helps..
thanks again.
|
|
|
|
 |
|
 |
I figured it out...
if you replace all the MSHTML.HTMLDocumentClass with MSHTML.HTMLDocument it will compile and work fine.
i guess it was a code change between .net 1.1 and 2.0 or something...
not sure on the theory, just now it worked for me.
Thanks for the help.
Pasquale
|
|
|
|
 |