Setting Height of different databands inside panel.
-
- Posts: 24
- Joined: Wed Dec 04, 2013 8:52 am
Setting Height of different databands inside panel.
Hi,
I have multiple databands on different panels. I want to align data of each databand. It should behave like a row. how can do this. I have attached my sample.
Thanks
I have multiple databands on different panels. I want to align data of each databand. It should behave like a row. how can do this. I have attached my sample.
Thanks
- Attachments
-
- Test.rar
- (3.64 KiB) Downloaded 282 times
Re: Setting Height of different databands inside panel.
Hello.
The answer on this question was done on the next topic. You should make some changes in that code.
Thank you.
The answer on this question was done on the next topic. You should make some changes in that code.
Thank you.
-
- Posts: 24
- Joined: Wed Dec 04, 2013 8:52 am
Re: Setting Height of different databands inside panel.
hi,
I had done accordingly but it takes height of highest data and applied that height to all rows. whether it has only one line. it should be according to highest data of each row. not same height for all rows.
thanks
I had done accordingly but it takes height of highest data and applied that height to all rows. whether it has only one line. it should be according to highest data of each row. not same height for all rows.
thanks
Re: Setting Height of different databands inside panel.
Hello,
In this report you need check the max height for each line, save it and set in second pass.
Thank you.
In this report you need check the max height for each line, save it and set in second pass.
Thank you.
-
- Posts: 24
- Joined: Wed Dec 04, 2013 8:52 am
Re: Setting Height of different databands inside panel.
hello,
I know this but for every row we have to create a variable to save height. and we don't know exactly how much rows are there. Is there any scenario in which we can just get height of one printing row and set it before printing and so on for others???
thanks
I know this but for every row we have to create a variable to save height. and we don't know exactly how much rows are there. Is there any scenario in which we can just get height of one printing row and set it before printing and so on for others???
thanks
Re: Setting Height of different databands inside panel.
Hello,
As a way, you can add the additional array or hashtable(for example where key is Line and value is height) in which save the max height for each line. And in second pass set these values.
Thank you.
As a way, you can add the additional array or hashtable(for example where key is Line and value is height) in which save the max height for each line. And in second pass set these values.
Thank you.
-
- Posts: 24
- Joined: Wed Dec 04, 2013 8:52 am
Re: Setting Height of different databands inside panel.
hello,
I have can you please help me with an example or its link related to hashtable.
thanks
I have can you please help me with an example or its link related to hashtable.
thanks
Re: Setting Height of different databands inside panel.
Hello,
Please check the following topic:
http://msdn.microsoft.com/en-us/library ... .110).aspx
Thank you.
Please check the following topic:
http://msdn.microsoft.com/en-us/library ... .110).aspx
Thank you.
-
- Posts: 24
- Joined: Wed Dec 04, 2013 8:52 am
Re: Setting Height of different databands inside panel.
Hello,
I am trying to read height of all rows of databand by the given code
protected void Page_Load(object sender, EventArgs e)
{
Hashtable ht = new Hashtable();
StiReport report = new StiReport();
report.Load(Server.MapPath("mrt/PrintView.mrt"));
report.Compile();
rptPrintView.Report = report;
StiDataBand dbS1H = (StiDataBand)report.CompiledReport.GetComponentByName("dbS1H");
if (!ReferenceEquals(dbS1H, null))
{
int i = 0;
foreach (var component in dbS1H.GetComponents())
{
StiText text = (StiText)component;
if (!ReferenceEquals(text, null))
{
double colHeight = text.Height;
ht.Add(i++, colHeight);
}
}
}
}
it reads only one row Height. how can I read height of all rows which comes in this databand.
thanks
I am trying to read height of all rows of databand by the given code
protected void Page_Load(object sender, EventArgs e)
{
Hashtable ht = new Hashtable();
StiReport report = new StiReport();
report.Load(Server.MapPath("mrt/PrintView.mrt"));
report.Compile();
rptPrintView.Report = report;
StiDataBand dbS1H = (StiDataBand)report.CompiledReport.GetComponentByName("dbS1H");
if (!ReferenceEquals(dbS1H, null))
{
int i = 0;
foreach (var component in dbS1H.GetComponents())
{
StiText text = (StiText)component;
if (!ReferenceEquals(text, null))
{
double colHeight = text.Height;
ht.Add(i++, colHeight);
}
}
}
}
it reads only one row Height. how can I read height of all rows which comes in this databand.
thanks
Re: Setting Height of different databands inside panel.
Hello,
You check the hight in the report template, please try to check it in the rendered report.
Thank you.
You check the hight in the report template, please try to check it in the rendered report.
Thank you.