private static DataTable GetOrders()
{
// Open a database connection.
string connString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" +
DatabaseDir + "Northwind.mdb";
OleDbConnection conn = new OleDbConnection(connString);
conn.Open();
// Create the command.
OleDbCommand cmd = new OleDbCommand("SELECT * FROM AsposeWordOrders", conn);
// Fill an ADO.NET table from the command.
OleDbDataAdapter da = new OleDbDataAdapter(cmd);
DataTable table = new DataTable();
da.Fill(table);
// Close database.
conn.Close();
return table;
}
//ExEnd