Copies the data from a range of cells to a specified range of cells.
            
            
            
Syntax
            Parameters
- fromRow
 
- Row index of start of range from which to copy
 - fromColumn
 
- Column index of start of range from which to copy
 - toRow
 
- Row index of start of range to which to copy
 - toColumn
 
- Column index of start of range to which to copy
 - rowCount
 
- Number of rows to copy
 - columnCount
 
- Number of columns to copy
 
            
             
            
Exceptions
						
            
            Remarks
            
            
Example
This example adds data to the first three columns. In the click event of a button the data is copied from the first two columns and placed in cells in columns two and three.
             
| Visual Basic |  Copy Code | 
|---|
PrivateSubPage_Load(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)HandlesMyBase.Load
If(Me.IsPostBack)ThenReturn
FpSpread1.ActiveSheetView.RowCount=10
DimiAsInteger
Fori=0To3
FpSpread1.ActiveSheetView.SetValue(i,0,i)
FpSpread1.ActiveSheetView.SetValue(i,1,i)
FpSpread1.ActiveSheetView.SetValue(i,2,i)
Next
EndSub
PrivateSubButton1_Click(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)HandlesButton1.Click
DimdmAsFarPoint.Web.Spread.Model.DefaultSheetDataModel=CType(FpSpread1.ActiveSheetView.DataModel,FarPoint.Web.Spread.Model.DefaultSheetDataModel)
dm.Copy(0,0,5,1,3,2)
EndSub  | 
 
| C# |  Copy Code | 
|---|
privatevoidPage_Load(objectsender,System.EventArgse)
{
if(this.IsPostBack)return;
FpSpread1.ActiveSheetView.RowCount=10;
for(inti=0;i<4;i++)
{
FpSpread1.ActiveSheetView.SetValue(i,0,i);
FpSpread1.ActiveSheetView.SetValue(i,1,i);
FpSpread1.ActiveSheetView.SetValue(i,2,i);
}
}
privatevoidButton1_Click(objectsender,System.EventArgse)
{
FarPoint.Web.Spread.Model.DefaultSheetDataModeldm=(FarPoint.Web.Spread.Model.DefaultSheetDataModel)FpSpread1.ActiveSheetView.DataModel;
dm.Copy(0,0,5,1,3,2);
} | 
 
 
            
            
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
 
            
            
See Also