简体   繁体   中英

"EmptyHeader" in CSV Export Options?

I have a CSV file I am attempting to create, and the recipient requires a header row. In this header row (and in the data) there is a field that used to be present that was removed. However, they did not remove the column that that held that data, so now, there is an empty column name surrounded by delimiters ("|"). How can I recreate this?

The expected results for the following columns should be:

RxType1|RxType2|RxType3|RxType4|RxType5||DelivID 

(There is an empty column between RxType5 and DelivID) and the results would be:

|Rx|OTC|Legend|Generic|Other||Express

I am using SSRS, and have attempted adding an extra pipe the the column header for RxType5 with an empty column behind it, but the CSV seems to generate a header row based on the column names from the stored procedure and not from the RDL data. I have also attempted in the Stored Proc to create the column by using:

Select
'' AS ""

OR

'' AS "|"

but when I refresh the fields in SSRS, it puts that the column is called "ID_" (because a space, no character, or pipe is non-CLS compliant.

Any suggestions on how I can achieve this? Thanks so much :)

尝试使用已知名称创建列,例如SELECT '' AS [RemoveMe] ,然后从行标题文本框中删除该名称。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM