C # Sending an anchor to the bottom

There is something I could not solve here. We switched from FONET to Reporting to ensure decent PDF export and printing. There is no (free) way to print the generated PDF that we could find without using an outdated version of Adobe Reader, and we cannot install a third party program everywhere.

We make invoices this way, with variable invoice line numbers (which are also variable in height) and an optional remark. It's in the subheading. At the bottom of the last page, we want the amount excluding VAT, total VAT and totals including VAT. When there is no VAT on this invoice, these lines are hidden.

However, we did not find any binding of these totals to the bottom of the last page. We already use a footer to show something on every page, and abuse the header to display the column headers for the invoice rows, since the row headers are not repeated on the next page.

What we tried: - We tried to add a footer to the sub-header of the invoice lines to show this, but it cannot contain Tablix and does not display. - Adding spaces between account lines and totals only works with a few account lines. When greater than 4, it places the totals at the beginning of the next page. Removing spaces puts the totals right after the invoice lines, while we want it at the bottom of the last page. - We could get around this in FONET using an absolute table, but we haven't seen this feature in Reporting. - We would use a different system if it is simply impossible. We need something that supports design, tables that can be populated with DataSets or IEnumerables, binding, inline images, direct printing, and PDF export.Localization (strings based on language using default resource files) would be a huge plus.

Thanks in advance,

Nick

+3


source to share


1 answer


My answer is a year later, but maybe it will help someone

Had a similar issue when printing envelope cover with header at bottom. I found questions like yours but no answers. After banging my head for hours, I got it.

Keep variable height controls in a rectangle and make the rectangle as long as possible, and keep the other controls (which you want to print after the variable space) under the rectangle. - Check the image below

enter image description here



Now, if the CanGrow control inside the rectangle grows, it does so without clicking the controls outside the rectangle. But be careful, if the controls grow beyond the size of the rectangle, then the rectangle will grow and pop out the rest.

What is it. But wait !!! I migrated this report from VS 2008 to ReportBuilder 2 (& 3) and it didn't work. Pulling my hair for another 2 hours is the problem

Select the report (not the body) and set the ConsumeContainerWhitespace property to True for that. Spaces are consumed both on the right and at the bottom inside the container - I think this is the standard behavior and only the behavior in VS 2008 and VS 2005 reports.

I've been developing the .NET framework for the past 6 years, comfortable with pretty much everything, but this damn fine reporting component never stops annoying me!

+6


source







All Articles