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

How to get the width of the dynamic report ?

1 Answer 171 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dhandapani
Top achievements
Rank 1
Dhandapani asked on 03 Jan 2013, 05:39 AM
Hi ,

I am creating dynamic reports columns based on the filter parameters. so its width not fixed.

I have to put logo on the right top corner of the report.so if i get the width of the report i can fix the location for logo image.

i am using picture box for logo and report has enabled with "SetViewModeInteractive()".so that reports shown in one page with scroll bars.

manually i tried to find out the width of the report its around 12 to 13 inch.but the this.report.width is returning 7.135 inch.so now logo shows in mid of the report.

How can i get the report width for dynamically changing reports?

Thanks in Advance.

1 Answer, 1 is accepted

Sort by
0
Steven
Top achievements
Rank 1
answered on 07 Jan 2013, 02:39 AM
You should also be able to DOCK the image to the right of the report.

But within the Table ItemDataBound event you should be able to get the width of the populated Table.

ItemDataBinding Event = processing table is empty
ItemDataBound Event = processing table is full of content

void table_itemDataBound(object sender, EventArgs e)
{
      Telerik.Reporting.Processing.Table table = (Telerik.Reporting.Processing.Table);
    
     var width = table.Width;
}


Tags
General Discussions
Asked by
Dhandapani
Top achievements
Rank 1
Answers by
Steven
Top achievements
Rank 1
Share this question
or