Hopefully someone has done this - I need a 3 column page (side-by-side) with a two column table (with the headers) to fill the three columns. The table is fairly long and I need it to wrap/continue from the first column on the page to the second column and on to the third and then continue to the next page in the same fashion. Right now I can only get the table to show in one column on the page and it continues on the next page. The final output is a printed PDF page.
Using span="all" is the way to cause some in flow content to span all the columns of a multi-column document. For brevity in answering, I am posting a picture of the XSL FO for something like this.
Related
I've got an app, where I get a bunch of data from the API, this data rapresents activities done on a given
day in a given month, and they are displayed in a table.
I can have different tables (let s say one for working activities, one for school and so on).
In the tables, <TH> are the days of the month, and the first TD of each row is the month.
The table only generates a row for any given month only if there is data in that month.
A first ng-repeat will create X number of tables depending on the different activities, and
a second nested ng-repeat will fill the rows of the table for the months with data in it.
Everything works fine, but I have an issue.
There is a specific print view for these tables, before it was one table per page (I used a css rule to break page after every table)
but now I wanna implement something better, as a table could have only one row
(let s say you have activities only in january, and none in other months)
it's pretty ugly when it breaks the page and prints just one table with one row in a new page.
So I wanna implement a counter that let's say after 15 rows it will break the page.
By 15 rows I mean global rows, so it could be a full table with 12 rows (12 months with data) followed
by a table with 3rows only, and then it would break page for the next table.
What's the best way to achieve something like this in angularJS?
with: p.presences.length I get in return the number of months each table in the ng-repeat will have.
So my idea is to have a counter that adds p.presences.length at each iteration of the ng-repeat, then I would use that counter in a ng-class to break the page,
Currently to break pages I'm using this code:
<div class="breakPagePrint" ng-class="p.print ? 'showTablePrint' : 'noDisplay'"> </div>
with this css code:
.breakPagePrint {
page-break-before: always;
}
p.print is a Boolean that is given by a checkbox on every table, so if the user wants a given table to be included in the print page, he ll check the box.
so my idea is to put in this ng-class an expression with the counter, something like
ng-class= "tableCounter > 15 && p.print ? 'showTablePrint' : 'noDisplay'"
but in this case the counter should get reset after 15 otherwise it won't break page again after another 15counts (at 30).
If anyone has some ideas on how to nicely implement a counter and how to use it at best in my case.
Thank you
Use the $index of your ng-repeat to check to see when it has covered a multiple 15 records or use the p.presences.length if that gives the property you need (i.e. the counter for each row). Then insert the div at each multiple.
Assuming your div above currently works (but only for 15 at the moment) then just add the following code to that div. This uses the modulus of 15.
<div ng-class="{'breakPagePrint':(p.presences.length%15==0),'noDisplay':(p.presences.length%15!=0)}"></div>
(I'm para-coding so not 100% sure of the syntax) But give that a try and see if it works. But basically it adds the breaking div whenever the p.presences.length is a multiple of 15, or every 15 records.
I have a DataTable that I'm passing to a FlexCel report. It contains a variable number of columns, so I'm using the Full Dataset feature (e.g. <#table_name.*>).
However, only a subset of the fields are dynamically generated (I have a variable number of attachments). The column name for each attachment field starts with a common word (e.g. "Attachment0", "Attachment1", etc).
What I would like to do is output the known finite set of fields and then the variable number of attachments. It would be nice if I could write something like <#table_name.Attachment*> (and <#table_name.Attachment**>). Is there any way in FlexCel Reports I can achieve the same result?
A side benefit to such a solution means that I could keep the formatting for the known/finite set of fields.
Update
I added place holder columns to the document, each with a <#delete column> tag, so that the un-wanted columns/data are removed.
Although this works, it's not ideal. For example, if I want to see how the columns fit in the page width (in print preview), then I need to hide the columns. Then I have to remember to un-hide them again, so other developers can see/understand my handy work.
It would be much more straight forward if I could filter the fields before they're output to the document.
I realised there's an alternate way around this problem. I broke up the data into two sets of data - <#table_name.*> and <#table_name_attachments.*>.
The fixed set of fields are in the first table and the variable set of fields is in the second table (all the "Attachment*" fields). When the report is run, I place them next to each other (in the same order) in the same worksheet. This means I have two table ranges - "_table_name_" and "_table_name_attachments_" on the one sheet.
Now I'm able to run my print preview without hiding/re-showing the columns-to-be-deleted. I've also eliminated human error - it was all to easy to accidentally set the wrong number of padded/delete columns.
Output Needed
Row Grouping
I am trying to create a report to match exactly as in attached file using RDLC, that has three levels of data:
Packing No
PO No
Item
Level 2 and 3 should come in a single column, to achive this I have tried using subreport:
Column Grouping - If more than one PO arrives, column is repeating horizontaly instead of extending vertically
Row Grouping - Two columns are created one for PO No, another for item details,instead on single column
Subreport inside subreport - Here first subreport have Packing No as Parameter, second subreport has Packing No & Po No as parameter, in this case first row of RDLC alone displays all data correctly, subsequent rows are not able to receive the parameter and it displays error.
I came close but not able to complete, any solution will be greatly helpful to me.
I think you are over-complicating things and don't need to place sub-report inside sub-report.
I can see that it might be needed to place (one column report with row grouping by PO#) sub-report into details cell of column 2 and pass package No to it as a parameters to filter data.
I have implemented tablix inside tablix concept. I done this with the help of following link.
I have one table A, that is holding other two tables B & C respectively. I have grouped these two tables with the help of Dept_Nbr from first table A.
What I want is:
I want to give page break in between two tables. For example, I have Dept_Nbr as 529 and 530. In one page, the two tables will show the records for 529 and in the other page the two tables will show the records for 530.
Now I want to show all these records in four pages. first table is in one page and second table is in other page for 529th Dept_nbr and vice versa for 530.
How to give Page break inside grouping.
What I tried is:
I gave Page Break on Group Properties, Hence Page is breaking in between two groups. But I want a page break inside a group itself.
Also I checked the check box on tablix properties i.e.., Add Page Break Before and Add Page Break After. But nothing gives the output as it is already in grouping.
Please guide me on the same. Thanks in advance.
Add a parent group to Table A that encompasses the rows containing Tables B & C. For this parent group, group on Department Number. Then, as part of the group properties, you can have it break between groups.
As your question and layout stands now, you're asking that the report break between detail rows. As far as I know, this is not possible.
I don't know if its possible or not, but thought I'd ask. Many times reports need data grouping to have anchored to the bottom of the report some summary information, such as invoices. You don't want the totals shifting UPwards based on only 2 detail lines vs another with 20. I've tried working with using the Tablix bound to the data source for the output but couldn't get it quite right... It would either shift up, or force break and appear at top of following page.
So, if anyone has some ideas to help resolve that, that too would be great.
My second approach was to just use a simple report page footer. However, the overall "Report" page is not technically "BOUND" to any datasource. So, if I put a textbox in the footer and want it to show something, I can't pick "the most recent row from the datasource associated with the Tablix", it always requires an aggregate, such as
=First(Fields!SomeField.Value, "SomeDataSource" )
=Sum( ...
=Last( ...
etc...
I just want it to have whatever was the most recent... so I tried to use report variables to create one and was thinking to have it get updated per row being processed, so it always had whatever the "latest" value was and I could just dump that value at the bottom of the report.
Any suggestions to either would be great. Thanks.
I know this is an old question, but I had a very similar problem and came up with a unique solution. I had a statement that needed to have the payment slip print at the bottom of the page even if the statement line items wrapped over to another page. I solved it by:
Making all rows in the report a uniform height.
Calculating how many rows were required to fill the page (minus the height of my payment slip.
Getting the number of line items in the statement.
Calculating the remaining number of rows needed to push my payment slip to the bottom of the page.
Adding a sub-report with the calculated number of blank rows to pad out the necessary space between the line items and the payment slip.
The advantage of that approach was that I could generate bills for multiple customers, and since the padding is part of the group it would be customized for each customer's bill and bottom-justify the pay slip for each of them.
You can use a similar approach to push your "footer" info to the bottom of your page. Since it is still inside of your data group you'll have access to the data values you need as well.
In the footer you can refer to report item from report body, like this:
=ReportItems!myFooterValueTextBox.Value
The catch is that you can refer to only one report item in your footer, so you may need to add invisible footer row in your table and concatenate all your totals into one cell (myFooterValueTextBox) in that row:
=First(Fields!SomeField.Value, "SomeDataSource") + "|" +
Sum(...) + "|" + .... +
Last(...)
I used pipe as deliminator in my example, so then in the footer, I would split the string and place values in appropriate containers, like this:
=Split(ReportItems!myFooterValueTextBox.Value,"|")(0)