using ActiveX control in asp.net with c# in web page

S

santosh jha

Hi,
I have got a active x control from other party (hermitech laboratory) for
witing equation and it converts the equation in MATHML .

Problem is that i donot know how to integrate it in .aspx page and how to
retrive the MATHML generated by it to store it in sql database .As on that
site there is nothing about its use.

give me some example or link

Is their any editor provided my microsoft for writing equation and which
generates mathml . as like in ms-word but it doesnot produce MATHML
plz ...
thanks
 
A

Alvin Bruney [ASP.NET MVP]

First register the ActiveX object on the client where it will run, then
embed the object in the aspx page using the object tag
<object id='myID' CLSID="id goes here"></object>. The activeX object will
expose a programming interface to allow data manipulation. You have a
reference id that you can use to call methods on the object.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
 
S

santosh jha

Thanks for ur reply.
sir, actualy I am new about using Active X control .so what I have done is
like this...

Firstly downloaded the ActiveX control from www.mmlsoft.com named formulator
activeX and installed it.
after that in asp.net project I added the COM component by geting in Add
reference . by doing this it added two files in my BIN directory they are
1. Interop.FMLAXCLib.dll
2. stdole.dll

After this I donot no how and what to use, I have read many tutorials about
this but unable to understand . plz tell me the procedure of registaring it
and
how to get the Id and CLSID .

plz it is urgent......

Alvin Bruney said:
First register the ActiveX object on the client where it will run, then
embed the object in the aspx page using the object tag
<object id='myID' CLSID="id goes here"></object>. The activeX object will
expose a programming interface to allow data manipulation. You have a
reference id that you can use to call methods on the object.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


santosh jha said:
Hi,
I have got a active x control from other party (hermitech laboratory) for
witing equation and it converts the equation in MATHML .

Problem is that i donot know how to integrate it in .aspx page and how to
retrive the MATHML generated by it to store it in sql database .As on that
site there is nothing about its use.

give me some example or link

Is their any editor provided my microsoft for writing equation and which
generates mathml . as like in ms-word but it doesnot produce MATHML
plz ...
thanks
 
A

Alvin Bruney [ASP.NET MVP]

copy this into the body of your html page
<OBJECT
classid="clsid:737B43F8-5A87-4014-8C6D-C7DB1A99360C"
type="application/x-oleobject" name="formulator-obj" width="700"
height="300"
id="formulator"
remove the references you added previously, these references are for code
running on the server. This object runs on the client - BIG difference. Run
the page.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


santosh jha said:
Thanks for ur reply.
sir, actualy I am new about using Active X control .so what I have done is
like this...

Firstly downloaded the ActiveX control from www.mmlsoft.com named
formulator
activeX and installed it.
after that in asp.net project I added the COM component by geting in Add
reference . by doing this it added two files in my BIN directory they are
1. Interop.FMLAXCLib.dll
2. stdole.dll

After this I donot no how and what to use, I have read many tutorials
about
this but unable to understand . plz tell me the procedure of registaring
it
and
how to get the Id and CLSID .

plz it is urgent......

Alvin Bruney said:
First register the ActiveX object on the client where it will run, then
embed the object in the aspx page using the object tag
<object id='myID' CLSID="id goes here"></object>. The activeX object will
expose a programming interface to allow data manipulation. You have a
reference id that you can use to call methods on the object.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


santosh jha said:
Hi,
I have got a active x control from other party (hermitech laboratory)
for
witing equation and it converts the equation in MATHML .

Problem is that i donot know how to integrate it in .aspx page and how
to
retrive the MATHML generated by it to store it in sql database .As on
that
site there is nothing about its use.

give me some example or link

Is their any editor provided my microsoft for writing equation and
which
generates mathml . as like in ms-word but it doesnot produce MATHML
plz ...
thanks
 
S

santosh jha

sir, sorry .........
I have done what u have asked ...It only draw a rectangle shape on the form
.....and nothing appears.
Now i want to use it in coding like get the data (MathML ) from it and store
it in SQL database...

firstly the formulator should appear in the web form........

