How can I late bind to an MS Access Report from c#
This is how far I have gotten so far
I dont know how to do the open report call
Thanks
David
This is how far I have gotten so far
I dont know how to do the open report call
Thanks
David
Code:
string message = "Failed to create Access application.";
Type accessType = Type.GetTypeFromProgID("Access.Application");
if (accessType == null)
{
throw new Exception(message);
}
accessApplication = Activator.CreateInstance(accessType);
string fileName = "C:\\Report.accdb";
accessApplication.GetType().InvokeMember(
"OpenCurrentDatabase",
System.Reflection.BindingFlags.Default | System.Reflection.BindingFlags.InvokeMethod,
null,
accessApplication,
new Object[] { fileName });
Comment