Questions tagged [rtf]

The Rich Text Format (often abbreviated RTF) is a proprietary document file format with published specification developed by Microsoft Corporation since 1987 for Microsoft products and for cross-platform document interchange.

Most word processors are able to read and write some versions of RTF. There are several different revisions of RTF specification and portability of files will depend on what version of RTF is being used. RTF specifications are changed and published with major Microsoft Word/Microsoft Office versions.

It should not be confused with enriched text (mimetype "text/enriched" of RFC 1896) or its predecessor Rich Text (mimetype "text/richtext" of RFC 1341 and 1521); nor with IBM's RFT-DCA (Revisable Format Text-Document Content Architecture) which are completely different specifications.

http://en.wikipedia.org/wiki/Rich_Text_Format

1809 questions
5
votes
1 answer

\cb not working for RTF

I want to highlight some texts in my RichTextBox using RTF. I have alreast used \cb and \cbpat. Both are not working. Can anyone suggest something else for highlighting text in RTF?
5
votes
2 answers

Java RTF Parser

Does anyone know of a robust RTF parser I can use in Java? I need to extract plain text, including international text. It would also be nice to extract embedded images and files. It could also be a C++ or other library that I can easily call, or…
Mary
  • 552
  • 1
  • 8
  • 21
5
votes
1 answer

Display RTF (RichText Format) From Database to Client Side Report (MS ReportViewer)

Is this possible? I have been searching for a way to do this but I can't seem to find it anywhere. I have read somewhere that it isn't supported and then I've also read somewhere else that it is supported as of VS 2010, which is what I am using.…
Shane LeBlanc
  • 2,633
  • 13
  • 42
  • 74
5
votes
3 answers

Doxygen: Empty Detail Description

Context - Doxygen tool on C codes to generated RTF documents. In the documentation of Modules/Groups, we are getting the header "Detailed Description" even if no detail description is provided for some particular module/group. In generated RTF…
5
votes
6 answers

Better Way of Manipulating RichText in C#?

I need to create and copy to the clipboard some RichText with standard "formatting" like bold/italics, indents and the like. The way I'm doing it now seems kind of inelegant... I'm creating a RichTextBox item and applying my formatting through that…
BKimmel
  • 613
  • 8
  • 13
5
votes
2 answers

RichTextBox (.NET Winforms) problem (or alternative)

I have a problem with .Net's RichTextBox control. It seems that it doesn't support table cell formatting, which is funny because most of the time I create tables I want the cell contents to be right-aligned (numbers, currency). If I try to open a…
vgru
  • 49,838
  • 16
  • 120
  • 201
5
votes
1 answer

How to copy RTF text to clipboard for use in excel

Is it possible to copy a rtf string to the clipboard for excel. The formatting should be preserved as much as possible (e.g. text-color). The following .Net code is used to fill the clipboard var dataObject = new…
5
votes
0 answers

Replace text in RTF string - Results aren't kept

Sorry for the lame title, but couldn't think of a better way to say it, and have Bingleing for a few days on this. I have code that reads in an RTF file, which I have put placeholders in to act as merge fields. The code will replace the text, but…
James Johnson
  • 51
  • 1
  • 4
5
votes
2 answers

exception in setting Outlook.MailItem.body as rich text

I have a RichTextBox for the Message Body and I need to create a new mail with the body of rich Text. There is my code how i tried to realize that: MemoryStream ms = new MemoryStream(); MemoEditBody.SaveDocument(ms,…
Edgar
  • 1,120
  • 4
  • 28
  • 53
5
votes
5 answers

converting txt to rtf

I have a bunch of text files that I want to convert to rtf. Just changing the extension in code doesn't work, the underlying file is the same. I need the text to be in rtf format. Anyone know how I can do this? The issue is when I load up a plain…
marseilles84
  • 396
  • 2
  • 7
  • 21
4
votes
2 answers

Outputting unicode text to an RTF file in python

I am trying to output unicode text to an RTF file from a python script. For background, Wikipedia says For a Unicode escape the control word \u is used, followed by a 16-bit signed decimal integer giving the Unicode UTF-16 code unit number. For…
ShankarG
  • 1,105
  • 11
  • 26
4
votes
2 answers

How to generate HTML tags by copy/paste into textarea

When pasting a formatted text copied from MS Word into textarea, it will paste plain text by ignoring all markups. I am looking for a JavaScript (and preferedly jQuery) method to convert some formatting markups to HTML tags. For example, pasting…
Googlebot
  • 15,159
  • 44
  • 133
  • 229
4
votes
6 answers

A sample for jQuery based WYSIWYG Editor demonstrate OOP javascript

Want a WYSIWYG jQuery Editor as an example to illustrate how to use jQuery to built OOP javascript component. P.S. It is so good stackoverflow can use markdown... Would be a heaven if users would love such thing too
William Yeung
  • 10,368
  • 9
  • 36
  • 42
4
votes
3 answers

How to create and save a .rtf, .doc, .docx in Objective-C for iOS

I am looking to create and save either a rtf, doc or docx file on an iPad (iOS). The scenario is that we'd like to assist a user in creating content on their iPad and then let them email this as an editable document cross-platform (OS X, WIN). I am…
whoacowboy
  • 6,982
  • 6
  • 44
  • 78
4
votes
6 answers

Is there an RTF display widget in SWT

I would like to display an RTF document in an SWT (actually Eclipse RCP) application. I know there is a Swing widget for displaying and editing RTF text, but it is Swing and quite alien in look and feel when used in the otherwise platform (not to…
Roland Tepp
  • 8,301
  • 11
  • 55
  • 73