A
adrian
Hi all,
I am programatically filling a doc with data.
All the data appears under a heading (the heading is the
job number which has been formatted as style Heading1)
I want to avoid a situation where the data relating to a
single Job number straddles two docs. In other works:-
If the whole job details cannot fit on the same page, then
insert a page break and start that job at the beginning of
the new page.
Am I on the right lines by assuming that the best way to
go would be to programmatically check that the first line
in the doc is formatted Heading1. If not then insert a
page break just before the previous instance of Heading1.
If this is the best way, can anyone help me with some code
or at least a point in the right direction.
Thank you
Adrian
I am programatically filling a doc with data.
All the data appears under a heading (the heading is the
job number which has been formatted as style Heading1)
I want to avoid a situation where the data relating to a
single Job number straddles two docs. In other works:-
If the whole job details cannot fit on the same page, then
insert a page break and start that job at the beginning of
the new page.
Am I on the right lines by assuming that the best way to
go would be to programmatically check that the first line
in the doc is formatted Heading1. If not then insert a
page break just before the previous instance of Heading1.
If this is the best way, can anyone help me with some code
or at least a point in the right direction.
Thank you
Adrian