Coming across a problem when firing off my printing button.
I am changing the presence of all my subforms to visible before printing and then hidden after printing.
But when I am running the xfa.host.print command the page count from xfa.host.numPages still only reads 1. I set up a message box to check it over and from what I can tell the presence is being set, then the print command is being fired before the layout has a chance to complete.
This means that it is picking up only a single page in my print command.
Is there a way to delay the print command, or for completing the relayout before the print command fires?
Having to build for Version 7 sadly which doesn't support it.
I'm not having a problem with making things visible/invisble anyway and prefer to go from visible to hidden as I'm changing quite a few subforms (12 to be precise) of varying heights and I only want the one they are working on to be visible normally.
The problem I'm having is that the xfa.host.numPages isn't returning an accurate number, because there is more than 1 page after my prePrint event but it keeps returning only a single page.