ASP.NET Samples
    .NET Application Samples
    Reporting Services Samples

    View The Latest
OfficeWriter Docs

    OfficeWriter Home
    OfficeWriter Resources
    OfficeWriter Demos
WordApplication Sales Report Demo (App-To-Template) (C#)

Create a nested-data sales report with the WordApplication and WordTemplate objects.

Technical Overview

This sample uses the WordApplication object to create a new Word document that displays nested salesperson/sales item data. The data for this demo comes from the AdventureWorks2000 database. First, a query for a list of salespeople is executed and a table for each salesperson is created with a surrounding bookmark. Then, the document is opened as a WordTemplate object and the bookmarks for each sales person are bound and populated with sales line-item data. The end-result is a document that displays five sales line items for each employee in a nested format.

View source

Click to run demo






Copyright 2005 © SoftArtisans, Inc. All Rights Reserved.