WPCubed GmbH
Wordprocessing and PDF components 

What's new in WPTools 8

1) Dynamic/Live database tables in the document (included in "Premium" and Bundle editions)

Do you need to present the user the result of a database query and also print it? With WPTools' dynamic tables the user can not only browse the result of the query, but also change the appearance of the table and the data cells and print it in WYSIWYG manner.

In contrast to "data-grid" solutions, it is also possible to copy part of the created tables and paste them directly into a word processor program or, of course, TWPRichText. The dynamic table feature is controlled by a new component: TableProducer.

2) Improved TWPMMDataProvider

Using this component it is even easier to create a form to display text and images from a database. It also support updating the database when the user changes the text in a field inside of the editor.

It now also supports fields which store the name of a certain image to be loaded into an image object.

3) Sorting and Filtering in tables.

Now it is possible to sort a table by comparing text in a certain column. Similarly it is also possible to hide rows which meet certain criteria. The sorting logic has been developed carefully, so it is possible to even sort a table with mixed data rows such as in the screen shot above. Rows which belong to a certain "master" row, will be handled as if they were children of that row, this means that sorting will not move the data apart and filtering will hide the sub data row when the master data row was also hidden.

API: WPRichText.TableFilterSort

3) Improved style scrolling component - TWPStyleScroller.

With this component the user can quickly select a paragraph styles for the selected text.

4) Numbering has been revised.

Numbering now allows the use of multiple outline groups in one document. When appending a document in WPT format, it is now (optionally) possible that the included outline groups are added which makes sure, that the numbering starts new for each appended text.

The Distance between number text and headline is now automatically adjusted:

The number dialog has been updated and it now also allows the creation of new and additional outline definitions.
While the numbering dialog is open, the current numbers in the document are being highlighted.
Using the context menu of the number items in the dialog it is possible to replace a number- or outline style in the document.

5) Rotated Labels

The improved TWPTextObject makes it possible to display a vertical label in a table.

Example: ATable.rows[0] .cols[0] .SetTextObject( '', 'SomeText',[wpTextRotate90] );

This feature is not supported in Delphi 5, 6 and 7.

6) Dynamic Objects

This objects are displayed for a paragraph and make it possible to add clickable buttons to a paragraph or cell.

(used for selection marks, cursor and column sort buttons.)

7) Live Binding

The TWPRichText now supports LiveBinding

8) Interactive Cursor and Selection - with touch support

9) Touch support for scrolling and zooming

When a touch screen is used, the text can be scrolled and zoomed using gestures automatically.
Touch.InteractiveGestures :=[ disables the touch support if necessary.

10) function TParagraph.CharAttrModify()

Using this new function it is now possible to modify the attributes of text of a TParagraph directly.
This will not change the attributes which are used by all characters, but the "CharAttr" assoziated with each singular character.

procedure TParagraph.CharAttrModify(
WPAT_Code : Integer;
Value : Integer;
ModifyMode : TWPCharAttrModifyMode = wpSetValue;
StartPos : Integer = 0;
Len : Integer = MaxInt );

TWPCharAttrModifyMode = (wpSetValue, wpSetColorValue, wpDelete, wpAddValue, wpSubtractValue {not negative!} , wpOrValue, wpAndNotValue);

11) Property HandleRichEditMsg

If this property is true, the editor accepts some messages also supported by RichEdit. This makes it possible to use dictation software with WPTools. (This also requires that the dictation software recognizes the editor window which is - unfortunately- outside of our control)

12) Much enhanced footnotes in WPTools "Premium"

Footnotes were in WPTools "Premium" since many years now. But with WPTools 8.01 the support was much enhanced. Any footnote may now be longer than one page, in fact it can span multiple pages! (If you need the old behavior which created a new page when a footnote did not fit on the current, you can still activate this in in the property FormatOptionsEx.)

Other improvements and fixes:

+ Print a TWPTextObject as bitmap. This is useful to hide the text from mail service applications (usually printer driver)
which analyse the text on a page to read the address a letter should be sent to. (wpPrintAsBitmap)
+ TableAdd can create up to 3 table header and up to 3 footer rows.
+ TParagraph.QuickFind('{~*~}' ... can be used to locate tokens in the text.
+ WPGutter: Collapse grouped areas in a table
+ ValueEdit - preserve value loaded from DFM
+ MailMerge - can be preformed in a "ReadOnly" fashion
+ MailMerge - LoadImageFromFile
and hundreds of more small changes to improve the editing experience
* GetCharAttr has new options
* improved text search