Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Write XL File from C++.Net

Write XL File from C++.Net

Scheduled Pinned Locked Moved Managed C++/CLI
csharpc++
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mohant net
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • M mohant 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

      L Offline
      L Offline
      leonigah
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups