I try to merge 2 different Write Pro documents,
but background pictures do not get merged.
Is this possible?
If so, how do I do it.
In v18.1 client server, I have tried
with making sections break, but haven’t been successful.
The central code of merging is in principal like this.
The if is just to convince me that I have the complete content in $template
$template:= WP New (wp_template) // wp_template is a Write Pro Object field from templates table.
If ( Not(Option )) // testing 2 different cases
$rangeTarget:= WP Text range ( WPArea;wk end text;wk end text)WP INSERT BREAK ($rangeTarget;wk section break;wk append)
$rangeTarget:= WP Text range ( WPArea;wk end text;wk end text)
WP INSERT DOCUMENT** ($rangeTarget;$template;wk append)
The 2 branches is to see the result if I just copy the content using WP New.
This works fine with background pictures (and everything)
My aim is to build the final documents from existing “parts” (WPDocs). As example one “part” could be a maintenance scheme that I want to add inte an existing chapter of maintenance. Normally the maintenance document is portrait, but this scheme is landscape and has some background pictures and is ready made to merge into other docs.