when compiling is finished, I'd need to print 2 copies of that document; the 2 copies are exactly the same but a floating field that has to change, i.e. 'Copy for ME' and 'Copy for the CUSTOMER'.
Placing 2 print buttons it's not a problem, in the first button I set the Floating field to 'Copy for ME' and send a print command, in the second I do exactly the same with the 'Copy for the CUSTOMER'.
Which is the best strategy to print those 2 copies clicking the print button only once and showing the printing window only once with the whole printing spool (2 copies)?
It woudl depend on how the form is defined ...if it is a dynamic form then you can simply use the subforms addInstance method to add a new copy of it....if it is not designed that way ...i would recommend that you make a copy in Designer and use the presence properties for those pages to hide and show it.