04.09.2016 Views

download-pdf-ebooks.org-ku-8828

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Console.Write("Listening for changes in 'dire<br />

ctory_path' directory...press any key to exit");<br />

Console.Read();<br />

}<br />

private static void OnChanged(object source, File<br />

SystemEventArgs e)<br />

{<br />

Console.Write("\r\nFile: {0} {1} {2}", e.Full<br />

Path, e.ChangeType, DateTime.Now);<br />

}<br />

}<br />

الكود الثانً‏ عشر:‏ فتح ملف اكسل وقراءة محتوٌاته الى<br />

مصفوفة<br />

this.openFileDialog1.FileName = "*.xls";<br />

if (this.openFileDialog1.ShowDialog() == DialogResult.OK)<br />

{<br />

Excel.Workbook theWorkbook = ExcelObj.Workbooks.Open(<br />

openFileDialog1.FileName, 0, true, 5,<br />

"", "", true, Excel.XlPlatform.xlWindows, "\t",<br />

false, false,<br />

0, true);<br />

Excel.Sheets sheets = theWorkbook.Worksheets;<br />

Excel.Worksheet worksheet = (Excel.Worksheet)sheets.<br />

get_Item(1);<br />

for (int i = 1; i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!