AcroPDF.ocx won't load pdf on startup, unless... - Forum - OpenEdge Development - Progress Community

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

 Forum

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

This question is answered

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

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

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