I'm trying to put together a program that allows a user to copy data from Excel and then paste it into a datagrid in VB.net. The problem I'm running into is that there is a field where users have typed something in which causes a box in the text field (I'm assuming it's a 'return'). This field is giving me an error on converting a dbnull to a string.
I assumed the characted was either a vbcrlf or vbcr and did a replace function for that (ie replace(notes,vbcr,"") ) but that didn't help.
When I paste the values from Excel into Notepad it looks like the text below:
PI5005070 4351 INS 3 "projector install[]cable pull[]terminations" 4/14/2014
Except that the "[]" are actual boxes.
I assumed the characted was either a vbcrlf or vbcr and did a replace function for that (ie replace(notes,vbcr,"") ) but that didn't help.
When I paste the values from Excel into Notepad it looks like the text below:
PI5005070 4351 INS 3 "projector install[]cable pull[]terminations" 4/14/2014
Except that the "[]" are actual boxes.