I have what I think it is a very popular problem. I have a legacy app that contains rtf fields. rtf in my case is used only for very basic features (font: size, style, color, ... hyperlinks). Anyway since I allow to paste from word sometimes some more complex things can go in there.
Now rtf is ok, even because with Report Builder I can get reports where rtf is printed.
The problem comes with web application. I am developing a web application that is basically an optional interface for my legacy application.
At this stage I solved the probelm by removing the rtf formatting (I use the TRichEdit trick discussed here).
Anyway ideally I would like to be able to see and edit formatted text in both the web application and the win32 application.
What can be the solution?
In this question I found a link to the ScroogeHTML converter.
But even if I convert there are these points that i cannot reconcile:
Storage: what to store? Currently of course I store rtf.
Should I convert rtf to html every time I show the rich text in web app and then convert it back to rtf for storage?
Your could implement a RTF editor in your web application.
http://en.wikipedia.org/wiki/Online_rich-text_editor
This way you don't have to change the storage format.
Related
XAML uses XML-like formatting.
Is there editor that will allow user to write and read XAML code in JSON-like formatting (or some addon to VS)
It can be saved and read to XML - but during editing it would be nice to see it more eye friendly.
If you want XAML to look like JSON, then probably not. XAML is just XML.
There are couple of plugins which can reformat XAML according to rules you set, including ReSharper. But they don't display it as a different format.
You can also use the visual designer alone without touching/seeing any code, but from my experience this is not the best idea. I get the best results if I code the XAML by hand and use the visual designer only to visualize the result without running the application.
Creating such plugin would take a huge amount of time and you would have a lot of problems to solve. The problems would probably outweigh the benefits.
Due to a new web site and CMS system, I'm dealing with multiple users making content changes to our site. Many of them are trying to copy and paste content from MS Word and other Office products which, as any web developer knows, is a nightmare.
What I'm looking for is a simple offline Word Processor or WYSIWYG editor that I can ask people to use instead of Word in cases where they aren't going to be composing their changes directly on our site.
Basic requirements:
It should be simple to use. I do not need any advanced features. Basically just a word processor that generates valid HTML.
Freeware or open source would be nice
It would be a bonus if it also had a "paste-from-Word" feature
I am not looking for a MS Office replacement as that will never get approved. I need a supplemental editor for our web content editors.
Our environment is mostly Windows Vista/7, though we do have a small base of Mac users as well.
Based on my searches, the most frequent answer I see is NVU, but quite honestly that is too complex for my users since I don't need a whole site editor, file manager, or web publishing software - just the ability to create/edit simple HTML documents.
Yes, I know this technically isn't a programming question, but I'm sure it is relevant to a lot of programmers and web developers.
You can open a WYSIWYG from a local html file. If you don't want to do this through the normal browser, you can do it through an embedded web browser in your application. Check Qt, its a framework that can show web pages (local ones too) using WebKit.
I'm currently writing a simple cross-platform application (using RealStudio). I need a cross-platform desktop solution for the conversion of HTML (but preferably HTML+CSS) documents to RTF. I have seen several posts including (but not limited to) the following:
HTML+CSS to RTF (in PHP)?
Convert HTML to RTF (HTML2RTF converter)
Convert HTML with scripts to RTF
The most comprehensive solution seems to be to make use of OpenOffice in headless mode in order to perform conversions. The only problems are:
I can't presume upon the presence of OOo and
I can't afford to have the user to install a full OOo package simply to perform this task.
Therefore, my question in this particular regard is: Is there any way to only distribute/install the smaller "conversion" portions of OOo for use in headless mode?
My general question, of course, is: What are the best ways to handle HTML to RTF conversion locally?
You can try and simply use textedit on your mac
I am looking for stand-alone program that have a good easy editor for creating wiki context and then upload to an internal MediaWiki installation.
We have a private MediaWiki. Many users are new to wikis and get confused by the syntax, but want to use it. A little toolbar in the wikipage editor is not good enough. I found MSWord converted here:
http://www.mediawiki.org/wiki/Extension:Word2MediaWikiPlus
But not good enough. I think a nice stand-alone program with the ability to edit tables and such graphically would be really good. Is there anything like that for Windows?
Everything seem to be for Firefox, but we have to use Internet Explorer internally.
You can try OpenOffice, it does a decent job of exporting to Mediawiki format.
From Wikipedia:
OpenOffice 3: Text documents opened in all versions of OpenOffice.org 3 can be exported natively into MediaWiki format, via the File -> Export -> File Format drop down menu. Since OpenOffice.org can open all Microsoft Office files, one can open files created in Microsoft Word and export them to the MediaWiki format.
You could also just use WYSIWYG editor, like FCK. Incidentally, you can also open this in a separate browser window (which, from your question, you might be looking for).
I'm using Aspose.Words to construct a Word Document programmatically (C#) on a server. The dynamically generated documents can be imported by clients via a web interface. Everything is great except I'm unable to generate a TOC. I've already exhausted my options with Aspose. Updating TOC fields is simply not a feature that Aspose currently supports. So... I'm open to any other viable solution even if it involves other third-party components. Automation has been ruled out because the Word Document is constructed on the server-side and Microsoft does not recommend using Automation on servers.
Can anyone suggest a solution? The optimal solution would be simply to be able to programmatically do a TOC Field Update. The solution cannot require installation of Word on the server. Are there any server-side reporting components that support this feature?
If a simple TOC Field Update solution is not available, then the next best thing would probably be the ability to programmatically construct a TOC by inspecting the Word document and extracting page numbers.
All ideas and input are welcome. I need a solution very soon.
Thanks,
Ed
Check this
http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/aspose.words.documentbuilder.inserttableofcontents.html
BUt i can't find a way to generate it automatically without using F9 key in MS Word...