Hi,
I have a .net app which exports data from a database to text files. I could modify the app to write the data out directly to Excel but the first column is a 16-character string which ends in a number and for some reason excel has always changed the last digit to a zero. If I import the data into excel manually, it doesn't change the last digit, but I have to specify the field as a text field at the time of import.
Basically, I need to get the data from a SQL database to Excel with proper formatting. My question is:
1. How can I automate the process of kicking off the excel data import using dot net? I would also need to automate the process of formatting all the cells as text.
*** OR ***
2. Is there a way I can keep Excel from assuming the data in the 16-character column is numeric if I write the data to excel directly using dot net?
Thanks in advance!
I have a .net app which exports data from a database to text files. I could modify the app to write the data out directly to Excel but the first column is a 16-character string which ends in a number and for some reason excel has always changed the last digit to a zero. If I import the data into excel manually, it doesn't change the last digit, but I have to specify the field as a text field at the time of import.
Basically, I need to get the data from a SQL database to Excel with proper formatting. My question is:
1. How can I automate the process of kicking off the excel data import using dot net? I would also need to automate the process of formatting all the cells as text.
*** OR ***
2. Is there a way I can keep Excel from assuming the data in the 16-character column is numeric if I write the data to excel directly using dot net?
Thanks in advance!