Re: 4D write pro add a new section.

2020-01-13 Thread Eric Naujock via 4D_Tech
Thanks, I never though about using an insert break to add a new section, or a section break. But I could see it now that it's brought to my attention. The issue with page numbers may prevent me from using this to get two columns. Though it seemed like to most elegant way to accomplish

Re: 4D write pro add a new section.

2020-01-12 Thread Bernard Escaich via 4D_Tech
Thanks Jeremy. Eric, this is working nice : $range:=WP Text range(wpDoc;wk start text;4000) WP INSERT BREAK($range;wk section break;wk append) $section:=WP Get section(wpDoc;1) WP SET ATTRIBUTES($section;wk column count;2) $section:=WP Get section(wpDoc;2) WP SET ATTRIBUTES($section;wk column

Re: 4D write pro add a new section.

2020-01-11 Thread Jeremy French via 4D_Tech
Hi Eric, > I see I can add a new subsection. Write Pro subsections pertain to headers and footers, not the document body. > …trying to figure out how I would create new sew section object to append to > a document Use the command "WP INSERT BREAK" with break type "wk section break”. > I

Re: 4D write pro add a new section.

2020-01-11 Thread ADeeg via 4D_Tech
I think that invoke action is not the best choice Try https://doc.4d.com/4Dv17R6/4D/17-R6/WP-Create-subsection.301-4433866.en.html Instead Armin 4D Tech mailing list wrote > I see I can add a new subsection. But I am still trying to figure out how > I would create new sew section object to

Re: 4D write pro add a new section.

2020-01-11 Thread Bernard Escaich via 4D_Tech
I have made a test : $range:=WP Text range(wpDoc;100;100) INVOKE ACTION("insertSectionBreak") $range:=WP Text range(wpDoc;0;100) WP SET ATTRIBUTES($range;wk column count;2) $range:=WP Text range(wpDoc;100;200) WP SET ATTRIBUTES($range;wk column count;3) Error message « Attribute 130 not authorize

4D write pro add a new section.

2020-01-10 Thread Eric Naujock via 4D_Tech
I see I can add a new subsection. But I am still trying to figure out how I would create new sew section object to append to a document. I see I need to have a second section to change from a one column layout to a 2 column layout. But there does not seem to be ab way to create a section object