Several models of reports in the same report.

Stimulsoft Reports.WEB discussion
Post Reply
jpascual
Posts: 68
Joined: Mon Jul 12, 2010 6:45 am
Location: Palencia

Several models of reports in the same report.

Post by jpascual »

I have a report that prints invoices, multiple invoices.

My bills have two formats, depending on the client.
Is it possible to create templates in the same reports and the type of customer your bill shows one format or another?
How I can do this?

I want to print several invoices at once and depending on the customer displaying a different format.
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Several models of reports in the same report.

Post by Andrew »

Hello,

Please let us know what do you mean under "different format". Is this different reports or other data formatis some components.

Thank you.
jpascual
Posts: 68
Joined: Mon Jul 12, 2010 6:45 am
Location: Palencia

Several models of reports in the same report.

Post by jpascual »

I have two clients and I want to print all invoices at the same time.
Customer A has a format for your bills and Customer B has a different format.
I want a single report that shows all the invoices for each customer and their format.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Several models of reports in the same report.

Post by Alex K. »

Hello,

You can add a second page, and display only the one page depending on the type of customer in event Begin Render of report

Code: Select all

if (TypeClent)
{
     Page1.Enabled = false;
}
else
{
     Page2.Enabled = false;
}
Thank you.
jpascual
Posts: 68
Joined: Mon Jul 12, 2010 6:45 am
Location: Palencia

Several models of reports in the same report.

Post by jpascual »

the event begin render of Pages?

for example, page 1 and page 2 :event begin render
if (DataSource.customer_name = "AAAAA") or (DataSource.customer_name = "BBBB")
{
Page2.Enabled = false;
}
else
{
Page1.Enabled = false;
}


I have a mistake in the if, why?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Several models of reports in the same report.

Post by Alex K. »

Hello,

You can use this in Begin Render events of the report.
Or use in conditions of the page.

Thank you.
Post Reply