delphidestructor
Programmer
- Oct 20, 2000
- 67
Scenario
Parameters passed to report are min = 1 and max = 4
Rec 1: Cust A
Rec 2: Cust A
Rec 3: Cust B
Rec 4: Cust A
This is not usually going to occur and for printing it isn’t a problem. The reports need to be printed in the original order entered. Not sorted by customer.
Problem : I also want to export this report to PDF for emailing to the customer. I don’t want to use the other obvious options; to send two pdf’s (recs 1-2 and rec 4), programmatically merge the two after creation, or have to versions of the same report calling a different stored procedure that would filter the records. I do have a parameter that is passed to this report to tell it whether it will be a PDF to unsuppress a few graphics. I was hoping that there might be an easy way (using the select expert in combination with a formula and the “PDFReport” parameter) to suppress any records that the customer number wasn’t equal to the customer number on the first record (min parameter). I don’t want to add any more parameters in or out of the CR if possible. I was trying to find a way do something like suppress if -> (PDFReport = true) and not(rec[currentrow].customernumber = rec[1].customernumber)
The report is currently in version 9.
Thanks for any help.
Mike
Parameters passed to report are min = 1 and max = 4
Rec 1: Cust A
Rec 2: Cust A
Rec 3: Cust B
Rec 4: Cust A
This is not usually going to occur and for printing it isn’t a problem. The reports need to be printed in the original order entered. Not sorted by customer.
Problem : I also want to export this report to PDF for emailing to the customer. I don’t want to use the other obvious options; to send two pdf’s (recs 1-2 and rec 4), programmatically merge the two after creation, or have to versions of the same report calling a different stored procedure that would filter the records. I do have a parameter that is passed to this report to tell it whether it will be a PDF to unsuppress a few graphics. I was hoping that there might be an easy way (using the select expert in combination with a formula and the “PDFReport” parameter) to suppress any records that the customer number wasn’t equal to the customer number on the first record (min parameter). I don’t want to add any more parameters in or out of the CR if possible. I was trying to find a way do something like suppress if -> (PDFReport = true) and not(rec[currentrow].customernumber = rec[1].customernumber)
The report is currently in version 9.
Thanks for any help.
Mike