Page 1 of 1
Several models of reports in the same report.
Posted: Fri Nov 19, 2010 2:46 am
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.
Several models of reports in the same report.
Posted: Fri Nov 19, 2010 2:57 am
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.
Several models of reports in the same report.
Posted: Fri Nov 19, 2010 3:05 am
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.
Several models of reports in the same report.
Posted: Fri Nov 19, 2010 4:05 am
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.
Several models of reports in the same report.
Posted: Fri Nov 19, 2010 6:57 am
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?
Several models of reports in the same report.
Posted: Fri Nov 19, 2010 7:36 am
by Alex K.
Hello,
You can use this in Begin Render events of the report.
Or use in conditions of the page.
Thank you.