Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

Commented Unassigned: Document.MailMerge.OpenDataSource open without selected table menu [20484]

$
0
0
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 **

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


Viewing all articles
Browse latest Browse all 1741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>