WPTools 是一個(gè)全新的文字處理套件,它可以用面向?qū)ο蟮姆椒▉?lái)處理文本樣式、段落和表格。它支持RTF、HTML/CSS、嵌套表格、頁(yè)眉頁(yè)腳文本并且提供杰出的所見(jiàn)即所得的頁(yè)面設(shè)計(jì)能力。
WPTools This is the brand new word processing suite - based on a new core which offers a completely object oriented approach to work with text styles, paragraphs and tables. It supports RTF, HTML/CSS, nested tables, header and footer texts and provides outstanding WYSIWYG page layout features.

當(dāng)開(kāi)發(fā)一個(gè)應(yīng)用程序時(shí),您經(jīng)常會(huì)面臨一個(gè)問(wèn)題,需要在最終用戶(hù)端輸入格式化的文本或是創(chuàng)建一些例如報(bào)告、連鎖信、清單之類(lèi)的文檔。許多產(chǎn)品可以幫助您解決這個(gè)問(wèn)題。最初,你可以選擇一個(gè)基于RichEdit DLL的控件。隨后,大量的報(bào)表生成工具出現(xiàn)了,可以供您選擇。然而現(xiàn)在,出現(xiàn)了一個(gè)把兩者的功能集合在一起的新工具。
基本概念與歷史: 基于過(guò)去8年里的WPTools用戶(hù)需求的WPTools是一個(gè)全新的產(chǎn)品。為了創(chuàng)造一個(gè)改進(jìn)的架構(gòu)來(lái)集成新的特性,給予您一些從未聽(tīng)說(shuō)過(guò)的功能,以及能夠在一個(gè)組件中實(shí)現(xiàn)多功能,我們決定重寫(xiě)源代碼。這個(gè)允許您使用所有第一流的文字處理軟件具有的屬性來(lái)編輯文本。它支持很多不同的字符、段落屬性、頁(yè)眉和頁(yè)腳、表格和編號(hào)等等。還有一個(gè)接口,通過(guò)這個(gè)接口可以加入一個(gè)拼寫(xiě)檢查組件,另外,它還支持書(shū)簽和內(nèi)容表格。
只要裝上WPDF產(chǎn)品,就可以立刻輸出PDF格式了。您也許會(huì)說(shuō)這不足以使WPTools比其他組件要好。第五版由于實(shí)現(xiàn)的方式,對(duì)標(biāo)準(zhǔn)的文字處理軟件特色的擴(kuò)展支持以及直白的操作方式等優(yōu)勢(shì)在業(yè)界是領(lǐng)先的。
特色綜述: - 所見(jiàn)即所得:WPTools總是工作在所見(jiàn)即所得的模式下,這意味著打印的輸出效果就和在編輯器里看到的一樣。

- 圖像支持:WPTools支持內(nèi)嵌圖像,把它們作為字符處理,或者是連接到段落或頁(yè)。
- 文件格式:WPTools以ANSI、HTML/CSS、RTF和它自身的“WPTools”格式來(lái)保存和裝載文檔,但是你也可以加入自定的讀寫(xiě)類(lèi)。
- 頁(yè)眉和頁(yè)腳:頁(yè)眉和頁(yè)腳可以以RTF、“WPTools”格式來(lái)保存和裝入。它們?cè)诘谝豁?yè),奇數(shù)頁(yè)和偶數(shù)頁(yè)都可以是不同的。

- 不同的文本屬性:該組件支持你以前用過(guò)的各種段落和字符屬性,乃至更多。
表格:- 文本樣式:WPTools的核心已經(jīng)為處理文本樣式作了優(yōu)化。它基于一些在HTML/CSS中用到的概念來(lái)構(gòu)建。

- 郵件合并和窗口:郵件合并是極其強(qiáng)大的。

- 數(shù)據(jù)庫(kù)連接:WPTools編輯器可以很容易地與數(shù)據(jù)庫(kù)結(jié)合起來(lái)使用。郵件合并也可以從一個(gè)數(shù)據(jù)庫(kù)中自動(dòng)裝入字段數(shù)據(jù)。