plz sir give me some link and some example where i can understand the whole
and last question from where u have got the ID......
Alvin Bruney said:
copy this into the body of your html page
<OBJECT
classid="clsid:737B43F8-5A87-4014-8C6D-C7DB1A99360C"
type="application/x-oleobject" name="formulator-obj" width="700"
height="300"
id="formulator"
remove the references you added previously, these references are for code
running on the server. This object runs on the client - BIG difference. Run
the page.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


santosh jha said:
Thanks for ur reply.
sir, actualy I am new about using Active X control .so what I have done is
like this...

Firstly downloaded the ActiveX control from www.mmlsoft.com named
formulator
activeX and installed it.
after that in asp.net project I added the COM component by geting in Add
reference . by doing this it added two files in my BIN directory they are
1. Interop.FMLAXCLib.dll
2. stdole.dll

After this I donot no how and what to use, I have read many tutorials
about
this but unable to understand . plz tell me the procedure of registaring
it
and
how to get the Id and CLSID .

plz it is urgent......

Alvin Bruney said:
First register the ActiveX object on the client where it will run, then
embed the object in the aspx page using the object tag
<object id='myID' CLSID="id goes here"></object>. The activeX object will
expose a programming interface to allow data manipulation. You have a
reference id that you can use to call methods on the object.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


Hi,
I have got a active x control from other party (hermitech laboratory)
for
witing equation and it converts the equation in MATHML .

Problem is that i donot know how to integrate it in .aspx page and how
to
retrive the MATHML generated by it to store it in sql database .As on
that
site there is nothing about its use.

give me some example or link

Is their any editor provided my microsoft for writing equation and
which
generates mathml . as like in ms-word but it doesnot produce MATHML
plz ...
thanks
 
A

Alvin Bruney [ASP.NET MVP]

If you bought or downloaded the product, you should contact product support
for implementation examples. This newsgroup won't supply that because it is
a 3rd party control. I simply tried to help you.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


santosh jha said:
sir, sorry .........
I have done what u have asked ...It only draw a rectangle shape on the
form
....and nothing appears.
Now i want to use it in coding like get the data (MathML ) from it and
store
it in SQL database...

firstly the formulator should appear in the web form........

plz sir give me some link and some example where i can understand the
whole
and last question from where u have got the ID......
Alvin Bruney said:
copy this into the body of your html page
<OBJECT
classid="clsid:737B43F8-5A87-4014-8C6D-C7DB1A99360C"
type="application/x-oleobject" name="formulator-obj" width="700"
height="300"
id="formulator"
remove the references you added previously, these references are for code
running on the server. This object runs on the client - BIG difference.
Run
the page.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


santosh jha said:
Thanks for ur reply.
sir, actualy I am new about using Active X control .so what I have done
is
like this...

Firstly downloaded the ActiveX control from www.mmlsoft.com named
formulator
activeX and installed it.
after that in asp.net project I added the COM component by geting in
Add
reference . by doing this it added two files in my BIN directory they
are
1. Interop.FMLAXCLib.dll
2. stdole.dll

After this I donot no how and what to use, I have read many tutorials
about
this but unable to understand . plz tell me the procedure of
registaring
it
and
how to get the Id and CLSID .

plz it is urgent......

:

First register the ActiveX object on the client where it will run,
then
embed the object in the aspx page using the object tag
<object id='myID' CLSID="id goes here"></object>. The activeX object
will
expose a programming interface to allow data manipulation. You have a
reference id that you can use to call methods on the object.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


Hi,
I have got a active x control from other party (hermitech
laboratory)
for
witing equation and it converts the equation in MATHML .

Problem is that i donot know how to integrate it in .aspx page and
how
to
retrive the MATHML generated by it to store it in sql database .As
on
that
site there is nothing about its use.

give me some example or link

Is their any editor provided my microsoft for writing equation and
which
generates mathml . as like in ms-word but it doesnot produce MATHML
plz ...
thanks
 
S

santosh jha

thanks for ur help sir.......
last question ........
Is it possible to use user control genereted in windows program in C#.....
I mean If Idevelop some ActiveX control in C# or VB then is it possible to
use it on web....

Main thing is that I donot know much about activex control and it
implementation plz give some link of tutorial to understand it.......

thanks


