Guide

Top  Previous  Next

In this chapter we collected introduction texts to important tasks which can be solved with WPTools. We recommend to also review the HLP file since it contains a structured list of all classes, properties and methods. It also contains 'Categories' which are a big help. In chapter 'Tasks' we will explain how to create the first small editor, how to use mail merge, how attach a generic toolbar using actions and much more. There is also an introduction to WPReporter.

 

Please check out the demos which are described in this chapter:

Mini Editor - shows how to create a small, yet powerful editor

Create Table in Code - demos the most effective way to create tables in code

TBX Demo - how to use WPTools with TBX, the toolbar 2000 extension

GridMode - how to create tables dynamically from a database

DynAssign TWPRTFDataCollection (create MDI app without MDI windows)

ParStyle - this demo shows how to work with the CSS like paragraph styles

Localization - how to localize the dialogs and messages.

 

Also see the Programming Overview.

 

QuickStart

 

After having dropped the TWPRichText you can click right to use the QuickConfig dialog: 

 

clip0157   [the WPTools Propery Dialog]

 

clip0159

 

PropOverview

 

Loading and Saving

 

To load text into the editor You can use the functions LoadFromFile, LoadFromStream and also the properties AsString and SelectionAsString (the latter inserts the text). To move the cursor before the insertion or after the load modify the property CPPosition.

 

To save the text You can use the functions SaveToFile, SaveToStream and AsANSIString. The function AsANSIString is useful to convert the text into a data string of a given format, i.e. AsANSIString('HTML') will create a string with HTML tags.

 

If the load and save functions ask for a second string parameter this is a "format string" - please read more here http://www.wpcubed.com/manuals/formatstrings.htm

 

In our web based forum we have posted several FAQ topics and articles.

 

The article "Compose an e-mail in HTML format / Save image to HTML" shows how to create a HTML e-mail.

 

The WPRichText component implements several functions which open a dialog box: Load, Save, SaveAs, InsertGraphicDialog and Insert.