Last post Apr 22, 2013 12:14 PM by ankitatomy
Apr 22, 2013 02:57 AM|ankitatomy|LINK
I am new to CR. I am using CR for VS 2010. It is Windows forms Application.
I have to print two Invoices on a single A4 sized page.
I do this now. But the problem is that as the number of lines in the Details Section varies, the report is not vertically centered. (If it was centred, I could layer several papers, and cut it from the centre.
My SectionExpert is shown in the link below.
The format of the actual Image is shown here.
Could anyone tell me how to perform this?
Thanking you in advance,
Apr 22, 2013 03:10 AM|Ajay2707|LINK
first of all, true all section of "suppress blank section". then check that extra space will remove as your image. Now your second issue is when data is more than you don't hvave control to fit 2 invoice in a4 size.
It is true,then your data will not exceed from 4 or 5 line as your image said or you must decide maximum row will come to fit 2 invoice. You must fix only allow maximum row per invoice.
If above condition you don't want then the second option is custom paper size. Read below link.
But if you go with second approach. you must set every-where( at deploy server or production server ) page size.
Apr 22, 2013 04:50 AM|ankitatomy|LINK
Thank you Ajay for your kind reply.
I need the first option.
I think my explanation was a bit confusing.
I have a maximum of 5 rows per invoice. Some may have 1, others may have 3 etc.
If there are two invoices, each invoice should have a total of equal sizes.
Now, what I do not know is how to put the extra 4 blank rows when there is only one row of data,
OR how to put the extra Three blank rows, when there are only two rows with data!
In other words,
If there is only one row with data, I should add 4 more blank rows.
If there are only two rows with data, I should add 3 more blank rows.
If there are only three rows with data, I should add 2 more blank rows. etc. etc.
If there are five rows with data, I should not add any more blank rows.
I think 'suppres blank section' will not work as there is data in every section.
Apr 22, 2013 08:58 AM|Ajay2707|LINK
please check this link,
Apr 22, 2013 12:14 PM|ankitatomy|LINK
The link showed does what I need to do, though it is really a twisted way. I will mark it as answer anyway.
Do you find any other option like,
Print the GroupFooter#1 at a fixed distance from the GroupHeader#1?
For example, if the GroupHeader is currently at 2nd Inch of the Page from top, Print GroupFooter1 at 5 inches away from that, ie. at 7th Inch?
Or, if the GroupHeader is currently at 7th Inch of the Page from top, Print GroupFooter1 at 5 inches away from that, ie. at 12th Inch?
This also will solve my problem. But I do not know how to position the Footers relatively.