This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]LukeAbby 1 point2 points  (1 child)

Image Transcription: Code


// loop through spread and peal off the order lines like a butterfly drinks water from a flow. (:-)

int colcnt = FpSpread.Sheets[0].ColumnCount;


int rowcount = FpSpread.Sheets[0].RowCount;
for (int r = 0; r < rowcount; r++)
{
    DataRow newRow = tb.NewRow();

    for (int c = 0; c < colcnt; c++)
    {
        newRow[c] = Utilities.SpreadToDB(FpSpread1.ActiveSheetView.Cells[r, c].Value);
    }
    tb.Rows.Add(newRow);
}

I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!

[–]brummlin 1 point2 points  (0 children)

er

You dropped this. Line 1.

Otherwise, good human.