We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How To Save DOC-With Name VALUE From Database/001.doc .. 002.doc

How To Save DOC-With Name NEXT ID VALUE From
sql server Database
001.doc .. 002.doc
in Windows.Forms
TNX
ilan


1 Reply

RS Rajarajeswari S Syncfusion Team November 13, 2007 01:46 PM UTC


Hi,

Thanks for using Syncfusion products.

For storing the document with the name having the value taken by Database, you need to access the values from the database and fill it in a DataTable. From the DataTable we can access the row values using the below code:

foreach (DataRow row in table.Rows)
{
MessageBox.Show(row[0].ToString());
document.Save(row[0] + ".doc", FormatType.Doc);
}

Please refer the sample from the below link which illustrates the above:

http://websamples.syncfusion.com/samples/DocIO.Windows/F69802/main.htm

Please let me know if this helps you.

Regards,
Raji



Loader.
Live Chat Icon For mobile
Up arrow icon