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

Bug using PictureBox ?

5 Answers 167 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Will
Top achievements
Rank 1
Will asked on 12 Nov 2007, 08:47 PM
Hello -
I have a report that runs without any problems, but as soon as I add a PictureBox control to the report I get the error, "Object reference not set to an instance of an object."   As soon as I remove the PictureBox control, the report runs fine again.  I can leave the Value of the PictureBox as empty or set it to a database column...and it errors out either way.

I had reports that had PictureBox controls that displayed an image from the database that were working fine with the earlier version of the Telerik Report Control.  Is this a new bug??

Please help or let me know.  Thanks -
 - will

5 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 13 Nov 2007, 08:36 AM
Hi Will,

In order to investigate the cause for that exception we will need a little bit more information. Could you please send us the two reports (along with their .resx files if any) -- one report will be just before adding the Picture Box and the other report will be after adding it. We will compare them and see what happens. Also, what kind of project do you put your reports? When do you get the exception -- in runtime (Win or Web) or while doing a preview (Win or Web)? Any additional information, that you think is related, will help us determine the cause of the problem.

I am looking forward to hearing from you. Thank you.

Greetings,
Ross
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Rossen Hristov
Telerik team
answered on 13 Nov 2007, 09:43 AM
Hello Will,

We just found a bug that occurs when the value of the PictureBox is null.

Can you verify that if you have a report with a single PictureBox whose Value is definitely not null (either bound to an existing  physical file or to a database column that does not contain null values) the report renders without error.

If you send us your original report causing the exception, along with the database it is bound to, this will help us a lot.

We are very sorry for that inconvenience and we will start working on the issue right away. Your account has been awarded with 2000 Telerik Points.

Thank you for your undestanlding.

Greetings,
Ross
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Will
Top achievements
Rank 1
answered on 13 Nov 2007, 05:16 PM
Hello -

How do I send or attach files in this forum? 

This is in a vs.net 2005 project...and it is just the telerik report class lib project.  The exception occurs in the designer - in preview mode.   The database is SQL2005.

That is good news (sort of) that you were also able to find the bug.  However, even when I set the PictureBox Value property to a database column, the error still occurs.  The ONLY time the report renders properly is if I set the Value to a static image on my hard drive.

Thanks
 - will
0
Will
Top achievements
Rank 1
answered on 14 Nov 2007, 01:02 AM
So...any response on how I can send you the files you need?
0
Rossen Hristov
Telerik team
answered on 14 Nov 2007, 08:52 AM
Hi Will,

You will need to open a support ticket in order to attach your files, since attaching files in the public forums is not allowed.

Best wishes,
Ross
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Will
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Will
Top achievements
Rank 1
Share this question
or