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?
CheersOk, 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
"Dune" wrote:
> 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?
> Cheers|||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
"Dune" wrote:
> 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
> "Dune" wrote:
> > 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?
> >
> > Cheers
Showing posts with label render. Show all posts
Showing posts with label render. Show all posts
Sunday, February 19, 2012
Friday, February 17, 2012
CSV Render Engine
Hi
I have Reporting Services hosted on a server which has Workgroup edition of SQL Server which does not support csv export. I would like to write a csv Renderer.
I am not sure how complex this task is likely to be.
Are there any White Papers or samples that would assist ?
Any advice to point me in the right direction would be most appreciated.
Regards
JohnJames
Hi Chaps
I have just found an article on MSDN stating that
writing a Render is a very complex operation.
Will now seek another alternative.
Regards
JohnJames
Tuesday, February 14, 2012
CSV - Spaces in the Headers
Hello,
Have been experimenting with the csv format and was wondering if there is a way to render the csv documents with headers that have spaces. On the report designer - it does not allow you to use a space for the name of the text box which will end up being the value of the header.
Thanks.By default it is the name, unless the element name is specified (data
output tab of properties) Of course this does not solve your problem,
because I am pretty sure element names can not have spaces either.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"chanley54" <chanley54@.discussions.microsoft.com> wrote in message
news:560D1FAB-1FED-4249-963B-FCAD4FA07A13@.microsoft.com...
> Hello,
> Have been experimenting with the csv format and was wondering if there is
a way to render the csv documents with headers that have spaces. On the
report designer - it does not allow you to use a space for the name of the
text box which will end up being the value of the header.
> Thanks.
Have been experimenting with the csv format and was wondering if there is a way to render the csv documents with headers that have spaces. On the report designer - it does not allow you to use a space for the name of the text box which will end up being the value of the header.
Thanks.By default it is the name, unless the element name is specified (data
output tab of properties) Of course this does not solve your problem,
because I am pretty sure element names can not have spaces either.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"chanley54" <chanley54@.discussions.microsoft.com> wrote in message
news:560D1FAB-1FED-4249-963B-FCAD4FA07A13@.microsoft.com...
> Hello,
> Have been experimenting with the csv format and was wondering if there is
a way to render the csv documents with headers that have spaces. On the
report designer - it does not allow you to use a space for the name of the
text box which will end up being the value of the header.
> Thanks.
Subscribe to:
Posts (Atom)