import com.jxcell.CellException; import com.jxcell.View; public class RangeCopy { public RangeCopy() {} public static void main(String args[]) { View m_view1 = new View(); View m_view2 = new View(); //This code example assumes that two workbooks exist, m_view1 and m_view2. // It will copy the data and formatting from the // //first 6 rows and columns of the first sheet of m_view1 to a new range on the first sheet of view2. try { // Initialize variables int srcSheet=0, srcRow1=0, srcRow2=5, srcCol1=0, srcCol2=5; int dstSheet=0, dstRow1=2, dstRow2=7, dstCol1=2, dstCol2=7; m_view2.copyRange(dstSheet, dstRow1, dstCol1, dstRow2, dstCol2, m_view1, srcSheet, srcRow1, srcCol1, srcRow2, srcCol2, View.eCopyAll); } catch (CellException err) { } } }