<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://aspadvice.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>TX Text Control : templates</title><link>http://aspadvice.com/blogs/tx_text_control/archive/tags/templates/default.aspx</link><description>Tags: templates</description><dc:language>en</dc:language><generator>CommunityServer 2.1 (Build: 60809.935)</generator><item><title>Creating mail merge templates including a preview functionality</title><link>http://aspadvice.com/blogs/tx_text_control/archive/2009/11/06/Creating-mail-merge-templates-including-a-preview-functionality.aspx</link><pubDate>Fri, 06 Nov 2009 10:44:00 GMT</pubDate><guid isPermaLink="false">e709ad4c-0c15-48eb-915e-c462c6e85445:57186</guid><dc:creator>Christopher Krause</dc:creator><slash:comments>1</slash:comments><comments>http://aspadvice.com/blogs/tx_text_control/comments/57186.aspx</comments><wfw:commentRss>http://aspadvice.com/blogs/tx_text_control/commentrss.aspx?PostID=57186</wfw:commentRss><description>&lt;h1 class="BlogPostTitle"&gt;
      Creating mail merge templates including a preview functionality
    &lt;/h1&gt;
    &lt;div class="BlogPostBody"&gt;
      &lt;div style="float:right;"&gt;
        &lt;span&gt; --&gt;&amp;lt;br&amp;gt;&lt;/span&gt;
      &lt;/div&gt;&lt;/div&gt;&lt;div class="BlogPostBody"&gt; Because of the
new FieldAdapter class, MS Word compatible merge fields can be inserted
easily into a document. Using the Windows Forms version of &lt;a href="http://www.textcontrol.com/"&gt;TX Text Control&lt;/a&gt;, a template designer can be easily built and deployed royalty-free.&lt;br /&gt;&lt;br /&gt;
In the shipped samples, &lt;a href="http://www.textcontrol.com/"&gt;TX Text Control&lt;/a&gt;
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.&lt;br /&gt;&lt;br /&gt;
This approach follows the same logic of creating a template like the shipped &amp;#39;closed source&amp;#39; TX Template Designer:&lt;br /&gt;&lt;br /&gt;
- Open a database
&lt;/div&gt;&lt;div class="BlogPostBody"&gt;- Select a table
&lt;/div&gt;&lt;div class="BlogPostBody"&gt;- Insert fields&lt;br /&gt;&lt;br /&gt;
Details:&lt;br /&gt;&lt;br /&gt;
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.&lt;br /&gt;&lt;br /&gt;
&lt;img src="http://www.textcontrol.com/images/blogs/tx_creating_templates_1.png" /&gt;&lt;br /&gt;&lt;br /&gt;
2. Select one of the listed tables. All column names will be added to the items of the second combobox.&lt;br /&gt;&lt;br /&gt;
&lt;img src="http://www.textcontrol.com/images/blogs/tx_creating_templates_2.png" /&gt;&lt;br /&gt;&lt;br /&gt;
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.&lt;br /&gt;&lt;br /&gt;
&lt;img src="http://www.textcontrol.com/images/blogs/tx_creating_templates_3.png" /&gt;&lt;br /&gt;&lt;br /&gt;
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.&lt;br /&gt;&lt;br /&gt;
&lt;img src="http://www.textcontrol.com/images/blogs/tx_creating_templates_4.png" /&gt;&lt;br /&gt;&lt;br /&gt;
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.&lt;br /&gt;&lt;br /&gt;
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):&lt;br /&gt;&lt;br /&gt;
&lt;a href="http://www.textcontrol.com/downloads/library/other/blogdata/tx_template_designer_sample.zip"&gt;Download Sample&lt;/a&gt;&lt;/div&gt;&lt;div class="BlogPostBody"&gt;&lt;br /&gt;&lt;br /&gt;

