WPDLLInt Object |
[Top] [Chapter] |
Description The WPDLLInt object is the central part of the TextDynamic word processing component.
Work with the powerful mail merge, create documents under program control using the TextCursor API or the optional reporting.
You can access Memo.PageSizes to format the text to let it fit into a series of rectangles. Each page can be retrieved easily as a metafile. To convert the text to PDF using the integrated PDF converter To prepare and send e-mails use the property Mapi. In one package we deliver an OCX to be used in Visual Basic 6, MS Access or Visual FoxPro (or other development tools with a decent Active X support) and a .NET assembly (written in C#) to be used in dotNET applications (C#, VB.NET, Delphi.NET). The source for the .NET assembly is provided with the license.
TextDynamic Product Pages .NET / OCX
In both cases the word processing is performed by an optimized native windows DLL, the TextDynamic kernel. When using the OCX please specify the path to the DLL in property DLLName. When using .NET please use the static method SetDLLName(string) as early as possible in the program, i.e. WPDynamic.WPDLLInt.SetDLLName("S:\\Appname\\WPTextDLL01.dll");
We tried to make the OCX and the .NET control work as similar as possible. But we also added some exclusive utility classes and methods to the .NET library which provide a very tight integration. So the control works nicely with .NET framework Streams and preserves the PNG data loaded into .NET Pictures objects.
The interfaces (IWPMemo, IWPTextCursor, ...) are the same in the .NET assembly and in the OCX. This makes it possible to make the source code exchangeable. In this reference we mainly include examples developed in C#. The events published by this control however are implemented differently. While the OCX uses an event interface the .NET wrapper of course uses delegates. The parameter list of this delegates has been slightly modified to make the integration perfect.
The PDF manual includes an introduction which shows how to create a "first" application in C#, VB.NET and VB6. It also shows how to use the important method SetLayout to load the file which contains the description of the user interface (in TextDynamic everything can be configured, the order of the buttons, captions and images). The method SetEditorMode is used to switch the different tool panels on and off, it is also used to activate spell check, PDF export and other optional features. (The options must be included in license).
When using the registered version you need to set your license key using the method EditorStart.
The following interfaces are supported by TextDynamic:
|