Hello,
I need some help with: I need to shift down all the rows from a generated excel file and insert new rows on top.
Then, I have to add new information in these new rows. Can somebody help me please with some samples?
Thank you in advance!
Elsworth Burmeister |
Developer - Managed Services |
Cell: +27 83 777 3072 Email: eburmeister@elcb.co.za |
|
ELCB Information Services (Pty) Ltd |
Customer Service Email elcb@elcb.co.za · www.elcb.co.za |
E A S T L O N D O N Tel: +27(43) 704 0700 Fax: +27(43) 704 0701 |
J O H A N N E S B U R G Tel: +27(10) 035 0310 Fax: +27(10) 035 0311 |
P O R T E L I Z A B E T H Tel: +27(41) 373 0529 Fax: +27(86) 650 0135 |
Hello,
I need some help with: I need to shift down all the rows from a generated excel file and insert new rows on top.
Then, I have to add new information in these new rows. Can somebody help me please with some samples?
Thank you in advance!
Flag this post as spam/abuse.
Hmm, we use the Infragistics Excel control heavily to generate reports. I am not sure you can "shift down rows".
When writing to a cell you would use code similar to the following;
oWorksheet:Rows[iRow]:Cells[iColumn]:VALUE = "TEST"
Basically, you are telling the worksheet what row/column.
If you have a Worksheet object and it has data I am not sure you can shift everything down without writing logic to loop through all the cells and move the cell values.
Elsworth Burmeister |
Developer - Managed Services |
Cell: +27 83 777 3072 Email: eburmeister@elcb.co.za |
|
ELCB Information Services (Pty) Ltd |
Customer Service Email elcb@elcb.co.za · www.elcb.co.za |
E A S T L O N D O N Tel: +27(43) 704 0700 Fax: +27(43) 704 0701 |
J O H A N N E S B U R G Tel: +27(10) 035 0310 Fax: +27(10) 035 0311 |
P O R T E L I Z A B E T H Tel: +27(41) 373 0529 Fax: +27(86) 650 0135 |
Hmm, we use the Infragistics Excel control heavily to generate reports. I am not sure you can "shift down rows".
When writing to a cell you would use code similar to the following;
oWorksheet:Rows[iRow]:Cells[iColumn]:VALUE = "TEST"
Basically, you are telling the worksheet what row/column.
If you have a Worksheet object and it has data I am not sure you can shift everything down without writing logic to loop through all the cells and move the cell values.
Flag this post as spam/abuse.
What Elsworth is suggesting would be a good approach.
Thank you all, actually I need to insert on top 3 extra rows with company information. But I don't need this in the ultragrid, only in the excel export. I use something like ultraGridExcelExporter:Export( gridName, fileName).