all groups > sql server reporting services > december 2004 >
You're in the

sql server reporting services

group:

CSV, Render method and encoding


CSV, Render method and encoding Dune
12/12/2004 6:53:03 PM
sql server reporting services:
Hi there,

I'm creating my report using the Render method and the format is set to
"CSV". I found that when my report is opened using Excel, each row is treated
as one long string and Excel does not seem to recognise the commas as
demiliters.

After googling, it seemed that the default encoding of the report as Unicode
was the cause of this, so I passed in "ASCII" as the encoding type for the
Render method, however, Excel is still not recognising the commas as
delimiters. Am I missing something?

RE: CSV, Render method and encoding Dune
12/13/2004 12:31:10 PM
Ok, found out why this wasn't working...I was passing "ASCII" as the Encoding
argument (the 8th srgument) to the Render method, which I really should have
realised is actually a ByRef argument.

What I should have been doing is passing
"<DeviceInfo><Encoding>ASCII</Encoding></DeviceInfo>" to the DeviceInfo
argument (the 4th argument) of the Render method.

Once I did that, the report formatted as a CSV opened up fine in Excel.

Doh! Dune

[quoted text, click to view]
RE: CSV, Render method and encoding ck
2/25/2005 10:21:02 AM
Dune,
I'm new to RS, so any help would be appreciated. Where did you put that
line of code in at? I've got users asking for ASCII format as well.

Thanks,

Chris


[quoted text, click to view]
AddThis Social Bookmark Button