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 Picture Object (SAPicture)

* The Picture object is not available in ExcelWriterSE, ExcelWriterLE, or ExcelWriterFree.

The Picture object represents a single picture in a spreadsheet. To create a Picture object, use Pictures.CreateFromFile2 or Pictures.CreateFromFile.

Picture Methods and Properties

*This feature is not available in ExcelWriterSE, ExcelWriterLE, or ExcelWriterFree.

Picture Methods and Properties
AreaPattern*

Sets or retrieves the background pattern of a transparent, or partly transparent, picture. ExcelWriter supports nineteen patterns, listed in the table below.

No Pattern0
0% Pattern1
50% Pattern2
70% Pattern3
25% Pattern4
Dark Horizontal5
Dark Vertical6
Dashed Downward Diagonal7
Dashed Upward Diagonal8
Small Checkerboard9
Trellis10
Light Horizontal11
Light Vertical12
Wide Downward diagonal13
Dark Upward diagonal14
Small Grid15
60% Pattern16
20% Pattern17
10% Pattern18

The following example demonstrates setting the AreaPattern of a picture to Trellis.

Set Picture = ws.Pictures.CreateFromFile(2, 70, 5, 80, "C:\sample.jpg")
picture.areapattern = 10
		

Top

BorderLineType*

Sets or retrieves the borderline type of a picture. ExcelWriter supports nine BorderLineTypes, listed in the following table.

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

The following example sets BorderLineType to Dash-Dot-Dot.

Set Picture = ws.Pictures.CreateFromFile(2, 70, 5, 80, "C:\sample.jpg")
picture.borderlinetype = 4
		

Top

BorderWeight*

Sets or retrieves the weight of the border line of a picture. BorderWeight has four possible values, listed in the following table.

HairLine0
SingleLine1
MediumLine2
WideLine3

The following example sets BorderWeight to WideLine.

Set Picture = ws.Pictures.CreateFromFile(2, 70, 5, 80, "C:\sample.jpg")
picture.borderweight = 3
		

Top

HasShadow*

When set to True, displays a picture with a shadow effect. HasShadow is False by default.

To enable HasShadow, use,

picture.hasshadow = true
		

Top

LowerDeltaX*

Specifies the picture's horizontal offset from its lower right corner column. If the LowerDeltaX value is negative, the picture's right border will be offset to the left. If the LowerDeltaX value is positive, the picture's right border will be offset to the right.

The following example will display the picture offset to the right of its right-border column.

picture.LowerDeltaX = 200
		

Top

LowerDeltaY*

Specifies the picture's vertical offset from its lower right corner row. If the LowerDeltaY value is negative, the picture's bottom border will be offset upward. If the LowerDeltaY value is positive, the picture's bottom border will be offset downward.

The following example will display the picture offset upward of its bottom row.

picture.LowerDeltaY = -200
		

Top

Move*

Moves the picture to a specified location. Move takes four parameters that determine the new position of the picture in the worksheet:

picture.move UpperLeftColumn, UpperLeftRow, LowerRightColumn, LowerRightRow
	

To re-position your picture at upper-left corner J9 and lower-right corner V16, use,

picture.move 10,9,22,16
		

Top

UpperDeltaX*

Specifies the picture's horizontal offset from its upper left corner column. If the UpperDeltaX value is negative, the picture's left border will be offset to the left. If the UpperDeltaX value is positive, the picture's left border will be offset to the right.

The following example will display the picture offset to the right of its left-border column.

picture.UpperDeltaX = 200
		

Top

UpperDeltaY*

Specifies the picture's vertical offset from its upper left corner row. If the UpperDeltaY value is negative, the picture's top border will be offset upward. If the UpperDeltaY value is positive, the picture's top border will be offset downward.

The following example will display the picture offset downward of its upper row.

picture.UpperDeltaY = 200
		

Top

*This feature is not available in ExcelWriterSE, ExcelWriterLE, or ExcelWriterFree.


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.