Table of Contents

Search

  1. Preface
  2. Introduction
  3. Dashboard
  4. Resources
  5. Workflows
  6. Task Reference
  7. Services Overview
  8. Users
  9. Logs and Reports
  10. Encryption
  11. System
  12. Appendix
  13. Glossary Terms

Example 1: Write Excel File

Example 1: Write Excel File

Follow the steps below to create an Excel 2007 document with a page header, a title, and column headings. The input RowSet data being used is based on the example illustrated in the RowSet topic.
  1. From within the Project Designer page, expand the Data Translation folder in the Component Library, and then drag the Write Excel task to the Project Outline.
  2. On the Basic tab of the Write Excel task, specify values for the following attributes:
    Input RowSet Variable
    The name of a variable of type RowSet which contains the source data.
    Output File
    The file path and file name of the Excel document to write to.
    Excel Format
    The Excel document format, either Excel 2007 or Excel 2003.
  3. On the Advanced tab of the Write Excel task, specify the Include Column Headings value:
    Include Column Headings
    Whether or not to include column headings in the generated Excel document.
  4. Click the
    Add
    button in the sub-menu and select the Specify Page Header menu item.
  5. On the Basic tab of the Page Header element, specify values for the following:
    Left Section
    The text that should be displayed in the left section. You can insert page number, number of pages, date, time etc. by using the appropriate variable names listed in the options drop-down.
    Right Section
    The text that should be displayed in the right section.
  6. Right-click the Write Excel Task in the Project Outline on the left side of the page and select the Specify Title menu item.
  7. On the Basic tab of the Title element, specify the Title Text value:
    Title Text
    The title text.
  8. On the Cell Format tab of the Title element, specify the values for the following attributes:
    Background Color
    The background color for the title cell. 
    Underline
    Option to underline the title text.
  9. Right-click the Write Excel task in the Project Outline on the left side of the page and select the Specify Column Headings menu item.
  10. On the Basic tab for the Column Headings element, specify the Row Number value:
    Row Number
    The row number where the column headings should appear.
  11. On the Format tab of the Column Headings element, specify the Bold value:
    Bold
    The font weight of the Column Headings.
  12. Right-click the Write Excel task in the Project Outline on the left side of the page and select the Specify Data Options menu item.
  13. Click the
    Add
    button, and then click
    Add Column
    to add an element to the Write Excel Task.
  14. On the Basic tab of the Column element, specify the Index value of the column (to perform a type conversion):
  15. On the Type Conversion tab of the Column element , specify the following attributes:
    Type
    The data type of this column. Use the value NUMERIC to convert the currency amounts into a standard number as per the example parameter above.
    Pattern
    The pattern to use to format numeric fields.
  16. Click the
    Save
    button when finished.
Refer to the Excel Pattern Syntax for more formatting options.

0 COMMENTS

We’d like to hear from you!