473,699 Members | 2,873 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Extending the mysqli class

Daz
Hi everyone.

I am trying to create an extension of the mysqli class within PHP, and
I am finding it quite difficult. I am fairly new to PHP classes, and
decided to give them a go. Here's what I have to far:

<?php
class sql_db extends mysqli
{
var $connection = false;
function sql_db($usernam e, $password, $database="",
$server="localh ost")
{
$this->connection = new mysqli($server, $username,
$password, $database);
if (mysqli_connect _errno()) {
printf("Connect failed: %s\n",
mysqli_connect_ error());
exit();
}
return = $this->connection;
}
}
?>

All I am trying to achieve for now is for a simple error to be printed
if the connection to the database fails. Rather than have error
checking for each within each PHP file, I would just like to have it
all done systematically. I would also like to add a few of my own
methods, such as having the object pass back a PHP array, rather than
a MySQL array. I know I can do this with a separate function, but
really I am doing this for the learning experience more than anything.

At the present time, this works:

$db =& new sql_db("myUsern ame", "myPass", "someDB");

But as soon as I try to query a table, like so:

$res = $db->query("SELEC T * FROM `some_table`;") ;

I get:

Warning: mysqli::query() : Couldn't fetch sql_db in - on line 21

Evidently I am doing something wrong, and I would really appreciate
any pointers. I suspect that I can't actually do what I want to do,
although I can't see why not. In any case, I am sure it's possible,
but I am going about it completely wrong.

Thanks in advance.

Daz.

Feb 25 '07 #1
21 7271
Daz wrote:
Hi everyone.

I am trying to create an extension of the mysqli class within PHP, and
I am finding it quite difficult. I am fairly new to PHP classes, and
decided to give them a go. Here's what I have to far:

<?php
class sql_db extends mysqli
{
var $connection = false;
function sql_db($usernam e, $password, $database="",
$server="localh ost")
{
$this->connection = new mysqli($server, $username,
$password, $database);
if (mysqli_connect _errno()) {
printf("Connect failed: %s\n",
mysqli_connect_ error());
exit();
}
return = $this->connection;
}
}
?>

All I am trying to achieve for now is for a simple error to be printed
if the connection to the database fails. Rather than have error
checking for each within each PHP file, I would just like to have it
all done systematically. I would also like to add a few of my own
methods, such as having the object pass back a PHP array, rather than
a MySQL array. I know I can do this with a separate function, but
really I am doing this for the learning experience more than anything.

At the present time, this works:

$db =& new sql_db("myUsern ame", "myPass", "someDB");

But as soon as I try to query a table, like so:

$res = $db->query("SELEC T * FROM `some_table`;") ;

I get:

Warning: mysqli::query() : Couldn't fetch sql_db in - on line 21

Evidently I am doing something wrong, and I would really appreciate
any pointers. I suspect that I can't actually do what I want to do,
although I can't see why not. In any case, I am sure it's possible,
but I am going about it completely wrong.

Thanks in advance.

Daz.
Daz,

If you're going to extend a class, you don't use:

$this->connection = new mysqli($server, $username,
$password, $database);

You already have an instance of mysqli via inheritance; this would be
creating another one.

Rather, you should be using

parent::mysqli( $server, $username, $password, $database);

(Assuming PHP4 from your previous post).

You also don't need to keep the $connection - mysqli will maintain that
info..

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Feb 25 '07 #2
Daz
On Feb 25, 3:41 pm, "Daz" <cutenfu...@gma il.comwrote:
Hi everyone.

I am trying to create an extension of the mysqli class within PHP, and
I am finding it quite difficult. I am fairly new to PHP classes, and
decided to give them a go. Here's what I have to far:

<?php
class sql_db extends mysqli
{
var $connection = false;
function sql_db($usernam e, $password, $database="",
$server="localh ost")
{
$this->connection = new mysqli($server, $username,
$password, $database);
if (mysqli_connect _errno()) {
printf("Connect failed: %s\n",
mysqli_connect_ error());
exit();
}
return = $this->connection;
}
}
?>

All I am trying to achieve for now is for a simple error to be printed
if the connection to the database fails. Rather than have error
checking for each within each PHP file, I would just like to have it
all done systematically. I would also like to add a few of my own
methods, such as having the object pass back a PHP array, rather than
a MySQL array. I know I can do this with a separate function, but
really I am doing this for the learning experience more than anything.

