D
dave mann
Hi
I am attempting to upgrade an MSAccess VBA application to .NET.
In the original I was able to offer the user a dynamic, user-defined report
designer by adding user-selected fields to an Access report form and then
allowing the user to size and position the fields as required.
In attempting to do the same in .NET I need either a reasonably priced third
party report designer with a runtime licence or to be able to create a
user-defined report in MSAccess.
I am having problems with the latter option.
Access.Application.CreateReportControl function returns an abstract
Access._Control object, this is fine as I can cast to whatever control is
needed. But I need to be able to create a variable number of controls at
runtime
for(int i=0; i < SelectedFieldNumber; i++)
{
Access._Control ctrl =
application.CreateReportControl(application.CurentDataBase,
report.Name,...);
}
this obviously reports that ctrl has already been declared
Am I missing something obvious?
Please, any assistance would be greatly appreciated.
Dave
I am attempting to upgrade an MSAccess VBA application to .NET.
In the original I was able to offer the user a dynamic, user-defined report
designer by adding user-selected fields to an Access report form and then
allowing the user to size and position the fields as required.
In attempting to do the same in .NET I need either a reasonably priced third
party report designer with a runtime licence or to be able to create a
user-defined report in MSAccess.
I am having problems with the latter option.
Access.Application.CreateReportControl function returns an abstract
Access._Control object, this is fine as I can cast to whatever control is
needed. But I need to be able to create a variable number of controls at
runtime
for(int i=0; i < SelectedFieldNumber; i++)
{
Access._Control ctrl =
application.CreateReportControl(application.CurentDataBase,
report.Name,...);
}
this obviously reports that ctrl has already been declared
Am I missing something obvious?
Please, any assistance would be greatly appreciated.
Dave