stringbuilder : can i determine last line, go to the last line, and delete the last line if it is blank?
Posted on 2004-11-29
hi, im doing a really horrible report here, and it uses a stringbuilder which appends lines constantly.
but im having problems because a last line is generated , which results in a new page which is then blank.
e.g. an actual 5 page report then goes to 6 pages, the 6th page being blank.
could i move to the last line in a stringbuilder, and then delete it?
i know of sb.remove(startindex,length) , but i cant move to the specified line
google searches have not been helpful)