Alvin Bruney said:
If you bought or downloaded the product, you should contact product support
for implementation examples. This newsgroup won't supply that because it is
a 3rd party control. I simply tried to help you.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


santosh jha said:
sir, sorry .........
I have done what u have asked ...It only draw a rectangle shape on the
form
....and nothing appears.
Now i want to use it in coding like get the data (MathML ) from it and
store
it in SQL database...

firstly the formulator should appear in the web form........

plz sir give me some link and some example where i can understand the
whole
and last question from where u have got the ID......
Alvin Bruney said:
copy this into the body of your html page
<OBJECT
classid="clsid:737B43F8-5A87-4014-8C6D-C7DB1A99360C"
type="application/x-oleobject" name="formulator-obj" width="700"
height="300"
id="formulator"


remove the references you added previously, these references are for code
running on the server. This object runs on the client - BIG difference.
Run
the page.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


Thanks for ur reply.
sir, actualy I am new about using Active X control .so what I have done
is
like this...

Firstly downloaded the ActiveX control from www.mmlsoft.com named
formulator
activeX and installed it.
after that in asp.net project I added the COM component by geting in
Add
reference . by doing this it added two files in my BIN directory they
are
1. Interop.FMLAXCLib.dll
2. stdole.dll

After this I donot no how and what to use, I have read many tutorials
about
this but unable to understand . plz tell me the procedure of
registaring
it
and
how to get the Id and CLSID .

plz it is urgent......

:

First register the ActiveX object on the client where it will run,
then
embed the object in the aspx page using the object tag
<object id='myID' CLSID="id goes here"></object>. The activeX object
will
expose a programming interface to allow data manipulation. You have a
reference id that you can use to call methods on the object.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


Hi,
I have got a active x control from other party (hermitech
laboratory)
for
witing equation and it converts the equation in MATHML .

Problem is that i donot know how to integrate it in .aspx page and
how
to
retrive the MATHML generated by it to store it in sql database .As
on
that
site there is nothing about its use.

give me some example or link

Is their any editor provided my microsoft for writing equation and
which
generates mathml . as like in ms-word but it doesnot produce MATHML
plz ...
thanks
 
A

Alvin Bruney [ASP.NET MVP]

Technically, it's not possible to create an activex control in C#. However,
you can create a user control and host it in a browser. The browser will
render it as an ActiveX control. Here is a link:
http://support.microsoft.com/kb/555687 to get you started. You'll need to
learn about permissions because these controls run in the browser sand box.
Look up code access security on MSDN.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


santosh jha said:
thanks for ur help sir.......
last question ........
Is it possible to use user control genereted in windows program in C#.....
I mean If Idevelop some ActiveX control in C# or VB then is it possible
to
use it on web....

Main thing is that I donot know much about activex control and it
implementation plz give some link of tutorial to understand it.......

thanks


Alvin Bruney said:
If you bought or downloaded the product, you should contact product
support
for implementation examples. This newsgroup won't supply that because it
is
a 3rd party control. I simply tried to help you.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


santosh jha said:
sir, sorry .........
I have done what u have asked ...It only draw a rectangle shape on the
form
....and nothing appears.
Now i want to use it in coding like get the data (MathML ) from it and
store
it in SQL database...

firstly the formulator should appear in the web form........

plz sir give me some link and some example where i can understand the
whole
and last question from where u have got the ID......
:

copy this into the body of your html page
<OBJECT
classid="clsid:737B43F8-5A87-4014-8C6D-C7DB1A99360C"
type="application/x-oleobject" name="formulator-obj" width="700"
height="300"
id="formulator"


remove the references you added previously, these references are for
code
running on the server. This object runs on the client - BIG
difference.
Run
the page.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


Thanks for ur reply.
sir, actualy I am new about using Active X control .so what I have
done
is
like this...

Firstly downloaded the ActiveX control from www.mmlsoft.com named
formulator
activeX and installed it.
after that in asp.net project I added the COM component by geting in
Add
reference . by doing this it added two files in my BIN directory
they
are
1. Interop.FMLAXCLib.dll
2. stdole.dll

After this I donot no how and what to use, I have read many
tutorials
about
this but unable to understand . plz tell me the procedure of
registaring
it
and
how to get the Id and CLSID .

