|
Hi,
Thank you for this editor,
How we can change font?
Rgerds
|
|
|
|
|
Very Helpfull. Thanks for sharing
|
|
|
|
|
Thanks for this control, it's great. How can I change Font type?
|
|
|
|
|
I've referenced the ZetaHtmlEditControl in a Visual Studio 2010 VB Class Library project and added the control via the Toolbox to a Windows Form. However, when I debug my assembly and load the form I get this error:
"Could not load file or assembly 'ZetaHtmlEditControl, Version=1.1.03, Culture=neutral, PublicKeyToken=2e2e5ba5da72b6c0' or one of its dependencies. The system cannot find the file specified." However, the ZetaHtmlEditControl.dll (and HttpServer.dll and SgmlReaderDll.dll) are clearly present in the Debug directory.
Note that this Class library is actually hosted by a commercial application (Colligo Contributor) that allows extending its UI via its SDK. So I debug by launching their .exe which then detects and loads my registered custom assembly into their AppDomain or whatever. Perhaps this architecture is complicating things.
Regardless, any ideas?
|
|
|
|
|
Most likely there are som CRTs or other "system" DLLs missing.
I'll recommend the following:
1.) Download and install our tool "Zeta Test" from http://www.zeta-test.com[^]
2.) Look in the installation folder "C:\Program Files (x86)\Zeta Test\Applications" (default)
3.) Copy all Microsoft DLLs to your solution, namely: msvc*.dll , stdole.dll , microsoft.mshtml.dll , Microsoft*.manifest and maybe others, too.
Wollen Sie ganz einfach Ihre eigene Homepage erstellen, ohne HTML-Kenntnisse, einfach, professionell und mit viel Freude? Probieren Sie unser Desktop Content Management System (CMS) Zeta Producer für Windows aus. Komplett mit eigenem Shop, Gästebuch, Weblog, Bildergalerien, Integration von YouTube-Videos. Wir haben eine aktive Anwender-Community, schnellen Support, sympathische Support-Mitarbeiter.
|
|
|
|
|
Hello Uwe,
first thanks for this great control.
1. The httpserver.dll is from telecom AB. Is this file also under the same license?
Did not fully understand the code. Do i need the httpserver.dll if i only want to use it as html editor?
thanks
Martin
|
|
|
|
|
Hi Martin
Regarding 1.) Please see webserver.codeplex.com [^] for the original article of the web server.
Regarding 2.) The whole purpose of the article is to provide an HTML editor. If you do need an HTML viewer, simply use the built-in class [^] of Windows Forms.
Wollen Sie ganz einfach Ihre eigene Homepage erstellen, ohne HTML-Kenntnisse, einfach, professionell und mit viel Freude? Probieren Sie unser Desktop Content Management System (CMS) Zeta Producer für Windows aus. Komplett mit eigenem Shop, Gästebuch, Weblog, Bildergalerien, Integration von YouTube-Videos. Wir haben eine aktive Anwender-Community, schnellen Support, sympathische Support-Mitarbeiter.
|
|
|
|
|
Thanks for the great control, although I have some questions.
1.) According to your article you have ExtendedWebBrowserControl.GetDocumentText method.
Where is this method? I don't see it on an instance of the Extended WebbrowserControl I added to my form.
2.) I instead am using HtmlEditUserControl as it seems to have more functionality, why do you have 3 different controls? It is confusing.
3.) When I paste an image, I get an 'unexpected path' error. How do I go about resolving this?
Thanks
|
|
|
|
|
Hi Greg
Thanks for your feedback!
Regarding 1.): You should call HtmlEditControl.GetDocumentText() as outlined in the TestForm.cs example. I'll update the article.
Regarding 2.): There is HtmlEditControl , the control that you should use when no local toolbar is required. I recently added HtmlEditUserControl which has an optional local toolbar control. So if you are unsure, always use HtmlEditUserControl and activate/deaktivate the local toolbar just as you need.
Regarding 3.): Could you send me the call stack of the exception? (or post it here)?
Cheers
Uwe
|
|
|
|
|
Hi Uwe,
Here is a screenshot of the error in Visual Studio 2010.
I get this when pasting an image.
http://www.meltdown.co.za/images/error.jpg
Thanks
|
|
|
|
|
I've tried a lot of things, including your example project, but without any success
Could you please tell me in detail where you copied your image from before you pasted it?
Wollten Sie schon immer ganz einfach Ihre eigene Homepage erstellen, ohne HTML-Kenntnisse, einfach, professionell und mit viel Freude? Probieren Sie unser Desktop Content Management System (CMS) Zeta Producer für Windows aus. Komplett mit eigenem Shop, Gästebuch, Weblog, Bildergalerien, Integration von YouTube-Videos. Wir haben eine aktive Anwender-Community, blitzschnellen Support und sympathische Support-Mitarbeiter.
|
|
|
|
|
I have also uploaded the simple test project using your control
http://wwww.meltdown.co.za/images/zetatest.rar
Thanks
|
|
|
|
|
This is great! thanks a lot
One question, how to insert an image? After I pasted an image (copy and paste) to the control, an error comes up when clicking on" Get HTML" button: "Access to the path 'c:\141eb6b6-a4b0-49e9-adee-27f241329d8e' is denied."
|
|
|
|
|
|
Thank you very much, Sam!
|
|
|
|
|
Excellent!
Thanks for sharing.
|
|
|
|
|
Thanks a lot, Filip
|
|
|
|
|
Cool control like this wrapper I do. 5 from me
Sacha Barber
- Microsoft Visual C# MVP 2008-2011
- Codeproject MVP 2008-2011
Your best friend is you.
I'm my best friend too. We share the same views, and hardly ever argue
My Blog : sachabarber.net
|
|
|
|
|
|
Although an internal webserver would probably help with viewing MHT files (which IE doesnt let you view by setting the document text), it seems a bit overkill.
I haven't looked at your control yet, i currently use the Microsoft Consulting Services HTMLEditorControl, it still works for editing HTML on Windows 7, .Net 2, IE9 RC
If you want to have a look at why it still works and you cant find it online (its hard to find, i had a quick look and couldn't find it), i can send you the source code. It does use the mshtml reference (a pain of a 7meg file to bundle with the app) if that is a clue.
|
|
|
|
|
Thanks, Tim
I agree, that is looks like an overkill, although in real life, this web server is rather stupid and just is a background thread that listens to some sockets. No ASP.NET or whatsoever server side scripting.
If you can send me some files, it would be great! comuwe.keim@gmail.com
|
|
|
|
|
Hoozaw and hooray!
Nice work.
|
|
|
|
|
Thanks, Sam!
Can you confirm that it works with IE9 RC installed?
|
|
|
|
|
Uwe, downloaded your updated code, compiled and ran it (Net4.0 and VS2010) and it works fine with IE9 RC
Can you shed some light on how you fixed it? Inquiring minds like to know...
Never mind, I spotted your update and the added http server in your code.
modified on Monday, February 28, 2011 2:37 PM
|
|
|
|
|
Sorry for the delay, I was out of office.
Yes, the idea is to serve the content through an HTTP server (this one [^], be sure to use V1.1, not V2.0) and not through directly setting the DocumentText property.
I figured out that this seems to be the only way I managed to set the text and turn on design mode without having the content getting cleared.
|
|
|
|
|