Articles in this section
Category / Section

How to store the document with the name having the value taken by Database,

1 min read

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:

C#

foreach (DataRow row in table.Rows)

{

MessageBox.Show(row[0].ToString());

document.Save(row[0] + ".doc", FormatType.Doc);

}

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied