Introduction
  Welcome
  The Web Reporting Solution
  What is ExcelWriter?
  Features and Benefits
  New in This Version  V4
  Requirements
  Edition Differences
  Frequently Asked Questions
  Troubleshooting

Quick Start
  Creating Your First Spreadsheet
  Adding a Formula
  Adding Formatting
  Importing from a Database

Features In Depth
  Addressing Cells
  Setting Values
  Output Options
  Adding Charts
  Reading an Existing Spreadsheet
  Modifying an Existing Spreadsheet
  The Range Object
  Template Spreadsheets
  How to Use Templates
  ExcelApp.Open vs. ExcelTemplate
  Using ExcelTemplate with PivotTables
  Templates and Charts
  Reliable Spreadsheet Download  V4
  Page Setup
  Formatting Headers & Footers
  Protecting your Worksheet
  Multilingual Support  V4
  XML Import

HotCell Technology  V4
  What is HotCell Technology?
  Upload Example
  Advanced POST Example
  Advanced Upload Example

Programmer's Reference
  Object Model
      ExcelTemplate Object
      ExcelApplication Object
         3DProperties Object
         Area Object
         Axis Object
         Cells Object
         Cell Object
         Charts Object
         Chart Object
         ChartFrame Object
         Font Object
         Line Object
         PageSetup Object
         Pictures Object
         Picture Object
         Range Object
         SeriesCollection Object
         Series Object
         Style Object
         Worksheets Object
         Worksheet Object
  Formula Functions
  Formula Calculation Operators
  Formatting Codes
  Chart Codes

Installation
  Quick Installation
  Configuring IIS
  Security Considerations

External Links
  ExcelWriter Home Page
  Technical Support
  ExcelWriter Demos
  SoftArtisans Home Page
  E-mail General Questions
  E-mail Technical Support
  Legal Information

Object Model ExcelApplication ExcelTemplate Worksheets Worksheet Cells Cell Range Style Font Charts
Chart SeriesCollection Series 3DProperties Axis ChartFrame Line Area Pictures Picture PageSetup


The Line Object (SALine)

The Line object represents the appearance a chart line. ExcelWriter includes the following line objects:

Line Methods and Properties

Line Methods and Properties
LineColor

Sets or retrieves the color of a Line object (AxisLine, MajorGridline, MinorGridline, Wall3DBorder, Series Border, or ChartFrame Border).

The following sets the color of a ChartArea's border to red.

Chart.ChartArea.Border.Linecolor = rgb(255,0,0)
	

Note: To display a series border and its markers in one solid color, set all of the following properties to the desired color:

For example:

objSeries1.Border.LineColor = rgb(255,0,0)
objSeries1.MarkerFormat.BackgroundColor = rgb(255,0,0)
objSeries1.MarkerFormat.ForegroundColor = rgb(255,0,0)
	

Top

LineFormatting

Sets or retrieves the type of formatting applied to an Line object. The three types of formatting and their codes are,

saxlsCreationAutomatic0
saxlsCreationNone1
saxlsCreationCustom2

When LineFormatting is set to saxlsCreationAutomatic (0), the default formatting settings will be applied to the Line object. SaxlsCreationCustom (2) enables custom formatting assigned to the Line object (colors or style). SaxlsCreationNone will remove all Line formatting (default or custom).

The following sets LineFormatting to saxlsCreationNone for the border of the chart area, disabling all formatting.

Chart.ChartArea.Border.AreaFormatting = 1
		

Top

LineStyle

Sets or retrieves the style of a Line object (AxisLine, MajorGridline, MinorGridline, Wall3DBorder, Series Border, or ChartFrame Border). ExcelWriter supports nine line styles:

Solid0
Dash1
Dot2
Dash-Dot3
Dash-Dot-Dot4
Dark Gray5
Medium Gray6
Light Gray8

The following sets the style of the minor gridlines on the Y axis to Dash-Dot-Dot.

ValueAxis.MinorGridline.LineStyle = 4 
		

Top

LineWeight

Sets or retrieves the weight of a Line object (AxisLine, MajorGridline, MinorGridline, Wall3DBorder, Series Border, or ChartFrame Border). LineWeight has four possible values:

HairLine0
SingleLine1
MediumLine2
WideLine3

The following sets the weight of the major gridlines on the Y axis to WideLine.

ValueAxis.MajorGridline.LineWeight = 3
		

Top



Object Model ExcelApplication ExcelTemplate Worksheets Worksheet Cells Cell Range Style Font Charts
Chart SeriesCollection Series 3DProperties Axis ChartFrame Line Area Pictures Picture PageSetup


Copyright © 2003, SoftArtisans, Inc.