At the present time, this works:

$db =& new sql_db("myUsern ame", "myPass", "someDB");

But as soon as I try to query a table, like so:

$res = $db->query("SELEC T * FROM `some_table`;") ;

I get:

Warning: mysqli::query() : Couldn't fetch sql_db in - on line 21

Evidently I am doing something wrong, and I would really appreciate
any pointers. I suspect that I can't actually do what I want to do,
although I can't see why not. In any case, I am sure it's possible,
but I am going about it completely wrong.

Thanks in advance.

Daz.

OK, I've done some more thinking, and I think that what I am trying to
do, would involve overriding the constructor of the mysqli class,
which I guess wouldn't be wise, and might not even be possible.

Is there any way to override the contructor and find out what the
constructor code is? I guess that it wouldn't be a PHP class as such,
but more of a hybrid, but I am uncertain.

I can see that what I am doing is correct for adding extra functions,
but I would appreciate it if anyone can help me figure out the best
way to do some error checking when the connection is opened.

I would also appreciate any input on overriding the default methods,
i.e whether it's possible or not, or whether it's ill advised, or if I
can actually use the original constructor and carefully modify it.

I think the initial error checking might require an external function
which instantiates the class, and does the checking, then returns the
mysqli object if all went well, or returns false if it didn't.

Feb 25 '07 #3
Daz
On Feb 25, 3:55 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
Daz wrote:
Hi everyone.
I am trying to create an extension of the mysqli class within PHP, and
I am finding it quite difficult. I am fairly new to PHP classes, and
decided to give them a go. Here's what I have to far:
<?php
class sql_db extends mysqli
{
var $connection = false;
function sql_db($usernam e, $password, $database="",
$server="localh ost")
{
$this->connection = new mysqli($server, $username,
$password, $database);
if (mysqli_connect _errno()) {
printf("Connect failed: %s\n",
mysqli_connect_ error());
exit();
}
return = $this->connection;
}
}
?>
All I am trying to achieve for now is for a simple error to be printed
if the connection to the database fails. Rather than have error
checking for each within each PHP file, I would just like to have it
all done systematically. I would also like to add a few of my own
methods, such as having the object pass back a PHP array, rather than
a MySQL array. I know I can do this with a separate function, but
really I am doing this for the learning experience more than anything.
At the present time, this works:
$db =& new sql_db("myUsern ame", "myPass", "someDB");
But as soon as I try to query a table, like so:
$res = $db->query("SELEC T * FROM `some_table`;") ;
I get:
Warning: mysqli::query() : Couldn't fetch sql_db in - on line 21
Evidently I am doing something wrong, and I would really appreciate
any pointers. I suspect that I can't actually do what I want to do,
although I can't see why not. In any case, I am sure it's possible,
but I am going about it completely wrong.
Thanks in advance.
Daz.

Daz,

If you're going to extend a class, you don't use:

$this->connection = new mysqli($server, $username,
$password, $database);

You already have an instance of mysqli via inheritance; this would be
creating another one.

Rather, you should be using

parent::mysqli( $server, $username, $password, $database);

(Assuming PHP4 from your previous post).

You also don't need to keep the $connection - mysqli will maintain that
info..

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attgl obal.net
=============== ===

Thanks for that Jerry. That gives me something to go on. I am using
PHP5, as I believe PHP4 doesn't support the mysqli object (but I am
most likely wrong).

Thanks again for your assistance.

Daz.

Feb 25 '07 #4
Daz wrote:
On Feb 25, 3:55 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
>Daz wrote:
>>Hi everyone.
I am trying to create an extension of the mysqli class within PHP, and
I am finding it quite difficult. I am fairly new to PHP classes, and
decided to give them a go. Here's what I have to far:
<?php
class sql_db extends mysqli
{
var $connection = false;
function sql_db($usernam e, $password, $database="",
$server="loca lhost")
{
$this->connection = new mysqli($server, $username,
$password, $database);
if (mysqli_connect _errno()) {
printf("Connect failed: %s\n",
mysqli_connec t_error());
exit();
}
return = $this->connection;
}
}
?>
All I am trying to achieve for now is for a simple error to be printed
if the connection to the database fails. Rather than have error
checking for each within each PHP file, I would just like to have it
all done systematically. I would also like to add a few of my own
methods, such as having the object pass back a PHP array, rather than
a MySQL array. I know I can do this with a separate function, but
really I am doing this for the learning experience more than anything.
At the present time, this works:
$db =& new sql_db("myUsern ame", "myPass", "someDB");
But as soon as I try to query a table, like so:
$res = $db->query("SELEC T * FROM `some_table`;") ;
I get:
Warning: mysqli::query() : Couldn't fetch sql_db in - on line 21
Evidently I am doing something wrong, and I would really appreciate
any pointers. I suspect that I can't actually do what I want to do,
although I can't see why not. In any case, I am sure it's possible,
but I am going about it completely wrong.
Thanks in advance.
Daz.
Daz,

