Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Current »

Each WordWriter code sample includes basic code that covers a specific scenario, along with necessary input files and a sample output file for comparison. These are intended to be quick examples of how to use the product. To learn how to use WordWriter, please see our Tutorials.

WordTemplate Samples

 

  • Basic String DatasourceThis is a basic demo that inserts data into a template document that has two merge fields.
  • Business EnvelopesDynamically create a standard business-style #10 envelope with WordTemplate.
  • Calendar SampleCreate a calendar document for any month/year combination.
  • Fax Sheet CoverA fax cover sheet with recipient and sender information, created by WordTemplate.
  • Form Letter DemoGenerate a form letter with WordTemplate.
  • Insert Image DemoWordTemplate can insert images from byte arrays or ADO.NET objects into your Word documents.
  • Mailing Labels DemoThis demo reads customer data from a database and creates standard-sized 5160 mailing labels.  Put some label paper into your printer and see for yourself!
  • Mail Merge DemoEmulate a Word mail merge using WordTemplate.  A document will be created with each recipient's letter on a new page. Take care of all of your mail merge production with one print job.
  • Nested Mail Merge DemoEmulate a Word mail merge using WordTemplate, featuring new nested repeat block technology.  A document will be created with each recipient's letter on a new page, complete with a nested table of orders. Take care of all of your mail merge production with one print job.
  • Nested Product Catalog DemoUse the new features of the WordTemplate object to create feature-rich reports that were previously only possible with many lines of code. This sample uses nested repeat blocks to produce a report very much like the Word Application Product Catalog.
  • Purchase Order DemoA generic purchase order document with a header section and an expanding Word table for detail rows.
  • WordWriter FormulasThis demo illustrates some of the formulas available for WordTemplate in OfficeWriter 4.1 and above.

WordApplication Samples

 

  • Form Letter FormattingGenerate a form letter with WordTemplate, then pass it to WordApplication to have formatting applied based on the user's selections.
  • Merge DocumentsWordWriter allows you to insert elements from separate documents. You can use this functionality to copy/paste document elements into different files, or to easily merge Word documents. This sample demonstrates how to merge three different Word documents into one unified document.
  • Product Catalog SampleAn AdventureWorks Product Catalog with formatting, tables, lists, nested data, and images.
  • Sales Report SampleDemonstrates usage of the WordApplication and WordTemplate objects together. Generates a nested-data sales report from AdventureWorks data.
  • Search and ReplaceDemonstrates how to use regular expressions with WordWriter to easily search and replace text.
  • Setting a WatermarkDynamically place custom watermarks on a Word document using the WordApplication object.

 

 

 

 

 

  • No labels