You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to set a table row to repeated as header? #322
Hi,
could you clarify one thing. Would you use this function after a Table created? Or after it is filled out?
Would really appreciate an example cuz so far it didnt work out. Thanks in advance!
Hi, I am having trouble with the code above and it isn't working for me. My table is inside another table to adhere to a template to give it a name and caption. Would this be the cause of the problem?
Thanks
Activity
raphaelvalentin commentedon Dec 6, 2016
@ssuzen
Hi, sorry for the delay. This is a snippet you could use:
ssuzen commentedon Dec 6, 2016
Thank you. This works just fine. I appreciate it.
pierreluc-plt commentedon Jun 14, 2018
Hi, could you provide a small example of how you would implement that function? When and where would you call it when you create the table?
Thanks!
lingxiaoyang commentedon Jun 16, 2018
@pierreluc-plt If you have a table, you can call
set_repeat_table_header(table.rows[0])for the setup.answerquest commentedon Dec 12, 2018
Just cross-posting the required import statements for this from here:
DanielKorsa commentedon Oct 8, 2020
Hi,
could you clarify one thing. Would you use this function after a Table created? Or after it is filled out?
Would really appreciate an example cuz so far it didnt work out. Thanks in advance!
pacovl commentedon Mar 25, 2021
A simple example that creates a document with just a table and its header repeated in both pages:
D-Iskimzhy commentedon Jul 3, 2022
Hi All!
How to set 2 or more rows in table to be as header on every new page?
Thank you!
D-Iskimzhy commentedon Jul 3, 2022
did it as While loop
keithbriggs commentedon Jul 3, 2022
Isn't that just the same as:
?
D-Iskimzhy commentedon Jul 3, 2022
Yeah!
I came to that afer posting about loop
keithbriggs commentedon Jul 3, 2022
In any case, in python we write
i+=1, noti=i+1.D-Iskimzhy commentedon Jul 3, 2022
Oh!
Thanks! Always forget about that)
I'm new to python, its like hobby for me.
greglu1976 commentedon Jul 6, 2022
I set double line bottom on header row, but on the next page a single line header bottom remains...
akhilrajmr-spericorn commentedon Oct 3, 2022
Thank you. This works
obentley2 commentedon Nov 8, 2022
Hi, I am having trouble with the code above and it isn't working for me. My table is inside another table to adhere to a template to give it a name and caption. Would this be the cause of the problem?
Thanks
ramgavate68 commentedon Jul 26, 2024
hye can any one suggest me why it not working in angular project?
const table4 = new Table({
width: {
size: 100,
type: WidthType.PERCENTAGE,
},
margins: {
top: 100,
bottom: 100,
left: 100,
right: 100,
},
rows: [
new TableRow({
tableHeader: true,
children: [
new TableCell({
children: [new Paragraph({
children: [new TextRun({ text: "S.No", bold: true, size: 18 })],
alignment: AlignmentType.CENTER
})],
width: { size: 10, type: WidthType.PERCENTAGE }
}),
ramgavate68 commentedon Jul 30, 2024
hye buddies can any one help me in ngular TS