If you're going to extend a class, you don't use:

$this->connection = new mysqli($server, $username,
$password, $database);

You already have an instance of mysqli via inheritance; this would be
creating another one.

Rather, you should be using

parent::mysqli( $server, $username, $password, $database);

(Assuming PHP4 from your previous post).

You also don't need to keep the $connection - mysqli will maintain that
info..

--
============== ====
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attg lobal.net
============== ====


Thanks for that Jerry. That gives me something to go on. I am using
PHP5, as I believe PHP4 doesn't support the mysqli object (but I am
most likely wrong).

Thanks again for your assistance.

Daz.
Daz,

Actually, PHP4 does support the mysqli object, also.

But in PHP5 your constructors are named __construct, not the class name.
So you need to change the constructor name in your class, and call

parent::constru ct(...)

instead.
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Feb 25 '07 #5
Daz wrote:
On Feb 25, 3:41 pm, "Daz" <cutenfu...@gma il.comwrote:
>Hi everyone.

I am trying to create an extension of the mysqli class within PHP, and
I am finding it quite difficult. I am fairly new to PHP classes, and
decided to give them a go. Here's what I have to far:

<?php
class sql_db extends mysqli
{
var $connection = false;
function sql_db($usernam e, $password, $database="",
$server="local host")
{
$this->connection = new mysqli($server, $username,
$password, $database);
if (mysqli_connect _errno()) {
printf("Connect failed: %s\n",
mysqli_connect _error());
exit();
}
return = $this->connection;
}
}
?>

All I am trying to achieve for now is for a simple error to be printed
if the connection to the database fails. Rather than have error
checking for each within each PHP file, I would just like to have it
all done systematically. I would also like to add a few of my own
methods, such as having the object pass back a PHP array, rather than
a MySQL array. I know I can do this with a separate function, but
really I am doing this for the learning experience more than anything.

At the present time, this works:

$db =& new sql_db("myUsern ame", "myPass", "someDB");

But as soon as I try to query a table, like so:

$res = $db->query("SELEC T * FROM `some_table`;") ;

I get:

Warning: mysqli::query() : Couldn't fetch sql_db in - on line 21

Evidently I am doing something wrong, and I would really appreciate
any pointers. I suspect that I can't actually do what I want to do,
although I can't see why not. In any case, I am sure it's possible,
but I am going about it completely wrong.

Thanks in advance.

Daz.


OK, I've done some more thinking, and I think that what I am trying to
do, would involve overriding the constructor of the mysqli class,
which I guess wouldn't be wise, and might not even be possible.

Is there any way to override the contructor and find out what the
constructor code is? I guess that it wouldn't be a PHP class as such,
but more of a hybrid, but I am uncertain.

I can see that what I am doing is correct for adding extra functions,
but I would appreciate it if anyone can help me figure out the best
way to do some error checking when the connection is opened.

I would also appreciate any input on overriding the default methods,
i.e whether it's possible or not, or whether it's ill advised, or if I
can actually use the original constructor and carefully modify it.

I think the initial error checking might require an external function
which instantiates the class, and does the checking, then returns the
mysqli object if all went well, or returns false if it didn't.
Daz,

Overriding the constructor is quite common. But you need to ensure you
also call the parent class constructor.

As to seeing the code - it's like anything else in PHP. If it's a PHP
file, you can see the code. If, like with mysqli, it's a compiled
extension, you need to look at the source code for the extension.

If you want some error checking when you open the connection, see if the
connection is open after calling the mysqli constructor (see if
mysqli_connect_ error() is non-zero).

