c# - Excel get_range -


how can use excel get_range put following data range value.

i believe should able use get_range this, i'm not sure how.

columns

c1 = name,  c5 = value,  c10 = value 

i assumed wanted these in column headings. if not, change cell reference in get_range(). following it:

using excel = microsoft.office.interop.excel;  excel.range targetrange = targetsheet.get_range("a1"); targetrange.value = name; excel.range targetrange = targetsheet.get_range("e1"); targetrange.value = value; excel.range targetrange = targetsheet.get_range("j1"); targetrange.value = value; 

if don't have content between a1 , j1 want keep, can put values object[,] , set value of a1:j1 in 1 go, little faster.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -