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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

69802 Nov 13,2007 01:58 AM Nov 13,2007 08:46 AM Windows Forms 1
loading
Tags: DocIO
Ilan
Asked On November 13, 2007 01:58 AM

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


Rajarajeswari S [Syncfusion]
Replied On November 13, 2007 08:46 AM


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



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;