I'm using the latest 6.x version of the vcl. When I am doing the merge, I lost header/footer or outlines.
Scenario #1 (this code Lost both of the header/footer and outline)
WprichText1.OpenDialog(wpdiaload);
wpRichtext1.clearEx(true, false,true);
Wprichtext1.mergeText;
wprichtext2.fastAppendText(wprichtext1,false);
Scenario #2 (this code Lost the header/footer, outline is correct)
WprichText1.OpenDialog(wpdiaload);
wpRichtext1.clearEx(true, false,true);
Wprichtext1.mergeText;
wprichtext2.heder.assign(wprichtext1.header);
wprichtext2.fastAppendText(wprichtext1,false);
scenario #3 (this code lost the outline, the header/footer is correct)
WprichText1.OpenDialog(wpdiaload);
wpRichtext1.clearEx(true, false,true);
Wprichtext1.mergeText;
wprichtext2.hederfooter.assign(wprichtext1.headerfooter);
wprichtext2.fastAppendText(wprichtext1,false);
What is correct coding to keep both? I have tried a few other way, but not successfull. I must missing something on the coding. Please HELP...