About &lt;a href="http://www.textcontrol.com/"&gt;TX Text Control&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;a href="http://www.textcontrol.com/"&gt;TX Text Control&lt;/a&gt; was originally released in 1991, since then more than 40,000 copies have been sold. Starting off as a single, small DLL, &lt;a href="http://www.textcontrol.com/"&gt;TX Text Control&lt;/a&gt;
has made its way through 16-bit DLL and VBX versions to today&amp;lsquo;s
Enterprise edition with its .NET and ActiveX components. The recent
addition to the family, offers all of &lt;a href="http://www.textcontrol.com/"&gt;TX Text Control&lt;/a&gt;
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.&lt;br /&gt;&lt;br /&gt;
Contact Informations:&lt;br /&gt;&lt;br /&gt;
support@textcontrol.com&lt;br /&gt;&lt;br /&gt;
North &amp;amp; South America:
&lt;/div&gt;&lt;div class="BlogPostBody"&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="BlogPostBody"&gt;Phone: +1 704-370-0110
&lt;/div&gt;&lt;div class="BlogPostBody"&gt;Phone: +1 877-462-4772 (toll free)&lt;br /&gt;&lt;br /&gt;
Europe:
&lt;/div&gt;&lt;div class="BlogPostBody"&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="BlogPostBody"&gt;Phone: +49 421 335 910&lt;br /&gt;&lt;br /&gt;
Asia Pacific:
&lt;/div&gt;&lt;div class="BlogPostBody"&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="BlogPostBody"&gt;Phone: +886 2-2797-8508
    &lt;/div&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://aspadvice.com/blogs/tx_text_control/archive/2009/11/06/Creating-mail-merge-templates-including-a-preview-functionality.aspx&amp;amp;;subject=Creating+mail+merge+templates+including+a+preview+functionality" target="_blank" title = "Post http://aspadvice.com/blogs/tx_text_control/archive/2009/11/06/Creating-mail-merge-templates-including-a-preview-functionality.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://aspadvice.com/blogs/tx_text_control/archive/2009/11/06/Creating-mail-merge-templates-including-a-preview-functionality.aspx&amp;amp;;title=Creating+mail+merge+templates+including+a+preview+functionality" target="_blank" title = "Post http://aspadvice.com/blogs/tx_text_control/archive/2009/11/06/Creating-mail-merge-templates-including-a-preview-functionality.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://aspadvice.com/blogs/tx_text_control/archive/2009/11/06/Creating-mail-merge-templates-including-a-preview-functionality.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://aspadvice.com/blogs/tx_text_control/archive/2009/11/06/Creating-mail-merge-templates-including-a-preview-functionality.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://aspadvice.com/blogs/tx_text_control/archive/2009/11/06/Creating-mail-merge-templates-including-a-preview-functionality.aspx&amp;amp;title=Creating+mail+merge+templates+including+a+preview+functionality" target="_blank" title = "Post http://aspadvice.com/blogs/tx_text_control/archive/2009/11/06/Creating-mail-merge-templates-including-a-preview-functionality.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://aspadvice.com/blogs/tx_text_control/archive/2009/11/06/Creating-mail-merge-templates-including-a-preview-functionality.aspx&amp;amp;;title=Creating+mail+merge+templates+including+a+preview+functionality" target="_blank" title = "Post http://aspadvice.com/blogs/tx_text_control/archive/2009/11/06/Creating-mail-merge-templates-including-a-preview-functionality.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://aspadvice.com/blogs/tx_text_control/archive/2009/11/06/Creating-mail-merge-templates-including-a-preview-functionality.aspx&amp;amp;;title=Creating+mail+merge+templates+including+a+preview+functionality&amp;amp;;top=1" target="_blank" title = "Post http://aspadvice.com/blogs/tx_text_control/archive/2009/11/06/Creating-mail-merge-templates-including-a-preview-functionality.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://aspadvice.com/aggbug.aspx?PostID=57186" width="1" height="1"&gt;</description><category domain="http://aspadvice.com/blogs/tx_text_control/archive/tags/.NET/default.aspx">.NET</category><category domain="http://aspadvice.com/blogs/tx_text_control/archive/tags/TX+Text+Control/default.aspx">TX Text Control</category><category domain="http://aspadvice.com/blogs/tx_text_control/archive/tags/template+designer/default.aspx">template designer</category><category domain="http://aspadvice.com/blogs/tx_text_control/archive/tags/templates/default.aspx">templates</category></item><item><title>LiveDocx: Generate documents with a web service</title><link>http://aspadvice.com/blogs/tx_text_control/archive/2009/01/30/LiveDocx_3A00_-Generate-documents-with-a-web-service.aspx</link><pubDate>Fri, 30 Jan 2009 14:19:00 GMT</pubDate><guid isPermaLink="false">e709ad4c-0c15-48eb-915e-c462c6e85445:50547</guid><dc:creator>Christopher Krause</dc:creator><slash:comments>0</slash:comments><comments>http://aspadvice.com/blogs/tx_text_control/comments/50547.aspx</comments><wfw:commentRss>http://aspadvice.com/blogs/tx_text_control/commentrss.aspx?PostID=50547</wfw:commentRss><description>The Imaging Source just released its latest member of the family of word processing components: &lt;a href="http://www.livedocx.com/"&gt;LiveDocx&lt;/a&gt;!&lt;br /&gt;&lt;br /&gt;LiveDocx
