Click to See Complete Forum and Search --> : How To Select, Copy And Insert Excel Row in C++.Net


prog999
January 19th, 2007, 08:32 AM
hello,
(in .Net2003 Framwork 1.1)

I saw vb.net sample, but I can't convert C++.Net
Please help

Dim xlRange1 As Excel.Range -> Excel::Range* xlRange1;
Dim xlRange2 As Excel.Range -> Excel::Range* xlRnage2;
Dim xlRows As Excel.Range -> Excel::Rows* xlRows;
Dim xlSheet as Excel.Worksheet -> Excel::Worksheet* xlSheet;

xlRows = xlSheet.Rows ->xlRows = xlSheet->Rows;
xlRange1 = xlRows(1) -> ?
xlRange1.Copy() -> ?
xlRange2 = xlRows(2) -> ?
xlRange2.Insert() -> ?
xlApp.CutCopyMode = False -> ?

Tom Frohman
January 30th, 2007, 08:17 AM
This thread is getting a bit old but the biggest question is where are you starting from. Do you have to go back to the point where you need to import the typelibs? Or does this start at a point where you know the basics of Excel Automation and just need to do the specific task?