Все вопросы: [rtf]

92 вопросов

похожие теги:
0
голосов
2ответов
1027 просмотров

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 docu...

1
голосов
2ответов
2165 просмотров

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 th...

1
голосов
2ответов
2695 просмотров

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, t...

0
голосов
2ответов
1063 просмотров

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 ...

25
голосов
5ответов
45549 просмотров

Programmatically 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 cod...

7
голосов
2ответов
12663 просмотров

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

1
голосов
1ответов
3914 просмотров

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.

0
голосов
2ответов
1471 просмотров

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 ...

1
голосов
4ответов
2340 просмотров

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!

14
голосов
6ответов
28852 просмотров

How to reduce size of RTF with embedded images?

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 t...

0
голосов
1ответов
1493 просмотров

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 automat...

22
голосов
4ответов
26173 просмотров

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

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, thi...

2
голосов
3ответов
240 просмотров

How to serve .RTFs

I support a web-application that displays reports from a database. Occassionally, a report will contain an attachment (which is typically an image/document which is stored in the database as well). We serve the attachment via a dynamic .htm resource which streams the attachment from the database...

35
голосов
10ответов
48723 просмотров

Is there a Python module for converting RTF to plain text?

Ideally, I'd like a module or library that doesn't require superuser access to install; I have limited privileges in my working environment.

4
голосов
4ответов
5196 просмотров

RichTextBox Replacement Winforms .NET2.0+

I have been extending the RichTextBox control in VS2008 using C# (adding printer support and URL links). I have most of the functionality I need but the control is not that good. I do not know how to change the mouse cursor for image sizing handles. Bullets get out of wack with the size and colou...

5
голосов
2ответов
3992 просмотров

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 WordPad document in RichTextBox, it ignores (and...

3
голосов
2ответов
4017 просмотров

Output RTF special characters to Unicode

I have been looking around ocn Google and Stackoverflow but haven't found what I needed, but my question seems quite simple. Anyhow; What is the way to convert a string of RTF special characters such as "\'d3\'d6" (In this case Russian) to unicode chars or string using C#?

4
голосов
3ответов
3461 просмотров

How to split an RTF file into lines?

I am trying to split an RTF file into lines (in my code) and I am not quite getting it right, mostly because I am not really grokking the entirety of the RTF format. It seems that lines can be split by \par or \pard or \par\pard or any number of fun combinations. I am looking for a piece of cod...

15
голосов
10ответов
18824 просмотров

Reset RTF in RichTextBox?

I'm trying to "reset" the formatting in my RichTextBox (WinForms, not WPF). I was previously using richTextBox.Text = richTextBox.Text; However, that seems to have suddenly failed me. Now no matter what I set richTextBox.Text to, it retains some of the rtf formatting. I've tried richTextB...

1
голосов
1ответов
6947 просмотров

Character encoding for thai characters

I have a requirement to read a RTF file with thai characters and write it to a text file. I tried using TIS-620, MS874,ISO-8859-11,but thai characters are not displaying properly when i open the resulting output file in notepad or textpad. But it works well with Wordpad. Please guide me. Thanks ...

6
голосов
1ответов
2516 просмотров

Retaining font size when loading/saving RTF in WPF

Consider the following RTF document {\rtf1\ansi\ansicpg1252\deff0\deflang1031{\fonttbl{\f0\fswiss\fprq2\fcharset0 Segoe UI;}{\f1\fswiss\fcharset0 Arial;}} {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs22 Sample Text\f1\fs20\par } It contains "Sample Text" in font Segoe UI 11 pt...

0
голосов
1ответов
3186 просмотров

insert image to RTF file using PHP

How can I insert an image to an RTF file. Inside the RTF file there is a placeholder text like {photo}. I want to place the image at this position using php.

3
голосов
2ответов
5788 просмотров

Convert PDF to RTF in Java

Does anyone know of an easily available library or SDK which can be used to convert a PDF document to RTF in Java?

1
голосов
1ответов
1597 просмотров

имя rtfwriter не существует в текущем контексте

Я пытаюсь преобразовать XML-документы в RTF-документы. Я могу успешно выполнить преобразование из xml в pdf, но всякий раз, когда я пытаюсь использовать RtfWriter.GetInstance или RtfHeaderFooters, я получаю следующее сообщение об ошибке: Имя Rtfwriter не существует в текущем контексте ...

4
голосов
3ответов
3495 просмотров

Добавить оглавление в документ RTF

Я пытаюсь создать документ RTF вручную и в конечном итоге сделаю это программно. Я планирую улучшить pyRTF, чтобы он мог генерировать «Оглавление», чего, я думаю, не может. Я не могу использовать управляющие слова RTF (\ tc, \ tcf и \ tcl.) для создания оглавления. http://msdn.microsoft.com/...

0
голосов
1ответов
4577 просмотров

Может ли iTextSharp открывать документ RTF, управлять им и экспортировать документ в PDF?

Используя iTextSharp (и c # / ASP.NET), можно ли открыть документ RTF, управлять им, заменяя некоторый текст, вставляя изображение (WMF или PNG), и экспортировать, который обработал документ, в документ PDF, который сохраняет форматирование исходного документа RTF? По сути, я надеюсь создать ...

3
голосов
1ответов
1022 просмотров

Как преобразовать разметку вики в RTF?

Я хочу создать форматированный текст в элементе управления RichTextBox .net. Похоже, что использовать существующий механизм форматирования, например выбор и т. д. Какую-нибудь разметку было бы намного проще. Т.е. так же, как разметка работает на этом сайте. Например, Some **bold** text. ...

2
голосов
1ответов
6083 просмотров

Как вы можете добавить \ line, а не \ par к System.Windows.Forms.RichTextBox

Я использую элемент управления System.Windows.Forms.RichTextBox в .NET 2.0 и использую C #. У меня есть массив строк, который я хотел бы добавить в RichTextBox, но я не хочу создавать новые абзацы в RTF. Я хочу, чтобы строки разделялись командами \ line, а не командами \ par в RTF. (Я хочу им...

4
голосов
2ответов
5079 просмотров

Как преобразовать символы Unicode в escape-коды

Итак, у меня есть несколько таких строк: {\ b \ cf12 よ ろ て そ}. Я думаю, что могу перебрать каждый символ и заменить любой юникод ( Edit: Anything where AscW(char) > 127 or < 0) на escape-код юникода (\ u ###). Однако я не уверен, как это сделать программно. Есть предложения? Пояснение:...

0
голосов
1ответов
284 просмотров

файл сохранения текстового поля

При сохранении файла .rtf из поля форматированного текста ориентация файла не сохраняется, может ли кто-нибудь дать мне решение для этого?