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 35 Next »

Unknown macro: {div}

ExcelWriter offers two approaches to generating, processing and manipulating Excel documents: ExcelTemplate and ExcelApplication. This tutorial will walk you through assigning the contents of a cell using ExcelTemplate and ExcelApplication.

[Download the Hello, World sample code]

Icon

You will need ExcelWriter 8 installed in order to run the Hello, World sample.

  • If you haven't purchased ExcelWriter, you can download an evaluation version [here].
  • If you need to install ExcelWriter, please visit the [install page] for instructions.

Hello World with ExcelTemplate

ExcelWriter's ExcelTemplate approach allows you to write data to a template file that contains data markers. The data markers tell ExcelWriter where to bind specific sets of data. This tutorial will show you the basics on how to dynamically insert data into a worksheet using ExcelTemplate.

Setting up the template file

In the template file there is a single data marker %%=$DataValue. All ExcelWriter data markers are prefaced with %%= and the $ sign means that the data source for this data marker is 1-dimensional (e.g. 1-dimensional array or single value). DataValue is the data marker ID we'll use to bind the data to this data marker.

New to data markers? Check out our [data markers guide].

SCREEN SHOT

The template file for Hello, World can be found under \templates\Hello World.xlsx.

Writing the code

Hello World with ExcelApplication

Next Steps

Tutorials

Basic tutorials will walk through everything you need to know to generate reports. Advanced tutorials help take your reporting to the next level!

API Reference

The page Programmer's API Reference could not be found.

[Help]

The page Help could not be found.
  • No labels