Help: Problem with ActiveX control
Posted: Mon Apr 16, 2012 6:06 pm
Hi all,
The example
C:\hmg.3.0.40\SAMPLES\ACTIVEX.7\demo7.prg
does not run in my computer, it stops at:
I tried the same example in HMG Extended and works well.
Thanks in advance.
Best Regard,
Claudio Soto
The example
C:\hmg.3.0.40\SAMPLES\ACTIVEX.7\demo7.prg
Code: Select all
#include "hmg.ch"
FUNCTION Main()
DEFINE WINDOW Win1 ;
AT 0,0 ;
WIDTH 800 ;
HEIGHT 500 ;
TITLE 'HMG ActiveX Support Demo' ;
MAIN
DEFINE MAIN MENU
POPUP "Test"
MENUITEM "Open File" ACTION Test()
END POPUP
END MENU
DEFINE ACTIVEX Test
ROW 10
COL 50
WIDTH 700
HEIGHT 400
PROGID "AcroPDF.PDF.1"
END ACTIVEX
END WINDOW
Center Window Win1
Activate Window Win1
RETURN NIL
Procedure Test()
// Win1.Test.Object:src := curdrive() + ':\' + curdir() + '\' + 'readme.pdf'
Win1.Test.Object:src := 'readme.pdf'
Return
I tried the same example in HMG Extended and works well.
Thanks in advance.
Best Regard,
Claudio Soto