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 Pictures Object (SAPictures)

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

The Pictures object is a collection, representing the set of all pictures in a single worksheet. To create a Pictures object, use,

Set Pictures = ws.Pictures

Pictures Methods and Properties

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

Pictures Methods and Properties
Count*

Counts the number of pictures in a worksheet. To retrieve the number of pictures included in a worksheet, use,

PictureCount = ws.pictures.count
		

Top

CreateFromFile*

Creates a Picture object from an existing image file. CreateFromFile takes five parameters:

Pictures.CreateFromFile(UpperLeftColumn, UpperLeftRow, LowerRightColumn, LowerRightRow, FileName)

UpperLeftColumn, UpperLeftRow, LowerRightColumn, and LowerRightRow specify the location of the picture in the worksheet. FileName specifies the complete path and name of the file from which you are creating a picture.

Note: Setting the location in the worksheet of two of the picture's corners may resize the image disproportionately, distorting the image. To avoid image distortion, use CreateFromFile2.

The following example demonstrates creating a picture object.

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

Top

CreateFromFile2*

Creates a Picture object from an existing image file. CreateFromFile2 takes three parameters:

Pictures.CreateFromFile2(UpperLeftColumn, UpperLeftRow, FileName)

UpperLeftColumn and UpperLeftRow specify the location in the worksheet of the image's top left corner. FileName specifies the complete path and name of the file from which you are creating a picture.

The following example demonstrates creating a picture object.

Set Picture = ws.Pictures.CreateFromFile2(2, 70, "C:\sample.jpg")
	

Top

Item*

Represents a single Picture object in a Pictures collection. Item is the default property of Pictures, so Pictures(1) is equivalent to Pictures.Item(1).

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.