其他特色: - 由于數(shù)據(jù)結(jié)構(gòu)的改變,因此簡(jiǎn)單地使用WPTools 來(lái)代替WPTools 4是不可行的。
- 如果你正在使用郵件合并域來(lái)工作,請(qǐng)確保你使用WPTools 創(chuàng)建的文件沒(méi)有被基于WPTools 4的應(yīng)用軟件編輯。WPTools 保存郵件合并的格式與RTF標(biāo)準(zhǔn)是完全兼容的,但與WPTools 4有些微小的差異。
- WPTools 還不支持下面的特性:
- 對(duì)Quick Report的支持。
- 從右寫(xiě)到左(RTF支持)(即將支持)
- 對(duì)話的局部化
- 對(duì)WPForm的支持
- PrintRect, Print_XYWH 應(yīng)用編程接口(被支持的是”P(pán)rintPageOnCanvas" and "Draw”)
- 紙的選擇和雙面打印
- WPTools 目前不包含共享組件。它們隨后會(huì)被加入。
- 許多舊的存儲(chǔ)選項(xiàng)和裝載選項(xiàng)變得模糊了,一些新的概念隨后將被引進(jìn)。
結(jié)論: WPTools 是功能最強(qiáng)大的文字處理組件。另外,它也可以作為HTML編輯器。在提供了方便的文字處理功能后,它也盡可能地以接近HTML文檔模型的方式工作。可選的組件WPReporter使它很容易從模板和數(shù)據(jù)來(lái)創(chuàng)建文檔。
While developing your application you oftentimes are confronted with the task of letting your end-user enter formatted text or of creating documents such as reports, chain letters or invoices. Many products offer you the possibility of doing this. For the former task you could choose a control based on a RichEdit DLL, for the latter there is a large selection of report-generating tools. However, now there is finally a new tool which incorporates both functions in one product.
BASIC CONCEPT & HISTORY
WPTools , is a completely new product, based on the needs and wants of WPTools users over the past 8 years. The decision to re-write the source code from the ground up was made in order to create an improved architecture which allows the integration of new features, giving you yet unheard of functionality and versatility in a single component. As such Version 5 allows you to edit formatted text with all the attributes expected in a first-class word processing application. It supports a variety of different character and paragraph attributes, headers and footers, as well as tables, numbering and bullets. It also includes an interface to add spell checking components. Plus, it supports bookmarks and table of contents.
With the product wPDF export to PDF will work at once.You may say that this alone would not suffice to make WPTools better than the rest. Version 5 takes the lead as a result of the manner of implementation, the extended support of the standard word processing features and intuitive handling.
Feature Overview
- WYSIWYG WPTools 5 will always work in WYSIWYG mode, this means the printed output will always match the output you saw in the editor.

- Image Support WPTools supports embedded images - handles as characters or linked to paragraph or page.
File Formats WPTools saves and loads text in ANSI, RTF, HTML/CSS and its own native "WPTools" format. But you can also add custom reader and writer classes.
- Headers and Footers Headers and footers can be loaded and saved in RTF or WPT format. They can be different for the first, the odd and the even pages.

- Different text attributes This component supports the paragraph and character attributes you are used to ... and a few more.
Tables

- Text styles (stylesheet) The core of WPTools has been optimized to work with styles - it was built from scratch using concepts also used by HTML/CSS

- Mailmerge and Forms Mailmerge is extremely powerful - also 'revers' mailmerge is possible ...

- Database Connectivity The WPTools editor can be easily used with databases. The mail merge can also load the field data from a database automatically.
Other features
Notes for upgraders from WPTools 4
Due to the changed data structures it is not possible to simply replace WPTools 4 with WPTools 5 although we are trying to make the upgrade as smooth as possible.
If you are working with mail merge fields, please make sure that the files WPTools 5 creates are not edited with a version of your application which is based on WPTools 4. WPTools 5 format to save mail merge fields is completely compatible to RTF standard, WPTools 4 format was a slight variation.
WPTools 5 does not (yet) support the following:
- Support for Quickreport
- Right to left writing (RTL support) (coming soon)
- Localisation of dialogs (coming soon)
- Support for WPForm
- PrintRect, Print_XYWH API (supported are "PrintPageOnCanvas" and "Draw")
- Selection of paper bins and duplex printing. (coming soon)
- WPTools 5 currently does not contain the "shared components". They will be added later.
- Many of the old 'StoreOptions' and 'LoadOptions' have become obsolete. A new concept will be introduced here later.
Conclusion
WPTools 5 was built to be the most powerful word processor available on the component market. In addition, it also works as a HTML editor, offering convenient word processing features, while still working as closely to the HTML document model as possible. The optional WPReporter makes it easy to create complicated documents from templates and data.