Tom
Attached is short example project. It behaves weird.
Scenario and reproduction steps inside the main form.
I can't find out what is wrong with the code or what am I missing.
Any sugestions are very welcome.
Best regards
Tom Urlep
Comments
- 
                Excellent!
I implemented both your suggestions and it works.
Thanks for quick reply. - 
                Thanks for your answer but
Option 1: Doesn't change the behaviour
Option 2: I added ppViewr to the USES clause but it doesn't compile
( Undeclared identifier: 'ehViewer_EndGenerate' )