- RichView exports RTF, HTML, text files, Unicode text files.
- RichView imports RTF, text files, Unicode text files.
- RichView saves and loads* its contents in a native format (RVF - RichView Format) and XML (with RichViewXML).
- RichView can use text import and export converters from Microsoft® Office.
* - saving and loading refer here to operations that retain 100% of document information; exported and then re-imported documents may differ.
RTF (Rich Text Format)
RTF (Rich Text Format) is a file format that allows exchanging formatted text and graphics between different word processors in different operating systems.
Advantages of RTF:
- this is a widely recognized format; many applications support it, including WordPad and Microsoft Word;
- it can store complex formatting information, images, tables, hyperlinks, Unicode text.
Disadvantages of RTF:
- files of this format are usually large (because they contain multiple versions of the same fragments, text representation of images, redundant representation of non-English characters);
- they cannot contain some RichView-specific information; some image formats cannot be stored in RTF and images of that formats are saved as bitmaps or metafiles.
RichView provides events allowing programmers to insert controls in RTF, read and write hypertext links.
This is an example of RichView RTF output (29K).
RichView imports RTF files with bitmaps, 16- and 32-bit metafiles, Jpegs, external images (images in separate files).
RichView imports RTF tables.
RichView copies RTF into the Clipboard, RichViewEdit copies and pastes.
You can designate some text styles for using as RTF codes, and use RTF keywords in the text of these styles.
HTML (Hypertext Markup Language)
HTML is the language of the World Wide Web.
RichView produces a smart and compact HTML code in two modes: traditional old-style (with tags like <B>,<FONT>) HTML files, and HTML files with Cascading Style Sheets (CSS).
CSS is a modern style sheet mechanism that allows authors and readers to attach styles (e.g. fonts, colors and spacing) to HTML documents.
HTML with CSS looks almost exactly like the original RichView document when displayed in a capable browser (such as Microsoft Internet Explorer 4 or later).
RichView exports HTML as an HTML text file and a set of image files. By default, all images are converted to Jpegs. RichView provides an event where a programmer can change this behavior (for example, save images as Gifs).
RichView provides events to write hypertext links and inserted controls in HTML.
RichView is able to save HTML in a stream (TStream) instead of a file. Moreover, it can be told to save only the HTML body, making it possible to use RichView-generated HTML as a part of larger HTML for creating complex HTML authoring tools.
You can designate some text styles for using as HTML codes, and use HTML tags in the text of these styles.
Additional information: How to save HTML archive (both HTML and images in a single file).
RichView does not have native methods for HTML import, but you can use RvHtmlImporter - a freeware component for HTML import in RichView.
RichView can save and load plain and Unicode text files. It can also copy and paste them to the Clipboard.
RVF (RichView Format)
RichView has its own format for saving documents. This format is compact, simple, and able to contain all information from a RichView document.
There is a set of options for loading and saving RVF. For example, text formatting (i.e. collections of text and paragraph styles) can be saved together with RVF documents or can be separated from them.
RichView copies and pastes RVF format to the Clipboard.
XML (Extensible Markup Language)
See RichViewXML Page.
PDF (Adobe Portable Document Format)
RichView does not have methods for creating PDF documents, but RichView documents can be exported to PDF using third-party components (see Resources Page):
Microsoft Office Text Converters
RichView is able to use text import and export converters from Microsoft Office, with the TRVOfficeConverter component.
Import converters convert files of different formats (including HTML and DOC files) to RTF, and then RichView loads them. Export converters convert RichView-generated RTF to files of different formats.
Note: Most of these converters are installed with Microsoft Office and cannot be distributed separately from Microsoft Office.
- Demos\Delphi\OfficeConverters\ subdirectory of RichView installation, or
- Demos\CBuilder\OfficeConverters\ subdirectory of RichView installation.
TDBRichViewEdit components can display and edit information in database fields as RVF, RTF, text, or user-defined formats.
- Demos\Delphi\DB Demo\ subdirectory of RichView installation, or
- Demos\CBuilder\DB Demo\ subdirectory of RichView installation.