Hi,
If you want insert images with data into a sheet continuously, you may use Cells.MaxDataRow, Cells.MaxDataColumn attributes to specify a table matrix (a table's last row and column) after putting the table (data) into the sheet.
May the following sample code help you for your need, The code just provides a hint (how you can do it) so kindly change the code accordingly. And attached is the output file (I used two datatable from Northwind.mdb and two sample images):
Sample code:
OleDbConnection con = new OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=f:\\test\\Northwind.mdb");
con.Open();
OleDbCommand cmd = new OleDbCommand("Select * from Products", con);
OleDbDataAdapter da = new OleDbDataAdapter();
da.SelectCommand = cmd;
DataSet ds = new DataSet();
da.Fill(ds, "Products");
DataTable dt = ds.Tables["Products"];
cmd = new OleDbCommand("Select * from Customers", con);
da.SelectCommand = cmd;
da.Fill(ds, "Customers");
DataTable dt1 = ds.Tables["Customers"];
Workbook workbook = new Workbook();
Aspose.Cells.Worksheet worksheet = workbook.Worksheets[0];
Cells cells = worksheet.Cells;
int i = 0;
int maxdrow = 0;
//add the first pic along with the datatable
worksheet.Pictures.Add(maxdrow, 0, "f:\\test\\school.jpg");
Picture picture = worksheet.Pictures[i];
int row = picture.LowerRightRow ;
int col = picture.LowerRightColumn;
cells.ImportDataTable(dt1, false, row, col+1,false);
//Get the last row and column (matrix crieteria for table1) and specify
//the next position for the next set.
maxdrow = cells.MaxDataRow + 5;
//Add the second picture along with the table2
worksheet.Pictures.Add(maxdrow, 0, "f:\\test\\1978316911PurchasingReport.xml_img0.jpg");
picture = worksheet.Pictures[i+1];
row = picture.LowerRightRow;
col = picture.LowerRightColumn;
cells.ImportDataTable(dt, false, row, col + 1,false);
workbook.Save("f:\\test\\out_importngcontimages1.xls");
Thank you.