enables developers - using any programming language - to merge MS Word
compatible word processing templates with any type of textual data. The
resulting word processing document can be saved as a DOCX, DOC, RTF or
Adobe PDF file.&lt;br /&gt;&lt;br /&gt;This kind of functionality is useful when - for
example - you wish to generate invoices from a web-site store or to
create documents in a SOA environment.&lt;br /&gt;&lt;br /&gt;In such application, a
template, which stores the layout of the invoice can be generated in
Microsoft Word or Open Office. A developer can then pass the data,
which should appear in the invoice, to LiveDocx. On invoking the SOAP
based service, the developer receives back a word processing document
in the specified format (commonly PDF).&lt;br /&gt;&lt;br /&gt;More information at:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.livedocx.com/"&gt;LiveDocx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Contact Informations:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="mailto:support@textcontrol.com"&gt;support@textcontrol.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;North &amp;amp; South America:&lt;/b&gt;&lt;br /&gt;Phone: +1 704-370-0110&lt;br /&gt;Phone: +1 877-462-4772 (toll free)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Europe:&lt;/b&gt;&lt;br /&gt;Phone: +49 421 335 910&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Asia Pacific:&lt;/b&gt;&lt;br /&gt;Phone: +886 2-2797-8508

       
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://aspadvice.com/blogs/tx_text_control/archive/2009/01/30/LiveDocx_3A00_-Generate-documents-with-a-web-service.aspx&amp;amp;;subject=LiveDocx%3a+Generate+documents+with+a+web+service" target="_blank" title = "Post http://aspadvice.com/blogs/tx_text_control/archive/2009/01/30/LiveDocx_3A00_-Generate-documents-with-a-web-service.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://aspadvice.com/blogs/tx_text_control/archive/2009/01/30/LiveDocx_3A00_-Generate-documents-with-a-web-service.aspx&amp;amp;;title=LiveDocx%3a+Generate+documents+with+a+web+service" target="_blank" title = "Post http://aspadvice.com/blogs/tx_text_control/archive/2009/01/30/LiveDocx_3A00_-Generate-documents-with-a-web-service.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://aspadvice.com/blogs/tx_text_control/archive/2009/01/30/LiveDocx_3A00_-Generate-documents-with-a-web-service.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://aspadvice.com/blogs/tx_text_control/archive/2009/01/30/LiveDocx_3A00_-Generate-documents-with-a-web-service.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://aspadvice.com/blogs/tx_text_control/archive/2009/01/30/LiveDocx_3A00_-Generate-documents-with-a-web-service.aspx&amp;amp;title=LiveDocx%3a+Generate+documents+with+a+web+service" target="_blank" title = "Post http://aspadvice.com/blogs/tx_text_control/archive/2009/01/30/LiveDocx_3A00_-Generate-documents-with-a-web-service.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://aspadvice.com/blogs/tx_text_control/archive/2009/01/30/LiveDocx_3A00_-Generate-documents-with-a-web-service.aspx&amp;amp;;title=LiveDocx%3a+Generate+documents+with+a+web+service" target="_blank" title = "Post http://aspadvice.com/blogs/tx_text_control/archive/2009/01/30/LiveDocx_3A00_-Generate-documents-with-a-web-service.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://aspadvice.com/blogs/tx_text_control/archive/2009/01/30/LiveDocx_3A00_-Generate-documents-with-a-web-service.aspx&amp;amp;;title=LiveDocx%3a+Generate+documents+with+a+web+service&amp;amp;;top=1" target="_blank" title = "Post http://aspadvice.com/blogs/tx_text_control/archive/2009/01/30/LiveDocx_3A00_-Generate-documents-with-a-web-service.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://aspadvice.com/aggbug.aspx?PostID=50547" width="1" height="1"&gt;</description><category domain="http://aspadvice.com/blogs/tx_text_control/archive/tags/TX+Text+Control/default.aspx">TX Text Control</category><category domain="http://aspadvice.com/blogs/tx_text_control/archive/tags/SOap/default.aspx">SOap</category><category domain="http://aspadvice.com/blogs/tx_text_control/archive/tags/LiveDocx/default.aspx">LiveDocx</category><category domain="http://aspadvice.com/blogs/tx_text_control/archive/tags/PDF/default.aspx">PDF</category><category domain="http://aspadvice.com/blogs/tx_text_control/archive/tags/templates/default.aspx">templates</category><category domain="http://aspadvice.com/blogs/tx_text_control/archive/tags/Web+Service/default.aspx">Web Service</category></item></channel></rss>