You don't need an external function - you just need to check for errors.
And if you don't want to keep checking the responses, check you
exception handling.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Feb 25 '07 #6
Daz
On Feb 25, 4:17 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
Daz wrote:
On Feb 25, 3:41 pm, "Daz" <cutenfu...@gma il.comwrote:
Hi everyone.
I am trying to create an extension of the mysqli class within PHP, and
I am finding it quite difficult. I am fairly new to PHP classes, and
decided to give them a go. Here's what I have to far:
<?php
class sql_db extends mysqli
{
var $connection = false;
function sql_db($usernam e, $password, $database="",
$server="localh ost")
{
$this->connection = new mysqli($server, $username,
$password, $database);
if (mysqli_connect _errno()) {
printf("Connect failed: %s\n",
mysqli_connect_ error());
exit();
}
return = $this->connection;
}
}
?>
All I am trying to achieve for now is for a simple error to be printed
if the connection to the database fails. Rather than have error
checking for each within each PHP file, I would just like to have it
all done systematically. I would also like to add a few of my own
methods, such as having the object pass back a PHP array, rather than
a MySQL array. I know I can do this with a separate function, but
really I am doing this for the learning experience more than anything.
At the present time, this works:
$db =& new sql_db("myUsern ame", "myPass", "someDB");
But as soon as I try to query a table, like so:
$res = $db->query("SELEC T * FROM `some_table`;") ;
I get:
Warning: mysqli::query() : Couldn't fetch sql_db in - on line 21
Evidently I am doing something wrong, and I would really appreciate
any pointers. I suspect that I can't actually do what I want to do,
although I can't see why not. In any case, I am sure it's possible,
but I am going about it completely wrong.
Thanks in advance.
Daz.
OK, I've done some more thinking, and I think that what I am trying to
do, would involve overriding the constructor of the mysqli class,
which I guess wouldn't be wise, and might not even be possible.
Is there any way to override the contructor and find out what the
constructor code is? I guess that it wouldn't be a PHP class as such,
but more of a hybrid, but I am uncertain.
I can see that what I am doing is correct for adding extra functions,
but I would appreciate it if anyone can help me figure out the best
way to do some error checking when the connection is opened.
I would also appreciate any input on overriding the default methods,
i.e whether it's possible or not, or whether it's ill advised, or if I
can actually use the original constructor and carefully modify it.
I think the initial error checking might require an external function
which instantiates the class, and does the checking, then returns the
mysqli object if all went well, or returns false if it didn't.

Daz,

Overriding the constructor is quite common. But you need to ensure you
also call the parent class constructor.

As to seeing the code - it's like anything else in PHP. If it's a PHP
file, you can see the code. If, like with mysqli, it's a compiled
extension, you need to look at the source code for the extension.

If you want some error checking when you open the connection, see if the
connection is open after calling the mysqli constructor (see if
mysqli_connect_ error() is non-zero).

You don't need an external function - you just need to check for errors.
And if you don't want to keep checking the responses, check you
exception handling.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attgl obal.net
=============== ===

Thanks for that Jerry. You're a star! :)

Feb 25 '07 #7
Actually, PHP4 does support the mysqli object, also.

But in PHP5 your constructors are named __construct, not the class name.
So you need to change the constructor name in your class, and call

parent::constru ct(...)
Just a correction of Jerry's post. As of php 5 the __constructor method was
made available BUT the old constructor name is still useable.

The class you are actually using (mysqli) does in fact use a contructor
called mysqli as the following code snippet will demonstrate if you run it:-

<?php
function output_methods( $obj)
{
$methods = get_class_metho ds($obj);
foreach ($methods as $method)
{
echo "function $method()\n";
}
}

output_methods( "mysqli");
?>

Feb 25 '07 #8
Actually, PHP4 does support the mysqli object, also.
>
But in PHP5 your constructors are named __construct, not the class name.
So you need to change the constructor name in your class, and call

parent::constru ct(...)
Also just thought of another clarification. If you do not declare a
constructor for a class that extends another class, the parent constructor
will be called. for example the following code snippet will output "parent
constructor and the input was THIS TEXT":-

<?php
class c1
{
function __construct($in put)
{
echo "parent constructor and the input was ".$input;
}
}
class c2 extends c1
{
}
$c = new c2('THIS TEXT');
?>
Feb 25 '07 #9
Daz
On Feb 25, 5:15 pm, "peter" <sub...@flexiwe bhost.comwrote:
Actually, PHP4 does support the mysqli object, also.
But in PHP5 your constructors are named __construct, not the class name.
So you need to change the constructor name in your class, and call
parent::constru ct(...)

