Hi All,
I need to create a report in the following manner:
I require to take range of customers from a dialog field
then based on this range the report should fetch all the invoice transactions of the specific customers.
i have alreay fetched the necessay data based on the cust.
However, i need to display the report as follows:
the invoice transactions of 1 customer should be displayed on one page and that of another on another page
Example:
Cust-01
invoice1
invoice2
invoice3
on page no01
Cust -02
invoice1
invoice2
on page no 02
similarly for all the customers specified in the dialog range…
Please guide for the same so as how to ensure customer specific printing on a page.
Thanks
Prajakta
Hi Prajakta,
once u complte printing of the 1st customer (below details),
write the … element.newpage(); it go for next page then print the Cust2 details in the 2nd page.
Cust-01
invoice1
invoice2
invoice3
on page no01
Thanks,
Valeru.
Below is the code i wrote in the fetch method of report but it is giving O/p as follows pls guide
Cust1:
invoice1
cust1
invoice2
cust="";
if(cust==table.custaccount)
{
element.newPage(false);
cust==table.custaccount;
id=table1.InvoiceId;
element.send(table);
}
else
{
element.newPage(true);
cust==table.custaccount;
id=table1.InvoiceId;
element.send(table);
}
Thanks
kranthi
4
int custCount;
if (cust != table.custAccount)
{
custCount ++;
if (custCount > 1)
element.newpage();
cust=table.custaccount;
////other logic
}
Thanks all for your replies…