This is a migrated thread and some comments may be shown as answers.

Version 2010 upgrade : RenderReport error

1 Answer 66 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Benoit Massy
Top achievements
Rank 1
Benoit Massy asked on 16 Mar 2010, 08:00 PM
I try to export a report in pdf like this (this function ran number one with the 2009 Q3 version): Dim result As RenderingResult = reportProcessor.RenderReport("PDF", reportToExport, Nothing)

The error is "The string initialisation is not conform as expexted starting at index 0"

thanks to help,

Benoit

1 Answer, 1 is accepted

Sort by
0
Benoit Massy
Top achievements
Rank 1
answered on 16 Mar 2010, 10:07 PM
Find the solution. The error was not in the RenderReport method but in the report itself. It's seem that the new SQLDatasource try to find the same connectionstring's name like the one in the class project (I used a class project and a website project). So, the error was to not finding a connectionstring name in the project. If, in design view of the report put the connectionstring name like in my web.config of my website, it runs.
For easy working, use the same connectionstring's name in the class project and the website project...
Tags
General Discussions
Asked by
Benoit Massy
Top achievements
Rank 1
Answers by
Benoit Massy
Top achievements
Rank 1
Share this question
or