Just a correction of Jerry's post. As of php 5 the __constructor method was
made available BUT the old constructor name is still useable.

The class you are actually using (mysqli) does in fact use a contructor
called mysqli as the following code snippet will demonstrate if you run it:-

<?php
function output_methods( $obj)
{
$methods = get_class_metho ds($obj);
foreach ($methods as $method)
{
echo "function $method()\n";
}

}

output_methods( "mysqli");
?>

Excellent! Just what I needed :)

I am wondering why constructors are different in PHP5. Surely anyone
coding portable scripts, would just use the PHP4 constructor
technique, as there's no guarantee that the server it needs to run on
is running PHP5. Some people have no control over what version of PHP
is installed if they are simply paying for a basic hosting account.
Fortunately for me, I have the choice between 4 and 5, but others
won't necessarilly be quite so fortunate.

Thanks for your help Peter. That's sure going to save me digging
through source code and scratching my head to to point of baldness.

Best wishes.

Daz.

Feb 25 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2056
by: Hayden Kirk | last post by:
Can anyone tell me out to make a new mysqli class. Im going $var = new mysql(); I get an error unknown class, php 5.0.3 Thanks
1
3811
by: Tom D | last post by:
I'm rewriting a database interface that our company currently has. Currently it's using the Pear::DB interface, but we found that that was introducing a bit too much overhead. I'm rewriting the interface to use mysqli. Most of what the interface does is to simplify getting results in the form of arrays (ordered and associative). Most of the code using the interface used sql queries with placeholders and parameters. For that reason I'd...
12
4744
by: davids58 | last post by:
trying to figure out how to use a mysql database with PHP. I ran the following code: <?php // defines database connection data define('DB_HOST', 'localhost'); define('DB_USER', 'ajaxuser'); define('DB_PASSWORD', 'practical'); define('DB_DATABASE', 'ajax'); // connect to the database $mysqli = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_DATABASE);
2
2765
by: Curtis | last post by:
Hello everyone: Recently, I decided to upgrade to PHP 5.2.0. I have C:\php5 in the Windows XP PATH, so upgrading is quite painless; just unzip new release, and restart Apache! Usually it goes off without a hitch, but I noticed that phpMyAdmin was not able to utilize the MySQLi library (which was working with my last 5.1.x release). As I was looking through php_info(), I noticed that MySQLi didn't even load. However, when I restarted...
13
3711
by: Schmidty | last post by:
If you do a page reload with $_SERVER will your program lose a mysqli connection upon the reload of the page? Would this code work? I need to know how to carry over a connection between methods as I am new to OOP? Thanks... Example; ======================================== <?php // webpage $newsignon = new newuser(); logon();
2
2601
by: Curtis | last post by:
Hello everyone: I have come to love the ease of updating PHP, since getting used to using it these past few years. Recently, however, when I upgraded from PHP 5.1 to PHP 5.2.0 and again when moving to 5.2.1, I noticed strange behavior when trying to load php_mysqli.dll. I am using Apache 2.2.3 on Windows XP Pro (32-bit). I use the php5apache2_2.dll to load PHP as an Apache module. The PHPIniDir directive in httpd.conf points to the...
11
11089
by: macca | last post by:
Hi, What should I be using for general MySQL database access? I've been using the traditional mysql extension for ages, but I'm trying to update my style to a more OOP paradigm. I've used PDO briefly but I've not used the mysqli extension yet. I've read a bit about it though, seems good and more OOP orientated (for the most part). But PDO seems more generic and transferable.
2
3208
by: Michael | last post by:
Hi, I try to use mysqli object instead of standard mysql functions. Is it ok to create mysqli object within my class or schould I pass mysqli object to my object. The problem is, with code below I must call mysqli->connect() each time I call class methods. How do I create an connection for hole object, so methods can do queries without connect each time? Best Regards, Michael
3
2311
code green
by: code green | last post by:
I am still using the mysql extension rather than the mysqli. Moving to mysqli would be realively simple in my case because all mysql_ procedural calls are wrapped in a class MySqlDB(). As are mssql_ procedural calls and both inherit from an abstract class that handles common functionallity baseDB(). So to switch I need to edit a few lines in the MySqlDB class. At least I think it is that simple. But as I already have a class inheriting...
0
8703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8623
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9185
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8935
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8893
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6540
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3069
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.