|
Sponsored Links
Resources
.NET Research Library
Get .NET related white papers, case studies and webcasts
|
Industry news
Industry news
Industry news
|
Messages: 0
Messages: 0
Messages: 0
Printer friendly
Printer friendly
Printer friendly
Post reply
Post reply
Post reply
XML
XML
XML
|
 |
Creating mail merge templates including a preview functionality
Because of the new FieldAdapter class, MS Word compatible merge fields can be inserted easily into a document. Using the Windows Forms version of TX Text Control, a template designer can be easily built and deployed royalty-free.
In the shipped samples, TX Text Control demonstrates how to create templates by inserting the fields directly using the ApplicationField collection. This article describes how to create templates using the adapter fields. Additionally, it shows how to preview the template with the real data coming from a database.
This approach follows the same logic of creating a template like the shipped 'closed source' TX Template Designer:
- Open a database - Select a table - Insert fields
Details:
1. First, click on Open Database... and browse for an XML database file. A sample file comes with this project. If the XML database could be loaded properly, the contained tables are listed in the first combobox.
1. Image
2. Select one of the listed tables. All column names will be added to the items of the second combobox.
2. Image
3. The column names are used as field names of the inserted merge fields. If an item is selected, click Add field to insert the merge field into the document.
3. Image
4. The loaded database is used to get the possible fields that can be used in the template. Additionally, the contained data rows can be used to preview the merged document. Click on Preview to enable the preview functionality.
4. Image
Using the arrow buttons, it is possible to navigate through the data rows of the current table to preview all rows. You are able to use this nice approach as your basis for your own template designer.
Download the project and sample database file here (Visual Studio 2008 and at least a TX Text Control .NET 15.0 trial version is required):
Download Sample
About TX Text Control:
TX Text Control was originally released in 1991, since then more than 40,000 copies have been sold. Starting off as a single, small DLL, TX Text Control has made its way through 16-bit DLL and VBX versions to today‘s Enterprise edition with its .NET and ActiveX components. The recent addition to the family, TX Text Control .NET Server, offers all of TX Text Control advanced word processing functionality in an easy-to-use server-side .NET component. Customers benefit from these years of experience, large user base, and at the same time, appreciate developing with a mature, reliable product.
Contact Informations:
support@textcontrol.com
North & South America: Phone: +1 704-370-0110 Phone: +1 877-462-4772 (toll free)
Europe: Phone: +49 421 335 910
Asia Pacific: Phone: +886 2-2797-8508
|
|
 |
Hot threads
Hot threads
Hot threads
|
More hot threads
More hot threads
More hot threads
|
 |
Speaking at EclipseCon 2006, Java developer and independent consultant Madhu Siddalingaiah compared Microsoft's Visual Studio IDE to the open source development environment of Eclipse.
(33 comments,
last posted
July 13, 2009)
In this tech talk, Microsoft's Peter Provost talks about the design of the Composite UI Application Block and how the p&p team has led Microsoft in the adoption of Agile methodologies.
(0 comments,
last posted
April 17, 2006)
Chapter 4 of Framework Design Guidelines, titled "Type Design Guidelines," presents patterns that describe when and how to design classes, constructs and interfaces. In this chapter, Abrams and Cwalina divide types into four groups and discuss the do's and don'ts of type design.
(2 comments,
last posted
July 07, 2006)
Paul Ferrill caught up with prime open-source .NET applications driver Miguel De Icaza at Novell's BrainShare conference last week. They discussed the status of Windows Forms for Mono (it's coming along) and VB.NET for Mono (it looks like it's out).
(5 comments,
last posted
March 30, 2006)
In this tech talk, Microsoft Visual Studio architect Jack Greenfield discusses the company's approach to Domain-Specific Languages, or DSLs, and the part they play in software factories.
(0 comments,
last posted
March 15, 2006)
More hot threads »
|
|