plz it is urgent......

:

First register the ActiveX object on the client where it will run,
then
embed the object in the aspx page using the object tag
<object id='myID' CLSID="id goes here"></object>. The activeX
object
will
expose a programming interface to allow data manipulation. You have
a
reference id that you can use to call methods on the object.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


message
Hi,
I have got a active x control from other party (hermitech
laboratory)
for
witing equation and it converts the equation in MATHML .

Problem is that i donot know how to integrate it in .aspx page
and
how
to
retrive the MATHML generated by it to store it in sql database
.As
on
that
site there is nothing about its use.

give me some example or link

Is their any editor provided my microsoft for writing equation
and
which
generates mathml . as like in ms-word but it doesnot produce
MATHML
plz ...
thanks
 
S

santosh jha

Hi,
Sir ...I am still getting problem .
as the object tag is not working in asp.net in my sence . the same code is
running in .html file but it does not work in .aspx is their any
configuration needed to execute it.............
the code is

<%@ Page Language="C#" AutoEventWireup="false" EnableEventValidation
="false" CodeFile="activex_page.aspx.cs" Inherits="activex_page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>

<script language="JavaScript">
function onClickOk()
{
var str = formulator.GetMathMLStr();
alert("str");
}

</script>
</head>
<body>
<form id="form1" runat="server">

<object
classid="clsid:737B43F8-5A87-4014-8C6D-C7DB1A99360C"
type="application/x-oleobject" name="formulator-obj" width="700"
height="300"
id="formulator">
</object>

<br/>
<br/>

<a href="#" onClick="onClickOk();">Post math expression</a>



</form>
</body>
</html>
if I only change the file extention to .html then the above code works...
I am unable to trace the need or error.
Alvin Bruney said:
Technically, it's not possible to create an activex control in C#. However,
you can create a user control and host it in a browser. The browser will
render it as an ActiveX control. Here is a link:
http://support.microsoft.com/kb/555687 to get you started. You'll need to
learn about permissions because these controls run in the browser sand box.
Look up code access security on MSDN.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


santosh jha said:
thanks for ur help sir.......
last question ........
Is it possible to use user control genereted in windows program in C#.....
I mean If Idevelop some ActiveX control in C# or VB then is it possible
to
use it on web....

Main thing is that I donot know much about activex control and it
implementation plz give some link of tutorial to understand it.......

thanks


Alvin Bruney said:
If you bought or downloaded the product, you should contact product
support
for implementation examples. This newsgroup won't supply that because it
is
a 3rd party control. I simply tried to help you.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


sir, sorry .........
I have done what u have asked ...It only draw a rectangle shape on the
form
....and nothing appears.
Now i want to use it in coding like get the data (MathML ) from it and
store
it in SQL database...

firstly the formulator should appear in the web form........

plz sir give me some link and some example where i can understand the
whole
and last question from where u have got the ID......
:

copy this into the body of your html page
<OBJECT
classid="clsid:737B43F8-5A87-4014-8C6D-C7DB1A99360C"
type="application/x-oleobject" name="formulator-obj" width="700"
height="300"
id="formulator"


remove the references you added previously, these references are for
code
running on the server. This object runs on the client - BIG
difference.
Run
the page.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


Thanks for ur reply.
sir, actualy I am new about using Active X control .so what I have
done
is
like this...

Firstly downloaded the ActiveX control from www.mmlsoft.com named
formulator
activeX and installed it.
after that in asp.net project I added the COM component by geting in
Add
reference . by doing this it added two files in my BIN directory
they
are
1. Interop.FMLAXCLib.dll
2. stdole.dll

After this I donot no how and what to use, I have read many
tutorials
about
this but unable to understand . plz tell me the procedure of
registaring
it
and
how to get the Id and CLSID .

plz it is urgent......

:

First register the ActiveX object on the client where it will run,
then
embed the object in the aspx page using the object tag
<object id='myID' CLSID="id goes here"></object>. The activeX
object
will
expose a programming interface to allow data manipulation. You have
a
reference id that you can use to call methods on the object.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


message
Hi,
I have got a active x control from other party (hermitech
laboratory)
for
witing equation and it converts the equation in MATHML .

