When I open the datasource always opens a window which lets me choose the existing Tables.
But I need open documen automaticaly without selected table menu. How to do it?
object sqlStatement = string.Format("SELECT * FROM `{0}`", DataSourceTableName);
doc.MailMerge.OpenDataSource(dataSourceFile.GetOSFullPath(),sqlStatement );
Comments: ** Comment from web user: rtverd **
But I need open documen automaticaly without selected table menu. How to do it?
object sqlStatement = string.Format("SELECT * FROM `{0}`", DataSourceTableName);
doc.MailMerge.OpenDataSource(dataSourceFile.GetOSFullPath(),sqlStatement );
Comments: ** Comment from web user: rtverd **
I've already found the solution:
doc.MailMerge.OpenDataSource(dataSourceFile.GetOSFullPath(), null, null, null, null, null, null, null, null,
null, null, null, sqlStatement, null, null, null);
Sorry for a trouble