My query returns fields that have spaces in the names, for example:
select o.OrderID as 'INVOICE NUMBER', etc..
When I created the DataSet for this query in report designer, it changed all spaces in the field names to underscores, i.e. INVOICE_NUMBER.
This report must be exported to CSV, and the names of the fields (first row in csv) must have the spaces, not underscores. But it appears RS uses the field names (not the names in the column headers of the report table control) as the field names. Is there any way for me to force the field names in the first row of the csv to something other than the field names in the DataSet?
Thanks!
I think I you should be able to rename the column headers to change the results in the CSV file.
HTH, Jens K. Suessmeyer.
http://www.sqlserver2005.de
ALFKI,
You can go to the column properties data output tab and enter the "Element Name" and select output as "Yes" this is how I can my export to csv files.
Ham
|||should read
"how I change my export column names in the csv files"
|||Thanks - the only problem is, Element Name cannot contain a space
ALFKI,
Sorry, Yes, you are still bounded by the textbox property field names. You could not for instance name a textbox "My Textbox Value" is must be My_TextBox_Value. I mistaken thought you were just trying to rename the field.
Ham
No comments:
Post a Comment