AcroPDF.ocx won't load pdf on startup, unless...

Posted by OctavioOlguin on 13-Feb-2020 20:49

Greetings...

Just a rare thing I've discovered... 

I have a 11.7 "GUI design" dialog-frame with an ocx embedded to supply a PDF viewer...

The window in turn has a button to load pdf, and print etc, and they work as expected, but when I supply file-name to this frame, and call a procedure just to load file, it won't load, unless I put some interactive command (MESSAGE .. VIEW-AS).  I had  try to put this procedure after and before the RUN ENABLE_UI, to no avail...

The following procedure is the loader, but without the pause, it simply won't load pdf on AcroPDF...  Put the process event hoping that was it, but also won't work.

 ASSIGN
        fStat = pFileName.

    DISPLAY "Loading file" @ fStat WITH FRAME {&FRAME-NAME}.

    PAUSE 1.

    DISPLAY fStat WITH FRAME {&FRAME-NAME}.

    chCtrlFrame-2:AcroPDF:src = pFileName .

    PROCESS EVENTS.

Anyway, it's some funny situation.

Jorge

Posted by OctavioOlguin on 14-Feb-2020 15:00

Just wanted to point it out, in case there would be some clue on that...

All Replies

Posted by OctavioOlguin on 14-Feb-2020 15:00

Just wanted to point it out, in case there would be some clue on that...

This thread is closed