Friday, July 04, 2008  



 FarPoint Technologies
 (800) 645-5913

 fpsales@fpoint.com



     
 »Spread for Windows Forms » Product Tour » Import Export » Open File

Previous Opening Existing Files Next

Spread can open XML files or Stream objects that were created by Spread, as well as text and Excel files.

  Back to Top
 Opening a Spread XML File
Spread can open data or data and formatting from an XML file or a stream into the Spread control.

' Open a Spread-compatible XML file
FpSpread1.Open("c:\spreadFile.xml")


  Back to Top
 Opening an Excel File
You can open an existing Excel-formatted file (BIFF8 format) or a comma-delimited file. You can open the entire multiple-sheet file into the Spread control or specify a particular sheet (either by name or number) and open it into a specific sheet in Spread. There are several OpenExcel methods with an openFlags option. This option allows you to determine how frozen columns and rows are imported, if data only is imported, and other optional aspects.

' Open Excel sheet #2 into Spread's sheet #3
FpSpread1.OpenExcel("c:\excelFile.xls", 3, 2)


  Back to Top
 Opening a Spread 7 File
For backward compatibility, you can open an existing file from Spread 7 (a COM version of Spread).

' Open Spread 7 file into the active sheet
fpSpread1.ActiveSheet.OpenSpreadFile("c:\\comFile.ss7")


  Back to Top
 Opening a Custom Text File
You can open existing text files that are delimited, either files saved from Spread or delimited text files from other sources. If the file uses custom delimiters, you need to specify the delimiters so the control can correctly place the data within the sheet. If your file uses standard tab-delimited format, you need not use a method that lets you specify delimiters.

' Open a tab delimited file
FpSpread1.ActiveSheet.LoadTextFile("c:\\textFile.txt", True)


Previous Opening Existing Files Next

    
 Have a question?
Have a Question? Ask Us!
Subscribe to the RSS feed!RSS Subscribe
 

 
SD Times 'TOP 100' Industry Innovator - Read the press release (pdf)

Tour Home
Overview
Appearance
User Interaction
Cell Types
Formulas
Managing Data
Data Binding
Import/Export
Printing
Keyboard Interaction
Shapes
Models
Spread Designer
 
Map

Copyright © 1991-2007 FarPoint Technologies, Inc. All rights reserved. All names are property of their respective owners.