Kirish Asosoiy qisim
C# 1 using Excel = Microsoft.Office.Interop.Excel
8888 (Автосохраненный)
- Bu sahifa navigatsiya:
- 6 //Ish kitobidagi varaqlar soni 7 SheetsInNewWorkbook = 2 8 }; 9 //Ish kitobini qoshish
- 13 //Hujjatning birinchi varagini oling (hisoblash 1 dan boshlanadi) 14 Excel.Worksheet = (Excel.Worksheet)app.Worksheets.get_Item(1); 15 // varaq nomi (pastki yorliqlar)
- 2 for (int i = 1; i 3 { 4 for (int j = 1; j 5 sheet.Cells[i, j] = String.Format("nookery {0} {1}", i, j); 6 }
- Bir qator katakchalarni qolga olish: C 1 //bir qator katakchalarni yozib olish usuli №1 2 Excel.Range r1 = sheet.Cells[1, 1];
- 6 Excel.Range range2 = sheet.get_Range("A1","H9" ); Dizayn, shrift, olcham, rang, qalinlik . C 1 //Diapazon uchun shrift
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling