TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ndenge Gerald
NA
5
611
creating excel program with C#
Jun 25 2020 12:51 PM
I have something like the code below and want to calculate the the mean for the parameter 'value' in column d, using a calculatemean() method that returns a value to the sheet.
please how can i go about it?
static
void
AddPropertyToWorksheet(
float
size,
string
suburb,
string
city,
float
value)
{
int
row = 2;
Excel.Worksheet Property_info = workbook.Worksheets[1];
while
(
true
)
{
if
(Property_info.Cells[row,
"A"
].Value ==
null
)
{
Property_info.Cells[row,
"A"
] = size;
Property_info.Cells[row,
"B"
] = suburb;
Property_info.Cells[row,
"C"
] = city;
Property_info.Cells[row,
"D"
] = value;
return
;
Reply
Answers (
1
)
View data from another table in listview on ASP.NET web application
Methods in C# with parameters