Looking for work? Check out our jobs area.
Theme Graphic
Theme Graphic

TX Text Control

News and interesting articles about the word processing component TX Text Control.

Subscribe

Author

Archive

Tags

Posted on Tuesday, October 21, 2008 at 1:52 AM

WYSIWYG editing in Mozilla Firefox with TX Text Control .NET Server

To integrate a true WYSIWYG document editing into a web application, a client-side control is necessary. 'Rich Text Controls' for ASP.NET were often advertised as WYSIWYG. These plain server-side solutions creating pure HTML and Javascript are simply not powerful enough to render in a true WYSIWYG manner.

TX Text Control .NET Server comes with the BrowserTextControl class. This is a pure .NET assembly that can be integrated into a Windows Forms user control, copied into a folder on server-side and downloaded to the client machine. It is saved automatically in a special download cache folder of Microsoft .NET (the download cache). Based on the code access security of .NET, these assemblies can be embedded and executed in an HTML page of an ASP.NET web application project.

Additionally, it is possible to integrate the BrowserTextControl into a WPF browser application that is deployed as an XBAP application.

These XAML browser applications (XBAP) are using a technique to deploy a WPF application using ClickOnce to client-side.

As of the release of .NET Framework 3.0, XBAPs only run in Internet Explorer. With the new release of .NET Framework 3.5 SP1, they also run in Mozilla Firefox due to a new XBAP extension for Firefox.

To create such an XBAP application, you will need Visual Studio 2008 to create a new WPF browser application project. Additionally, a Windows Forms User Control project must be created like described in our BrowserTextControl documentation.

A Windows Forms Host Control will be placed into a Page of the WPF application. In the constructor of the Page, we can create a new instance of the Windows Forms User Control and attach the user control using the Child property of the hosting interop control:

public Page1() { InitializeComponent(); TX = new WindowsFormsControlLibrary1.UserControl1(); windowsFormsHost1.Child = TX; }

This sample implements a method to load documents into the TX Text Control. Feel free to contact me, if you have any questions or suggestions about this. I look forward to hearing from you.

Download the sample here
Bookmark: Submit To Digg Submit To reddit Submit To del.icio.us Bookmark With StumbleUpon Bookmark With FaceBook Bookmark With Google Bookmarks   Share: Share By Email By Email

0 comments on "WYSIWYG editing in Mozilla Firefox with TX Text Control .NET Server"
No comments posted yet.

Leave A Comment
Subject:


Comment:
   Bold Italic Underline          Code Link Image Horizontal Rule


Because you do not have or are not logged in to your Programmer's Heaven account, please enter your name.

Name:


To help prevent comment SPAM, please enter the magic code '525' in the box:




Posting Rules
Please follow these rules when posting comments on blog posts.
  • Do not post anything that is racist, hate speech or of a sexual or adult nature.
  • Do not post or link to anything that infringes copyrighted laws.
  • Posting about security or legal topics is fine so long as you are not glorifying or encouraging people to perform illegal activities.
  • Both the author of this blog and the Programmer's Heaven administrators may delete any inappropriate comments without notice at their own discretion.
 
Popular resources and forums for programmers on Programmersheaven.com
Assembly, Basic, C, C#, C++, Delphi, Java, JavaScript, Pascal, Perl, PHP, Python, Ruby, Visual Basic
© Copyright 2009 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Publisher: Lars Hagelin. Read the latest words from the publisher here.
Be the first to sign up for Lars Hagelin’s In-depth Outsourcing Newsletter here.
bootstrapLabs Logo A bootstrapLabs project.