Write XL File from C++.Net
-
Hi All Actually am C# developer.now i want to write the code in C++ for "writing XL sheet from C++".Using introp dll we can use in c#.it may be same in c++.but i dont know perfectly....please give me any link related this or code....its ver urgent... Thanx in Advance Mohan.T
Mohan t working for N.I.C
-
Hi All Actually am C# developer.now i want to write the code in C++ for "writing XL sheet from C++".Using introp dll we can use in c#.it may be same in c++.but i dont know perfectly....please give me any link related this or code....its ver urgent... Thanx in Advance Mohan.T
Mohan t working for N.I.C
Microsoft::Office::Interop::Excel::Application^ exl = gcnew Microsoft::Office::Interop::Excel::ApplicationClass(); FileInfo^ file = gcnew FileInfo("c:\\leonigah.xls"); Workbook^ wb = exl->Workbooks->Open("c:\\leonigah.xls", 0, false, 5,"", "", true, Microsoft::Office::Interop::Excel::XlPlatform::xlWindows, "\t", false, false,0, true, true, 0); Worksheet^ ws = static_cast<Worksheet^> (exl->ActiveSheet); Range^ rn = (Range^)ws->Cells[2, 4];//2=row;4=column rn->Value2 = "leonigah";
Nigah M Manzoor
modified on Wednesday, July 23, 2008 8:13 AM