Hello,
I'm currently working with an Access-DB and I already succeeded in getting and changing various datatypes per c# code.
public static DataTable GetBetreuer()
{
conn.Open();
dbCommand = new OleDbCommand("SELECT ID, Email, Name FROM Betreuer", conn);
dbDataAdapter = new OleDbDataAdapter(dbCommand);
DataTable resultDataTable = new DataTable();
dbDataAdapter.Fill(resultDataTable);
conn.Close();
return resultDataTable;
}
That's pretty basic right now. What I now want to do, is to open an OLE-Object
from the code. For example, if my OLE-Object
in my Access DB is a pfd-file, I want to open it with the standard app for pdf-files. My other idea, in case it's not possible, was to copy the file in a temp dir and open it with Process.Start()
. But I couldn't find anything related to working with any OLE-Object
from code. Also add an OLE-Object
.