rtf

Convert RTF Stream to Plain Text Stream

I have crystal report and I need to convert it to text file. Currently I can only convert it to RTF Stream. Now I need to convert the RTF Stream to Text Stream. I am using C#. Thanks. ...

How do I generate RTF from Java?

Hi, I work on a web-based tool where we offer customized prints. Currently we build an XML structure with Java, feed it to the XMLmind XSL-FO Converter along with customized XSL-FO, which then produces an RTF document. This works fine on simple layouts, but there's some problem areas where I'd like greater control, or where I can't do...

Howto activate javascript-tag fetched from iframe?

I have a Rich Text Editor in Javascript in which I want to be able to enter an embedded widget in a Javascript tag. I.e: <script src="http://www.mydomain.com/script.aspx?id=123" type="text/javascript"></script> Still using JS I move the html-content from the iframe into a DIV in the page: <script> function copyRtfToDiv() { ...

Convert Rtf to HTML

Are there any libraries around that can convert Rtf to HTML. We have a crystal report that we need to send out as an e-mail, but the HTML generated from the crystal report is pretty much just plain ugly and causes issues with some e-mail clients. I wanted to export it as rich text and convert that to HTML if it's possible. Any suggest...

Using MarkDown on dynamic websites?

Do any WYSIWYG editors exist that work natively in Markdown? (any Platform/Language) ...So consumers don't have to see the code behind, just work in an MS-Word like interface. An assisted MarkDown editor where you're viewing and editing the Markdown-source (like the one I'm writing this question with) would also be okay. ...

Two encodings used in RTF string won't display correct in RichTextBox?

I am trying to parse some RTF, that i get back from the server. For most text i get back this works fine (and using a RichTextBox control will do the job), however some of the RTF seems to contain an additional "encoding" and some of the characters get corrupted. The original string is as follows (and contains some of the characters u...

Outlook HTML Mail - changing linked items to embedded

I'm attempting to send HTML formatted emails using C# 3 via Outlook.MailItem Outlook.MailItem objMail = (Outlook.MailItem)olkApp.CreateItem(Outlook.OlItemType.olMailItem); objMail.To = to; objMail.Subject = subject; objMail.HTMLBody = htmlBody; The email is generated externally by saving from an RTF control (TX Text Control), which yi...

Broken tables in RichTextBox control (word wrap)

We are having problems with the Windows.Forms.RichTextBox control in Visual Studio 2008. We are trying to display text supplied as an RTF file by a 3rd party in a windows forms application (.NET 3.5). In this RTF text file there are tables, which contain text that spans multiple lines. The RTF file displays correctly when opened with e...

What is the best solution for converting RichTextFormat info to HTML in C#?

What is the best solution for converting RichTextFormat info to HTML in C#? I know there are libraries out there that do this, and I was curious to see if you guys had any advice as to which ones are the better ones. Thanks, Jeff ...

Easiest way to format rtf/unicode/utf-8 in a RichTextBox?

I'm currently beating my head against a wall trying to figure this out. But long story short, I'd like to convert a string between 2 UTF-8 '\u0002' to bold formating. This is for an IRC client that I'm working on so I've been running into these quite a bit. I've treid regex and found that matching on the rtf as ((\'02) works to catch it,...

Is there a good "RichString" class out there?

I'm looking for a class/API that allows you to create and manipulate RichText strings (rtf format) for use with the RichTextbox -like controls. I'm thinking of something like StringBuilder, but that also allows you to specify formatting as you append to it and also go back and edit previously appended segments, as well as doing string...

RTF editor

Hi, I have a templates written in RTF(with some tags which are replaced by data from DB in app), but when I edit them in MS Word, Word put some invisible tags to the templates, which destruct my tags(I must open template in Notepad and edit code). Do you know some editor for RTF, which strict follows RTF specification? Thanks ...

.NET StreamReader Won't Close

I'm using a RTF file as a template for an ASP.NET web application. My VB.NET code reads the file using a StreamReader, replaces some strings, and creates a new Word document with data from the database. My code closes and disposes of the StreamReader. However, when I attempt to upload a revised RTF file to the web server I get an error, ...

Can a Crystal Report be edited in a .Net Windows interface?

Please could you provide some guidance for me? I am currently evaluating Crystal Reports 2008 for use within a major enterprise project. I have successfully used Crystal Reports Basic within Visual Studio, but we want a bit more functionality this time. Reports will be produced based on ADO.NET Xml datasets and will be saved to a SQL S...

How can I insert an image into a RichTextBox?

Most of the examples I see say to put it on the clipboard and use paste, but that doesn't seem to be very good because it overwrites the clipboard. I did see one method that manually put the image into the RTF using a pinvoke to convert the image to a wmf. Is this the best way? Is there any more straightforward thing I can do? ...

XSLT: sum of tree fragment will always return 0 !

Hello everyone, I am stuck with a problem which seems stupid but I cannot find out the solution... With XLST, I need to sum a list of values calculated by a template. So I stored these values in a tree structure (a list of "Number" elements contained in a root element "Numbers"). But whatever I try to do with this self-made list, it wil...

How can I convert formatted text on a webpage and in the database to RTF or doc.

I have some formatted data that needs to be saved from the web page as a word document or rtf, something ubiquitous so I am thinking RTF. What is the easiest way to save something from .net as rtf? Are there built in tools for this or some plugins? ...

how can i show doc or rtf or pdf in flash player or in none editble format

Hello i need to show in my web application document that is in pdf or rtf format in some kind of none edible format that can't be changed and cant be downloaded the perfect candidate is the flash player , but i know the tool that converting pdf or rdf to swf is not free. im looking for free solutions , does not have to be flash . ...

Is there a free way to convert RTF to PDF?

How can I programmatically convert RTF documents to PDF? ...

Get plain text from an RTF text

Hello I have on my database a column that holds text in RTF format. How can I get only the plain text of it, using C#? Thanks :D ...