Problem is that i donot know how to integrate it in .aspx page
and
how
to
retrive the MATHML generated by it to store it in sql database
.As
on
that
site there is nothing about its use.

give me some example or link

Is their any editor provided my microsoft for writing equation
and
which
generates mathml . as like in ms-word but it doesnot produce
MATHML
plz ...
thanks
 
A

Alvin Bruney [ASP.NET MVP]

I can't help you with those issues, you need to contact the vendor or person
from whom you got the control.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


santosh jha said:
Hi,
Sir ...I am still getting problem .
as the object tag is not working in asp.net in my sence . the same code is
running in .html file but it does not work in .aspx is their any
configuration needed to execute it.............
the code is

<%@ Page Language="C#" AutoEventWireup="false" EnableEventValidation
="false" CodeFile="activex_page.aspx.cs" Inherits="activex_page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>

<script language="JavaScript">
function onClickOk()
{
var str = formulator.GetMathMLStr();
alert("str");
}

</script>
</head>
<body>
<form id="form1" runat="server">

<object
classid="clsid:737B43F8-5A87-4014-8C6D-C7DB1A99360C"
type="application/x-oleobject" name="formulator-obj" width="700"
height="300"
id="formulator">
</object>

<br/>
<br/>

<a href="#" onClick="onClickOk();">Post math expression</a>



</form>
</body>
</html>
if I only change the file extention to .html then the above code works...
I am unable to trace the need or error.
Alvin Bruney said:
Technically, it's not possible to create an activex control in C#.
However,
you can create a user control and host it in a browser. The browser will
render it as an ActiveX control. Here is a link:
http://support.microsoft.com/kb/555687 to get you started. You'll need to
learn about permissions because these controls run in the browser sand
box.
Look up code access security on MSDN.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


santosh jha said:
thanks for ur help sir.......
last question ........
Is it possible to use user control genereted in windows program in
C#.....
I mean If Idevelop some ActiveX control in C# or VB then is it
possible
to
use it on web....

Main thing is that I donot know much about activex control and it
implementation plz give some link of tutorial to understand it.......

thanks


:

If you bought or downloaded the product, you should contact product
support
for implementation examples. This newsgroup won't supply that because
it
is
a 3rd party control. I simply tried to help you.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


sir, sorry .........
I have done what u have asked ...It only draw a rectangle shape on
the
form
....and nothing appears.
Now i want to use it in coding like get the data (MathML ) from it
and
store
it in SQL database...

firstly the formulator should appear in the web form........

plz sir give me some link and some example where i can understand
the
whole
and last question from where u have got the ID......
:

copy this into the body of your html page
<OBJECT
classid="clsid:737B43F8-5A87-4014-8C6D-C7DB1A99360C"
type="application/x-oleobject" name="formulator-obj"
width="700"
height="300"
id="formulator"


remove the references you added previously, these references are
for
code
running on the server. This object runs on the client - BIG
difference.
Run
the page.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


message
Thanks for ur reply.
sir, actualy I am new about using Active X control .so what I
have
done
is
like this...

Firstly downloaded the ActiveX control from www.mmlsoft.com named
formulator
activeX and installed it.
after that in asp.net project I added the COM component by geting
in
Add
reference . by doing this it added two files in my BIN directory
they
are
1. Interop.FMLAXCLib.dll
2. stdole.dll

After this I donot no how and what to use, I have read many
tutorials
about
this but unable to understand . plz tell me the procedure of
registaring
it
and
how to get the Id and CLSID .

plz it is urgent......

:

First register the ActiveX object on the client where it will
run,
then
embed the object in the aspx page using the object tag
<object id='myID' CLSID="id goes here"></object>. The activeX
object
will
expose a programming interface to allow data manipulation. You
have
a
reference id that you can use to call methods on the object.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


message
Hi,
I have got a active x control from other party (hermitech
laboratory)
for
witing equation and it converts the equation in MATHML .

Problem is that i donot know how to integrate it in .aspx page
and
how
to
retrive the MATHML generated by it to store it in sql database
.As
on
that
site there is nothing about its use.

give me some example or link

