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

Picture Box

1 Answer 204 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Parthi
Top achievements
Rank 1
Parthi asked on 24 Feb 2009, 01:32 PM
Hi,
I am working web application oriented and i used telerik reporting tool. i want to add the image in my report page..

Any one help me.... with code......

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 24 Feb 2009, 05:00 PM
Hi Parthi,

Here is a sample code for creating a picturebox item and settings its value to a url resource:

Telerik.Reporting.PictureBox pictureBox1 = new Telerik.Reporting.PictureBox(); 
            pictureBox1.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(2, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch))), new Telerik.Reporting.Drawing.Unit(0.5, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch)))); 
pictureBox1.Name = "pictureBox1"
pictureBox1.Value = "http://www.myviewstate.net/images/employee.jpg"
pictureBox1.Style.BorderStyle.Default = BorderType.Solid; 
pictureBox1.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch))), new Telerik.Reporting.Drawing.Unit(1, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch)))); 
this.detail.Items.Add(pictureBox1); 

Hope this helps.

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Parthi
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or