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

Conditional Formating manipulate layout

2 Answers 72 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Emil Einarsson
Top achievements
Rank 1
Emil Einarsson asked on 26 Nov 2010, 03:41 PM
Hi!

I have a list of Invoice lines. The line can specify wether its an articletype line or a free text type line.

So, depending on what type of line it is, I want the report to print that line with different fields.

Like, free text only needs text and price.
Article needs, well, lots of more.

I tried making 2 different panels, one for article, one for free text.

If the lineType of one like is "Article", I'd want the panel to show, otherwise not.

And then, ugly as it is, just put all the panels on top of each other or something, to make it write the proper data on the right occasion.

How do I do this? I cant get it to work witih conditions.

Cheers, E

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 01 Dec 2010, 06:37 PM
Hello Emil Einarsson,

Your workaround is legitimate, we only want to add that you don't have to overlap the Panel items. Instead our suggestion is to position the panels one after another and set the detail's section height to 1px in the reports constructor as shown in the following code snippet:

public Report1()
{
    //
    // Required for telerik Reporting designer support
    //
    InitializeComponent();
    this.detail.Height = Unit.Pixel(1);
}

Check out the attached sample report.

Sincerely yours,
Peter
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
Emil Einarsson
Top achievements
Rank 1
answered on 02 Dec 2010, 07:57 AM
Great, thank you. :) It works wonders actually.
Tags
General Discussions
Asked by
Emil Einarsson
Top achievements
Rank 1
Answers by
Peter
Telerik team
Emil Einarsson
Top achievements
Rank 1
Share this question
or