rtf

How to output unicode string to RTF (using C#)

Hi, I'm trying to output unicode string into RTF format. (using c# and winforms) From wikipedia: If a Unicode escape is required, the control word \u is used, followed by a 16-bit signed decimal integer giving the Unicode codepoint number. For the benefit of programs without Unicode support, this must be followed by the nearest rep...

Merging rtf documents in C sharp

I am using NRtfTree to merge two rtf documents. The merged document does not retain the same look as the template and it looks to be a problem to do with encoding. How do I set the encoding for NRtfTree. Or is there any other component I can use to merge two documents without using Office automation. Thanks ...

How to reduce size of RTF with embedded images?

Hi, We have some code which produces an RTF document from a RTF template. It is basically doing string search and replaces of special tags within the RTF file. This is accessible via a web page. Typically, the processing time for this is really quick. However, we need to embed an image within a template. We've been embedding these ...

How to display rich text in a TDBGrid?

I have a table with a RTF field in it. How can I display this in a TDBGrid so that it actually shows the rich text, and not just (FMTMEMO) in the column? I really don't want to use a third party component for this. Thanks! ...

How to store Richtextbox Foramtted COntents in MYSql DB ' Direclty ' using VB.Net

I have one Field in MYSQL DB. Name is ' Field1 '. I can store the Richtextbox text(it contains Bold, Italic, Etc). using the code ' Richtextbox1.rtf ' But when i am trying to display using 'Richtextbox1.rtf=dt.rows(0).item(0).tostring ', It shows 'File Format is not Valid '. What is the Solution. ...

iTextSharp - How to generate a RTF document in the ClipBoard instead of a file

I would like to generate a PDF or RTF document using iTextSharp library that can be copied to the clipboard, using the same code I use to generate the document on a file (FileStream). This way my application would give the user two options: generate to a file or to the clipboard. ...

How to generate RTFs with PHP

I need to generate an RTF from within PHP. I've seen several libraries out there but wondering if anyone has used any of them or if they've just hand coded their own (which I'm perfectly able to do). Any opinions out there? TIA ...

Programatically adding Images to RTF Document

I am trying to add a image to a RTF document which I am creating. I would prefer to not use 'copy/paste' methods (that involve pasting the image within a RichTextBox and then accessing the .RTF property) which purge the clipboard (as this will be a bother and confusion for my end users). The code I have so far returns the string that ne...

Paint RTF/HTML strings into a custom swing component

In my Swing application, users enter styled text into a JTextPane which uses an RTFEditorKit (HTML is also a possibility). I then need to render many of these styled notes at specific coordinates in a custom component. I would think the View.paint method would be helpful here, but I'm not able to create a usable View object. I have th...

python adding gibberish when reading from a .rtf file?

I have a .rtf file that contains nothing but an integer, say 15. I wish to read this integer in through python and manipulate that integer in some way. However, it seems that python is reading in much of the metadata associated with .rtf files. Why is that? How can I avoid it? For example, trying to read in this file, I get.. {\...

Combine several RTF texts into one RTF file using VBA

I'm extracting 'task notes' from MS Project using VBA and want to create a MS Word .DOC file and also copy those texts into EXCEL. If you use the Notes property of the Task objects you only get 255 characters and formatting will not not be retained. In order to keep formatting you can convert the .MPP file into .MPD and extract the note...

rtf to text including headers and footers

we need to get the contents of RTF documents as plain text. we were using RFTEditorKit for it, but many of the RTF documents we need to handle contain \headerf or other header fields, and RTFEditorKit doesnt parse these (silently ignores). is there another lightweight solution to get these documents parsed to plain text? ...

how to convert rtf to image format ( jpg/png..)

i need to convert rtf document that contains images (jpgs/pngs ) to image format jpgs or pngs programmaticly , do you have any ideas on how to do it ? on server side (web) Thanks ...

HELP! How do I set the RichTextBox.SelectionFont FontFamily without changing the Style?

One of the controls in my application limits a user to be able to change only the font style (B, I, U) and colour of the text. I have created a custom control which inherits from the RichTextBox for this purpose. I am able to intercept CTRL-V, and set the font of the pasted text to SystemFonts.DefaultFont. The problem I am currently f...

[VBA ?] Rich text format (with formatting tags) in Excel to unformatted text

Hello, I have approx. 12000 cells in excel containing RTF (including formatting tags). I need to parse them to get to the unformatted text. This is the example of one of the cells with text: {\rtf1\ansi\deflang1060\ftnbj\uc1 {\fonttbl{\f0 \froman \fcharset0 Times New Roman;}{\f1 \fswiss \fcharset238 Arial;}} {\colortbl ;\red255\green2...

MS Access Convert like function to Memo Data Type

I need to use rich text formatting for a field in a report in MS Access in order to use character spacing. In the report, attempting to change the Text Format in the field's properties from Plain Text to Rich Text Produces the error: "The setting you entered isn't valid for this property." I presume that is because the field is not a mem...

How convert .rtf to .doc format in unix utility

Where find console converter rtf2doc formats? ...

Compatibility for RTF 1.8 and 1.9.1

I was looking at the Wikipedia article on the RTF file format, and it looks like the most recent version, 1.9.1, was published by Microsoft in March 2008 for Word 2007. Does anybody know if it's widely supported enough to use? Or should I stick with 1.8? ...

MultiColor Label Control

hi all is it possible at all to somehow make the label contorl multicolored? i have a rich textbox that the user enters text into, and if they change the font for some words in the rtf, and changes colors, and underlines one or more words here and there etc, i need to be able to display the resulting text, with the correct styles set by...

Are tables supported when displaying RTF files in Windows Installer

I'm creating a Windows Installer setup file using Wix and the standard UI library. I've supplied my own RTF file for the license agreement, but tables are not displaying correctly. Are tables supported in this case, and if so, what do I need to do to get them to display? Basically, the cell border is only being drawn around the first li...