Is their any editor provided my microsoft for writing equation
and
which
generates mathml . as like in ms-word but it doesnot produce
MATHML
plz ...
thanks
 
S

santosh jha

Thanks for ur reply.
sir, I only want know that is their any other way to implement activex in
asp.net.
as the above posted works in .HTML file but it does not work in ASP.net .
and Is their any syntax error .plz check the code for any error......



thanks

Alvin Bruney said:
I can't help you with those issues, you need to contact the vendor or person
from whom you got the control.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


santosh jha said:
Hi,
Sir ...I am still getting problem .
as the object tag is not working in asp.net in my sence . the same code is
running in .html file but it does not work in .aspx is their any
configuration needed to execute it.............
the code is

<%@ Page Language="C#" AutoEventWireup="false" EnableEventValidation
="false" CodeFile="activex_page.aspx.cs" Inherits="activex_page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>

<script language="JavaScript">
function onClickOk()
{
var str = formulator.GetMathMLStr();
alert("str");
}

</script>
</head>
<body>
<form id="form1" runat="server">

<object
classid="clsid:737B43F8-5A87-4014-8C6D-C7DB1A99360C"
type="application/x-oleobject" name="formulator-obj" width="700"
height="300"
id="formulator">
</object>

<br/>
<br/>

<a href="#" onClick="onClickOk();">Post math expression</a>



</form>
</body>
</html>
if I only change the file extention to .html then the above code works...
I am unable to trace the need or error.
Alvin Bruney said:
Technically, it's not possible to create an activex control in C#.
However,
you can create a user control and host it in a browser. The browser will
render it as an ActiveX control. Here is a link:
http://support.microsoft.com/kb/555687 to get you started. You'll need to
learn about permissions because these controls run in the browser sand
box.
Look up code access security on MSDN.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


thanks for ur help sir.......
last question ........
Is it possible to use user control genereted in windows program in
C#.....
I mean If Idevelop some ActiveX control in C# or VB then is it
possible
to
use it on web....

Main thing is that I donot know much about activex control and it
implementation plz give some link of tutorial to understand it.......

thanks


:

If you bought or downloaded the product, you should contact product
support
for implementation examples. This newsgroup won't supply that because
it
is
a 3rd party control. I simply tried to help you.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


sir, sorry .........
I have done what u have asked ...It only draw a rectangle shape on
the
form
....and nothing appears.
Now i want to use it in coding like get the data (MathML ) from it
and
store
it in SQL database...

firstly the formulator should appear in the web form........

plz sir give me some link and some example where i can understand
the
whole
and last question from where u have got the ID......
:

copy this into the body of your html page
<OBJECT
classid="clsid:737B43F8-5A87-4014-8C6D-C7DB1A99360C"
type="application/x-oleobject" name="formulator-obj"
width="700"
height="300"
id="formulator"


remove the references you added previously, these references are
for
code
running on the server. This object runs on the client - BIG
difference.
Run
the page.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


message
Thanks for ur reply.
sir, actualy I am new about using Active X control .so what I
have
done
is
like this...

Firstly downloaded the ActiveX control from www.mmlsoft.com named
formulator
activeX and installed it.
after that in asp.net project I added the COM component by geting
in
Add
reference . by doing this it added two files in my BIN directory
they
are
1. Interop.FMLAXCLib.dll
2. stdole.dll

After this I donot no how and what to use, I have read many
tutorials
about
this but unable to understand . plz tell me the procedure of
registaring
it
and
how to get the Id and CLSID .

plz it is urgent......

:

First register the ActiveX object on the client where it will
run,
then
embed the object in the aspx page using the object tag
<object id='myID' CLSID="id goes here"></object>. The activeX
object
will
expose a programming interface to allow data manipulation. You
have
a
reference id that you can use to call methods on the object.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99


message
Hi,
I have got a active x control from other party (hermitech
laboratory)
for
witing equation and it converts the equation in MATHML .

Problem is that i donot know how to integrate it in .aspx page
and
how
to
retrive the MATHML generated by it to store it in sql database
.As
on
that
site there is nothing about its use.

give me some example or link

Is their any editor provided my microsoft for writing equation
and
which
generates mathml . as like in ms-word but it doesnot produce
MATHML
plz ...
thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top