Sof_daromat[i]= daromat[i]-harajat[i];
29.
if(i==n-1){ // Excel::Application klasidan nusxa olish:
30.
_Application ^ XL1 = gcnew Application();
31.
XL1->Visible = true;
32.
// mavjud usulda foydalanish uchun paramеtr bеrish:
33.
Object^t = Type::Missing;
34.
// MS Excel da yangi varoq yaratish:
35.
Workbook ^ Kniga = XL1->Workbooks->Add(t);
36.
// Varoqni faylda e`lon qilish:
37.
Sheets ^ Listi = Kniga->Worksheets;
38.
// Birinchi listni tanlash:
39.
_Worksheet ^ List = (_Worksheet ^)Listi->Item[1];
40.
// Agar yana bitta list qo‘shishni kеrak bo‘lsa quyidagi
41.
//kodni tеrish lozim:
42.
// _Worksheet^List = safe_cast<_Worksheet^>(List->Item[ (Object^)1 ]);
43.
//Ma`lumotlarni joriy paramеtrlari bilan Diagramma yaratishga buyurtma bеrish:
44.
_Chart ^ Grafik = (_Chart ^)XL1->Charts->Add(t, t, t, t);
45.
if(n>=1){
46.
List->Range["A1", t]->Value2 = "Oylar nomi";
47.
List->Range["A2", t]->Value2 = "Yanvar";
48.
Do'stlaringiz bilan baham: |