11.
Creating ActiveX Documents
Creating the ActiveX Document
Project:
After
creating
the
above
Standard
EXE
project,
we
will
use
the
Wizard
to
convert
this
to
document
file. Select
‘ActiveX
Document
Migration
Wizard’
from
the
‘Add-Ins’
menu. Check
whether
this
menu
item
is
available
in
the
ADD-Ins
menu. If
not
you
have
get
it
from
ADD-In
Manager.
You
will
get
the
opening
screen
as
shown
in
the
figure
5. It
is
only
an
informative
screen. Then
click
‘next’. You
will
get
the
second
screen
called
the
Form
Selection
screen
as
shown
in
the
figure
6. Select
the
form
and
click
‘next’. You
will
get
the
options
screen
as
shown
in
the
figure
7. Click
the
two
options,
‘comment
out
invalid
code’
and
convert
to
ActiveX
EXE’.
Then
click
next. You
will
get
the
finish
screen
as
shown
in
the
figure
8.
When
you
click
finish
you
will
get
the
message
box
that
the
document
is
created. Now
select
‘make
gradproj.exe.
from
the
file
menu. This
will
create
the
document
file
docform1.vbd.
You
will
notice
that
the
document
project
does
not
accept
the
End
command
given
in
the
exit
button.
You
can
remove
that
before
you
start
the
wizard. Open
the
Internet
Explorer
window
and
view
the
docform1.vbd
file. You
will
find
the
gradient
project
working
in
this
screen
as
shown
in
the
figure
9.

Figure
5

Figure
6
Figure
7

Figure
8

Figure
9
   |