From: Giorgio Parmeggiani on
Hi

I have converted a local report in a windows form application from
VisualStudio 2008 to VisualStudio 2010.
In the report viewer the report is correctly visualized, but, sometimes, in
print layout (or if i print the report) I obtain this exception: "An error
has occurred during report processing" "Index was outside the bounds of the
array".
The report is binding to a object data source, if i delete some object from
my data source the error disappear.

Thank in advance
Giorgio

From: "Charles Wang [MSFT]" on
Hi Giorgio,
Is your object in your data source shared by multiple threads or possibly
be changed concurrently when you tried to print the report?

If this is possible, I recommend that you first clone the dataset and set
the cloned dataset as a data source to your local report. In this case, the
data is stable for your local report.

Best regards,
Charles Wang


From: Giorgio Parmeggiani on
Hi, thank for your reply.
My object DataSource is not shared and is not changed after is binding to
the report, however I try to follow your suggestion and try to use a cloned
dataset

""Charles Wang [MSFT]"" <changliw(a)online.microsoft.com> ha scritto nel
messaggio news:0If53gbELHA.4980(a)TK2MSFTNGHUB02.phx.gbl...
> Hi Giorgio,
> Is your object in your data source shared by multiple threads or possibly
> be changed concurrently when you tried to print the report?
>
> If this is possible, I recommend that you first clone the dataset and set
> the cloned dataset as a data source to your local report. In this case,
> the
> data is stable for your local report.
>
> Best regards,
> Charles Wang
>
>
From: Giorgio Parmeggiani on
Hi
I have tried to clone the datasource but unfortunately it remains the same
error
:-(

"Giorgio Parmeggiani" <msnews08(a)nospam.nospam> ha scritto nel messaggio
news:B6089EF4-537F-4D96-970C-DD509B45DC15(a)microsoft.com...
> Hi, thank for your reply.
> My object DataSource is not shared and is not changed after is binding to
> the report, however I try to follow your suggestion and try to use a
> cloned dataset
>
> ""Charles Wang [MSFT]"" <changliw(a)online.microsoft.com> ha scritto nel
> messaggio news:0If53gbELHA.4980(a)TK2MSFTNGHUB02.phx.gbl...
>> Hi Giorgio,
>> Is your object in your data source shared by multiple threads or possibly
>> be changed concurrently when you tried to print the report?
>>
>> If this is possible, I recommend that you first clone the dataset and set
>> the cloned dataset as a data source to your local report. In this case,
>> the
>> data is stable for your local report.
>>
>> Best regards,
>> Charles Wang
>>
>>
From: "Charles Wang [MSFT]" on
Is it possible that when you print the report other user/thread changes the
data source of your report? If so, you need to forbid the change.