Print 2 receipts on the same A4 page

Stimulsoft Reports.NET discussion
Post Reply
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

Print 2 receipts on the same A4 page

Post by Fabio Pagano »

I need to print on an A4 page two receipts at the same time, one for the customer and one for the seller, each the same size (half A4). The 2 receipts contains the same data. After printing, the page will be cutted in half by the seller: the upper half goes to the customer, the lower half remains to the seller.

The report should look like this (i use here the "code" tag for non-proportional fonts)

Code: Select all

------------------------------------------------------
| RECEIPT NUMBER 1                                   |
|                                                    |
| Customer name: Mr. Smith                           |
|                                                    |
| ---------------------- Body -----------------------|
| Article 1                                          |
| Article 2                                          |
|                                                    |
! ------------------ End Body------------------------|
|                                                    |
| End of receipt number 1                            |
|                                                    |
|------------------- CUT HERE -----------------------|
| RECEIPT NUMBER 1                                   |
|                                                    |
| Customer name: Mr. Smith                           |
|                                                    |
| ---------------------- Body -----------------------|
| Article 1                                          |
| Article 2                                          |
|                                                    |
! ------------------ End Body------------------------|
|                                                    |
| End of receipt number 1                            |
|                                                    |
|----------------------------------------------------|

As you can see, the upper half is equal to the lower half.

The datasource contains only the records needed to print one receipt (in other words, the datasource doesn't contain the data twice)

Can you give me some help?

Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Print 2 receipts on the same A4 page

Post by Alex K. »

Hello,

As a way, you can use 2 DataBands on panel.
Please see the sample report in attachment.

Thank you.
Attachments
941.SampleReport.mrt
(20.82 KiB) Downloaded 481 times
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

Print 2 receipts on the same A4 page

Post by Fabio Pagano »

Has worked very well, StimulReport is number one.

Thank you.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Print 2 receipts on the same A4 page

Post by Andrew »

Great!

Thank you for your good words!
Post Reply