Ordering in CrossDataBand?

Stimulsoft Reports.NET discussion
amitkaushik
Posts: 74
Joined: Fri Dec 07, 2012 11:35 am

Re: Ordering in CrossDataBand?

Post by amitkaushik »

ok but which control contain these properties and BeforePrint event?

Thankyou.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Ordering in CrossDataBand?

Post by Alex K. »

Hello,

Please check the BeforepRrint event of Page in sent report.

Thank you.
amitkaushik
Posts: 74
Joined: Fri Dec 07, 2012 11:35 am

Re: Ordering in CrossDataBand?

Post by amitkaushik »

yes I find that.
But I got a new problem here, I use "can shrink" (true) to remove blank space ( where I have no data) in crossdata but if i use BeforePrint it does't work.
Thankyou.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Ordering in CrossDataBand?

Post by Alex K. »

Hello,

Please send your report which reproduces the issue.

Thank you.
amitkaushik
Posts: 74
Joined: Fri Dec 07, 2012 11:35 am

Re: Ordering in CrossDataBand?

Post by amitkaushik »

Thanks for reply.

I attach report template here.
Here I require to use "can shrink" (true) for crossdataband, crossheader and Text as well.
In Crossdataband7(like) when can shrink are false its work fine, but with Crossdataband8(like) can shrink is true its fail.

One more point is when "can shrink" is false all text are shrink but crossband and databand not and retained there space as it is.

Thanks
Attachments
test.rar
Template File
(5.04 KiB) Downloaded 195 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Ordering in CrossDataBand?

Post by HighAley »

Hello.

The Can Shrink property works right. It changes the width of the cross data to fit the text. If you don't need it, you should set the Can Shrink property to false.

Thank you.
amitkaushik
Posts: 74
Joined: Fri Dec 07, 2012 11:35 am

Re: Ordering in CrossDataBand?

Post by amitkaushik »

Yes you are right, but if you check when i set the width of crossdataband with page event "BeforePrint" crossdataband did not shrink(Can Shrink =true) with that and a blank space remain at the end of band.

Thank You.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Ordering in CrossDataBand?

Post by Alex K. »

Hello,

The code in BeforePrint was send you as example. For more correct result you can use the following code:
CrossDataBand8.Width = (Page2.Width - CrossHeaderBand8.Width) / Column.Count;

But it is for this report, for another report it may be different.

Thanky ou.
amitkaushik
Posts: 74
Joined: Fri Dec 07, 2012 11:35 am

Re: Ordering in CrossDataBand?

Post by amitkaushik »

Thanks but I have the same problem.

Pls check images.

Thank You.
First.PNG
First.PNG (51.3 KiB) Viewed 2423 times
second.PNG
second.PNG (55.12 KiB) Viewed 2423 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Ordering in CrossDataBand?

Post by HighAley »

Hello.

Now we understand your problem.
As far as the Can Shrink property of the Cross Data Band shrinks its width and height you need to add a text component and set the Width property of this text component in the Before Print event.
We have added the Text4 box on the Cross Data Band in the attached report template.

Thank you.
Attachments
Test.mrt
(27.09 KiB) Downloaded 308 times
Post Reply