number of print page insert in Footer on libreoffice document - printing

In LibreOffice, I have a document with only one page, and want to print the same page 200 copies.
And want to insert in my footer the special caractere : "X / Y".
Where X = the number of curent page printed.
And Y = the number of total printed page, in my case Y=200
So How can I insert X in the footer ?
Thank you

Related

Words should remain entact when "resize column → fit to data" is done

When I do "resize column → fit to data" then this action doesn't align the words as required. The words break into parts. For example, a cell has this content : "cash back maximum". Each word is in an individual line within that cell. So there are 3 lines. Something like this :
cash
back
maximum
But after I do "resize column - fit to data" the cell content becomes "cash back maximu m". The last letter "m" breaks apart and moves down & now there are 4 lines. Something like this :
cash
back
maximu
m
How do I avoid this? I want words to remain entact. "Maximum" shouldn't break into "maximu" & "m". Ofcourse I can manually adjust column width to make the word entact / whole again but I wish there was a quick automatic command or formula or shortcut to do this.
This should be what it currently looks like for you.
You can drag the cell "border" to increase the width, to allow all text to fit.
You can double click a "border" to get it to fit to the longest text.

Filer in filter (vertical and horizontal) in google sheet

I have a table where the column headers are dates and the row key are letters. the table cells contain values between 1 to 9.
I wish to return a list of the letters based on a date and a value threshold.
f.e. return a list of letters where date=X and (on that day) the values are above 5)
I have attached an editable spreadsheet below
(https://docs.google.com/spreadsheets/d/1oW7mo3az3a_4dTCEtKauF1qVPEDKb8ydaCLFiHcaWfI/edit?usp=sharing)
You can use:
=FILTER(B3:B24,INDEX(B3:G24,0,MATCH(J3,B2:G2,0))>K3)

Orbeon forms - customize section repetitions by expression

I have a text filed X. If X field is empty I want to set section Y repetitions to 1. If X field is not empty I want to set section Y repetitions from 0 to 1.
I tried to customize it in section repetitions like this:
Link to form: https://demo.orbeon.com/demo/fr/orbeon/builder/edit/485d30b47d4f7a5f7dde7674b4d53eeb5a390436
Expected behaviour:
if field X is not empty, section Y is optional (0 or 1 repetition); user can remove section
if field X is empty, section Y is required (1 repetition); user can't remove section
if section Y has 0 repetition and we remove value from field X then create one section Y repetition
Is it possible to do that in Orbeon?
Currently, the min/max setting for repeated content for repeated grids or repeated sections impacts the user's ability to add/remove rows/sections, but not the validity of the form should the number of rows/sections be below the minimum or above the maximum. This is covered by RFE #4567.
While what you suggest might be possible in the future, I think it is better, for usability, to handle this in a more explicit way:
Have a checkbox (e.g. "Provide additional information"), which is only shown if the text field isn't empty.
Create a non-repeated section, and set it to be visible if the field is empty or the checkbox is checked.

How to create (number) series with custom intervals in LibreOffice

Imagine you have the following table, see down below. Now, I would like to tell LibreOffice to create out of all three columns a series with custom intervals each. Is this possible?
The series shall be like this:
Increase number by 1 every 112 rows and insert current number inbetween.
Increase number by 1 every 28 rows and insert current number inbetween.
Increase number by 1 every 7 rows and insert current number inbetween.
You can use formula =INT((ROW()-1)/period)+startingNumber and drag it down (with black square at the bottom right of selected cell) to copy it to number of rows.
Or you can use simple macro (where period equals 7, 28 or 112):
Option Explicit
Sub Main
Dim numberOfRows, n, period, startingNumber As Integer
Dim destinationCell As Variant
period = 7
numberOfRows = 30
startingNumber = 1
For n = 0 To numberOfRows-1
destinationCell=ThisComponent.Sheets.getByIndex(0).getCellByPosition(0,n)
destinationCell.setValue(Int(n/period)+startingNumber)
Next n
End Sub

birt Printing labels paper a4

I'm a newbye in Birt and I'd like to make a report for printing label on a "Printing labels paper" based on an A4 with 20 labels (5 row x 4 col).
I developed the report using 4 tables in a row and each table has a filter like that:
row[0]%4 eq 0 (filter of table 1)
row[0]%4 eq 1 (filter of table 2)
row[0]%4 eq 2 (filter of table 3)
row[0]%4 eq 3 (filter of table 4)
All seems to be ok but I need to insert an input parameter that will contains the starting row for the first page. Ex: user insert 5 as starting row and automatically the report will be start from 5th row of first page. If labels are much more than 4, report will generate the 2th page starting from 1st row and so on.
I tried to set margin on first page but I found the same margin in the next pages too.
Thanks
GG
You could add an empty label just above your table, and add a script in the "onCreate" event of this label, to compute a margin dynamically:
var rowHeight=15;
this.getStyle().marginTop=(params["rowSkipNumber"].value*rowHeight)+"px";
Additionnally you may want to hide this label when the parameter is 0, in its "visibility" property with an expression such:
params["rowSkipNumber"].value==0

Resources