473,729 Members | 2,186 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating a database in Sun Java System Application Server 9

3 New Member
I am using a slightly outdated reference book on J2EE programming. It gives 2 methods of creating a database used in its casestudies. The first is an ANT script that gives the following output:

D:\original\Cas eStudy-2-5\CaseStudy\Day 02\exercise>asa nt database
Buildfile: build.xml

env-user:

prop-user:

set-user:

env-password:

prop-password:

read-password:

set-password:

set-j2ee:

create-jdbc:

set-j2ee:

asadmin:
[echo] asadmin.bat create-jdbc-resource --user admin --password password --
connectionpooli d PointBasePool --enabled=true jdbc/Agency
[exec] Usage: create-jdbc-resource [--terse=false] [--echo=false] [--intera
ctive=true] [--host localhost] [--port 4848|4849] [--secure | -s] [--user admin_
user] [--passwordfile file_name] --connectionpooli d id [--enabled=true] [--descr
iption text] [--target target(Default server)] jndi_name
[exec] CLI193 Password option "password" is not allowed on the command line
. Please use --passwordfile option or asadmin login command.

set-j2ee:

asadmin:
[echo] asadmin.bat list-jdbc-resources --user admin --password password
[exec] Usage: list-jdbc-resources [--terse=false] [--echo=false] [--interac
tive=true] [--host localhost] [--port 4848|4849] [--secure | -s] [--user admin_u
ser] [--passwordfile file_name] [target (Default server)]
[exec] CLI193 Password option "password" is not allowed on the command line
. Please use --passwordfile option or asadmin login command.

set-dbpath:

BUILD FAILED
D:\original\Cas eStudy-2-5\CaseStudy\com mon\targets.xml :87: D:\Sun\SDK\poin tbase\
lib not found.

Total time: 2 seconds
D:\original\Cas eStudy-2-5\CaseStudy\Day 02\exercise>

I've checked and there is no Sun\SDK\pointba se folder. The book was written for SDK 1.4 and I believe another application server. There is also a Java program that attempts to create it with jdbc. Its output looks like this :


D:\original\Cas eStudy-2-5\CaseStudy\Day 02\exercise\cla sses>java CreateAgency
java.lang.Class NotFoundExcepti on: com.pointbase.j dbc.jdbcUnivers alDriver
java.lang.Class NotFoundExcepti on: com.pointbase.j dbc.jdbcUnivers alDriver
at java.net.URLCla ssLoader$1.run( URLClassLoader. java:200)
at java.security.A ccessController .doPrivileged(N ative Method)
at java.net.URLCla ssLoader.findCl ass(URLClassLoa der.java:188)
at java.lang.Class Loader.loadClas s(ClassLoader.j ava:306)
at sun.misc.Launch er$AppClassLoad er.loadClass(La uncher.java:276 )
at java.lang.Class Loader.loadClas s(ClassLoader.j ava:251)
at java.lang.Class Loader.loadClas sInternal(Class Loader.java:319 )
at java.lang.Class .forName0(Nativ e Method)
at java.lang.Class .forName(Class. java:169)
at CreateAgency.ma in(Unknown Source)

D:\original\Cas eStudy-2-5\CaseStudy\Day 02\exercise\cla sses>

I am not conversant enough to discuss the corrections for the ANT script but I'm reasonably certain the Java program could work if I had the right strings in these lines.

// PointBase
private static final String driver = "com.pointbase. jdbc.jdbcUniver salDriver";
private static final String protocol = "jdbc:pointbase :server://localhost/sun-appserv-samples,new";
private static final String user = "pbPublic";
private static final String password = "pbPublic";

Can anyone help me with the correct driver and protocol?
I am using the latest download version SDK JavaEE5
the entire java program looks like this:

import java.sql.*;


public class CreateAgency {

// Cloudscape
//private static final String driver = "COM.cloudscape .core.RmiJdbcDr iver";
//private static final String protocol = "jdbc:cloudscap e:rmi:Agency;cr eate=true";
//private static final String user = "";
//private static final String password = "";

// PointBase
private static final String driver = "com.pointbase. jdbc.jdbcUniver salDriver";
private static final String protocol = "jdbc:pointbase :server://localhost/sun-appserv-samples,new";
private static final String user = "pbPublic";
private static final String password = "pbPublic";

public static void main(String[] args) {

Connection conn=null;
Statement s=null;

try {
Class.forName(d river);
System.out.prin tln("Loaded driver: "+driver);

conn = DriverManager.g etConnection(pr otocol,user,pas sword);
System.out.prin tln("Connected to: "+protocol) ;
conn.setAutoCom mit(false);

s = conn.createStat ement();

System.out.prin tln("Dropping exisiting BMP tables...");
try {s.execute("dro p table ApplicantSkill" );} catch (SQLException ex){}
try {s.execute("dro p table Applicant");} catch (SQLException ex){}
try {s.execute("dro p table JobSkill");} catch (SQLException ex){}
try {s.execute("dro p table Job");} catch (SQLException ex){}
try {s.execute("dro p table Matched");} catch (SQLException ex){}
try {s.execute("dro p table Customer");} catch (SQLException ex){}
try {s.execute("dro p table Location");} catch (SQLException ex){}
try {s.execute("dro p table Skill");} catch (SQLException ex){}

System.out.prin tln("Dropped tables");

System.out.prin tln("Creating new tables...");
s.execute("crea te table Skill(name varchar(16) CONSTRAINT pk_skill PRIMARY KEY (name), description varchar(64))");
s.execute("crea te table Location(name varchar(16)CONS TRAINT pk_location PRIMARY KEY (name), description varchar(64))");
s.execute("crea te table Applicant(login varchar(16) CONSTRAINT pk_applicant PRIMARY KEY (login), name varchar(64), email varchar(64), summary varchar(512), location varchar(16), CONSTRAINT fk_location FOREIGN KEY (location) REFERENCES Location(name)) ");
s.execute("crea te table ApplicantSkill( applicant varchar(16), skill varchar(16), CONSTRAINT fk_applicant FOREIGN KEY (applicant) REFERENCES Applicant(login ), CONSTRAINT fk_skill FOREIGN KEY (skill) REFERENCES Skill(name))");
s.execute("crea te table Customer(login varchar(16) CONSTRAINT pk_customer PRIMARY KEY (login), name varchar(64), email varchar(64), address1 varchar(64), address2 varchar(64))");
s.execute("crea te table Job(ref varchar(16), customer varchar(16), description varchar(512), location varchar(16), CONSTRAINT pk_job PRIMARY KEY (ref,customer), CONSTRAINT fk_customer FOREIGN KEY (customer) REFERENCES Customer(login) , CONSTRAINT fk_location FOREIGN KEY (location) REFERENCES Location(name)) ");
s.execute("crea te table JobSkill(job varchar(16), customer varchar(16), skill varchar(16), CONSTRAINT fk_job FOREIGN KEY (job,customer) REFERENCES Job(ref,custome r), CONSTRAINT fk_skill FOREIGN KEY (skill) REFERENCES Skill(name))");
s.execute("crea te table Matched(applica nt varchar(16), job varchar(16), customer varchar(16), exact boolean, CONSTRAINT fk_job FOREIGN KEY (job,customer) REFERENCES Job(ref,custome r), CONSTRAINT fk_applicant FOREIGN KEY (applicant) REFERENCES Applicant(login ))");
System.out.prin tln("Created tables");

System.out.prin tln("Inserting table records...");
s.execute("inse rt into Location values ('London','Lond on UK')");
s.execute("inse rt into Location values ('Washington',' Washington DC, USA')");
s.execute("inse rt into Location values ('Verona','Vero na, Renaissance Italy')");
s.execute("inse rt into Location values ('Wessex','Wess ex, Kingdom of England')");

s.execute("inse rt into Skill values ('Tree Surgeon','Tree Surgeon')");
s.execute("inse rt into Skill values ('Cigar Maker','Cigar Maker')");
s.execute("inse rt into Skill values ('Bodyguard','B odyguard')");
s.execute("inse rt into Skill values ('Cook','Cook') ");
s.execute("inse rt into Skill values ('Lawyer','Lawy er')");
s.execute("inse rt into Skill values ('Critic','Crit ic')");

s.execute("inse rt into Applicant values ('juliet','Juli et Capulet', 'juliet@localho st' , 'Dutiful daughter', 'London' )");
s.execute("inse rt into Applicant values ('romeo','Romeo Montague', 'romeo@localhos t' , 'Dutiful son', 'Wessex' )");
s.execute("inse rt into Applicant values ('julius','Juli us Caesar', 'julias@localho st' , 'Roman Emperor', 'Washington' )");
s.execute("inse rt into Applicant values ('brutus','Marc us Brutus', 'marcus@localho st' , 'Roman Senator', 'Washington' )");
s.execute("inse rt into Applicant values ('proteus','Pro teus', 'proteus@localh ost' , 'Gentleman', 'Verona' )");
s.execute("inse rt into Applicant values ('valentine','V alentine', 'valentine@loca lhost' , 'Gentleman', 'Verona' )");

s.execute("inse rt into ApplicantSkill values ('juliet', 'Cook')");
s.execute("inse rt into ApplicantSkill values ('romeo', 'Cook')");
s.execute("inse rt into ApplicantSkill values ('romeo', 'Bodyguard')");
s.execute("inse rt into ApplicantSkill values ('julius', 'Tree Surgeon' )");
s.execute("inse rt into ApplicantSkill values ('julius', 'Tree Surgeon' )");
s.execute("inse rt into ApplicantSkill values ('brutus', 'Critic' )");
s.execute("inse rt into ApplicantSkill values ('brutus', 'Lawyer' )");
s.execute("inse rt into ApplicantSkill values ('proteus', 'Lawyer' )");
s.execute("inse rt into ApplicantSkill values ('proteus', 'Critic' )");
s.execute("inse rt into ApplicantSkill values ('valentine', 'Critic' )");
s.execute("inse rt into ApplicantSkill values ('valentine', 'Cigar Maker' )");

s.execute("inse rt into Customer values ('george','Geor ge Washington', 'george@localho st', 'White House', 'Washington')") ;
s.execute("inse rt into Customer values ('winston','Win ston S Churchill', 'winston@localh ost', '10 Downing Street', 'London')");
s.execute("inse rt into Customer values ('abraham','Abr aham Lincoln', 'abe@localhost' , 'Springfield', 'Illinois')");
s.execute("inse rt into Customer values ('alfred','Alfr ed the Great', 'alf@localhost' , 'Wessex', 'England')");

s.execute("inse rt into Job values ('Tree pruner', 'george', 'Must be honest', 'Washington')") ;
s.execute("inse rt into Job values ('Cigar trimmer', 'winston', 'Must like to talk and smoke', 'London')");
s.execute("inse rt into Job values ('Theatre goer', 'abraham', 'Should be intelligent and articulate', 'Washington')") ;
s.execute("inse rt into Job values ('Cake maker', 'alfred', 'Should have a good sense of smell', 'Wessex')");

s.execute("inse rt into JobSkill values ('Tree pruner','george ','Tree Surgeon')");
s.execute("inse rt into JobSkill values ('Cigar trimmer', 'winston', 'Cigar Maker')");
s.execute("inse rt into JobSkill values ('Cigar trimmer', 'winston', 'Critic')");
s.execute("inse rt into JobSkill values ('Theatre goer', 'abraham', 'Bodyguard')");
s.execute("inse rt into JobSkill values ('Theatre goer', 'abraham', 'Lawyer')");
s.execute("inse rt into JobSkill values ('Theatre goer', 'abraham', 'Critic')");
s.execute("inse rt into JobSkill values ('Cake maker', 'alfred', 'Cook')");

System.out.prin tln("Inserted records");

conn.commit();
System.out.prin tln("Committed transactions");
}
catch (SQLException ex) {
System.out.prin tln("SQL Exception thrown: "+ex);
ex.printStackTr ace();
try { conn.rollback() ; } catch (Exception e) {}
}
catch (ClassNotFoundE xception ex) {
System.out.prin tln(ex);
ex.printStackTr ace();
}
finally {
try { s.close(); } catch (Exception ex) {}
try { conn.close(); } catch (Exception ex) {}
}
}

}
May 24 '07 #1
2 3980
emekadavid
46 New Member
am not into J2EE yet but if you're using an outdated book , no problem about that, just get the java tutorials on what you want, for J2EE i have "my first cup"?? i sure hope i got the title right. read through and read the outdated book, you'll get the concepts along the way. concepts never change, only the ways of implementing them do.
May 25 '07 #2
astolpho
3 New Member
I created the Database thru the netbeans gui in the Derby Pool and connected to it. I used the gui to create tables which worked fine except I couldn't figure out how to designate foreign keys. I made all the tables anyway but when I tried to insert data into the tables I got an error saying the tables didn't exist. I deleted the tables and tried making them with an sql script : (see below) This succeeded in creating the Skill, Location, and Customer tables but no data was inserted and no tables with Foreign keys were made because acording to the sql errors the tables do not exist, including the ones that were successfully created. One other problem is one of my tables has a Boolean column and that type is apparently unsupported? The main problem is though that the tables don't exist even though I can see them in the netbeans gui, at least the ones that were created successfully. The order of the table creation is such that no foreign key references are made to a table that has not been attempted to be created first.Note table "Location" is successfully created before I attempt to create table "Applicant" unsuccessfully because according the the sql error table "Location" does not exist. Anyone got any ideas what is happening here?

DROP TABLE ApplicantSkill;
DROP TABLE Applicant;
DROP TABLE JobSkill;
DROP TABLE Job;
DROP TABLE Matched;
DROP TABLE Customer;
DROP TABLE Location;
DROP TABLE Skill;

create table "Skill"
(
"name" varchar(16) NOT NULL PRIMARY KEY,
"descriptio n" varchar(64)
);

create table "Location"
(
"name" varchar(16) NOT NULL PRIMARY KEY,
"descriptio n" varchar(64)
);

create table "Applicant"
(
"login" varchar(16) NOT NULL PRIMARY KEY,
"name" varchar(64),
"email" varchar(64),
"summary" varchar(512),
"location" varchar(16),
CONSTRAINT FK_Applicant_lo cation FOREIGN KEY (location) REFERENCES Location(name)
);

create table "ApplicantSkill "
(
"applicant" varchar(16),
"skill" varchar(16),
CONSTRAINT FK_ApplicantSki ll_applicant FOREIGN KEY (applicant) REFERENCES Applicant(login ),
CONSTRAINT FK_ApplicantSki ll_skill FOREIGN KEY (skill) REFERENCES Skill(name)
);

create table "Customer"
(
"login" varchar(16) NOT NULL PRIMARY KEY,
"name" varchar(64),
"email" varchar(64),
"address1" varchar(64),
"address2" varchar(64)
);

create table "Job"
(
"ref" varchar(16),
"customer" varchar(16),
"descriptio n" varchar(512),
"location" varchar(16),
CONSTRAINT PK_job PRIMARY KEY (ref,customer),
CONSTRAINT FK_Job_customer FOREIGN KEY (customer) REFERENCES Customer(login) ,
CONSTRAINT FK_Job_location FOREIGN KEY (location) REFERENCES Location(name)
);

create table "JobSkill"
(
"job" varchar(16),
"customer" varchar(16),
"skill" varchar(16),
CONSTRAINT FK_JobSkill_job FOREIGN KEY (job,customer) REFERENCES Job(ref,custome r),
CONSTRAINT FK_JobSkill_ski ll FOREIGN KEY (skill) REFERENCES Skill(name)
);

create table "Matched"
(
"applicant" varchar(16),
"job" varchar(16),
"customer" varchar(16),
"exact" boolean,
CONSTRAINT FK_Matched_job FOREIGN KEY (job,customer) REFERENCES Job(ref,custome r),
CONSTRAINT FK_Matched_appl icant FOREIGN KEY (applicant) REFERENCES Applicant(login )
);


INSERT INTO Location VALUES ('London','Lond on UK');
INSERT INTO Location VALUES ('Washington',' Washington DC, USA');
INSERT INTO Location VALUES ('Verona','Vero na, Renaissance Italy');
INSERT INTO Location VALUES ('Wessex','Wess ex, Kingdom of England');

INSERT INTO Skill VALUES ('Tree Surgeon','Tree Surgeon');
INSERT INTO Skill VALUES ('Cigar Maker','Cigar Maker');
INSERT INTO Skill VALUES ('Bodyguard','B odyguard');
INSERT INTO Skill VALUES ('Cook','Cook') ;
INSERT INTO Skill VALUES ('Lawyer','Lawy er');
INSERT INTO Skill VALUES ('Critic','Crit ic');

INSERT INTO Applicant VALUES ('juliet','Juli et Capulet', 'juliet@localho st' , 'Dutiful daughter', 'London');
INSERT INTO Applicant VALUES ('romeo','Romeo Montague', 'romeo@localhos t' , 'Dutiful son', 'Wessex');
INSERT INTO Applicant VALUES ('julius','Juli us Caesar', 'julias@localho st' , 'Roman Emperor', 'Washington');
INSERT INTO Applicant VALUES ('brutus','Marc us Brutus', 'marcus@localho st' , 'Roman Senator', 'Washington');
INSERT INTO Applicant VALUES ('proteus','Pro teus', 'proteus@localh ost' , 'Gentleman', 'Verona');
INSERT INTO Applicant VALUES ('valentine','V alentine', 'valentine@loca lhost' , 'Gentleman', 'Verona');

INSERT INTO ApplicantSkill VALUES ('juliet', 'Cook');
INSERT INTO ApplicantSkill VALUES ('romeo', 'Cook');
INSERT INTO ApplicantSkill VALUES ('romeo', 'Bodyguard');
INSERT INTO ApplicantSkill VALUES ('julius', 'Tree Surgeon');
INSERT INTO ApplicantSkill VALUES ('julius', 'Tree Surgeon');
INSERT INTO ApplicantSkill VALUES ('brutus', 'Critic');
INSERT INTO ApplicantSkill VALUES ('brutus', 'Lawyer');
INSERT INTO ApplicantSkill VALUES ('proteus', 'Lawyer');
INSERT INTO ApplicantSkill VALUES ('proteus', 'Critic');
INSERT INTO ApplicantSkill VALUES ('valentine', 'Critic');
INSERT INTO ApplicantSkill VALUES ('valentine', 'Cigar Maker' );

INSERT INTO Customer VALUES ('george','Geor ge Washington', 'george@localho st', 'White House', 'Washington');
INSERT INTO Customer VALUES ('winston','Win ston S Churchill', 'winston@localh ost', '10 Downing Street', 'London');
INSERT INTO Customer VALUES ('abraham','Abr aham Lincoln', 'abe@localhost' , 'Springfield', 'Illinois');
INSERT INTO Customer VALUES ('alfred','Alfr ed the Great', 'alf@localhost' , 'Wessex', 'England');

INSERT INTO Job VALUES ('Tree pruner', 'george', 'Must be honest', 'Washington');
INSERT INTO Job VALUES ('Cigar trimmer', 'winston', 'Must like to talk and smoke', 'London');
INSERT INTO Job VALUES ('Theatre goer', 'abraham', 'Should be intelligent and articulate', 'Washington');
INSERT INTO Job VALUES ('Cake maker', 'alfred', 'Should have a good sense of smell', 'Wessex');

INSERT INTO JobSkill VALUES ('Tree pruner','george ','Tree Surgeon');
INSERT INTO JobSkill VALUES ('Cigar trimmer', 'winston', 'Cigar Maker');
INSERT INTO JobSkill VALUES ('Cigar trimmer', 'winston', 'Critic');
INSERT INTO JobSkill VALUES ('Theatre goer', 'abraham', 'Bodyguard');
INSERT INTO JobSkill VALUES ('Theatre goer', 'abraham', 'Lawyer');
INSERT INTO JobSkill VALUES ('Theatre goer', 'abraham', 'Critic');
INSERT INTO JobSkill VALUES ('Cake maker', 'alfred', 'Cook');
May 30 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
9905
by: Matthew Clubb | last post by:
Hi, I need help developing an expanding form I've decided that a use of PHP, Mysql and Javascript is the best platform for creating a selection of database interfaces which I'm trying to build for my company. I had been using Microsoft Access, but obviously this requires licenses for every machine. BUT..... I'm look for an easy way of recreating subforms. I'm trying to create a Purchase Order system and in Access I did this by using a...
0
6811
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what the issue is. Thanks Ravi
8
4880
by: 2centbob | last post by:
Has anyone had an issue with SQL Server not being able to expand against a RAID 5 file system? My current configuration is that the server is started and stopped using the local system account. I have only one database (besides the master, model,etc)on the server. What has happend to me several times is that the primary database in question try's to expand the main datafile for the database (.mdf). I setup the database to not expand...
6
7341
by: Marvin Libson | last post by:
Hi All: I am running DB2 UDB V7.2 with FP11. Platform is Windows 2000. I have created a java UDF and trigger. When I update my database I get the following error: SQL1224N A database agent could not be started to service a request, or was terminated as a result of a database system shutdown or a force command.
21
4110
by: nihad.nasim | last post by:
Hi there, I have a database in Access that I need on the web. The web page should connect to the database and write records for certain tables and view records for others. I want to know a reliable way of connecting Access to a server. I am willing to switch to any version of Access which might solve the problem. Which server would you recommend and what are the advanatages and disadvantatges of the server you propose? Please also inlcude...
8
3849
by: mouac01 | last post by:
I'm not sure if this is possible. I would like to have a PHP app on the Internet connect and write to a local database (Intranet). For example, users would go to a web site http://www.internet.com to run the app. The app requires an internet connection and is outside of the user's network. The app would have the option to either store data locally or on the Internet. I would like to give users the option to store data locally because...
0
5577
by: narayan2586 | last post by:
Hi all, When ever i am trying to connect my application it's giving below error message: RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: ; nested exception is: javax.ejb.EJBException: Connection to pool failed! - com.ibm.websphere.ce.cm.StaleConnectionException: SQL1224N The database manager is not able to accept new requests, has terminated all requests in progress, or has terminated your...
2
2052
by: HeMan_Speaks | last post by:
I m currently developing a java based application and want to know how can i make client access database located on the server?
1
2772
by: DarkGiank | last post by:
Hi, im new to csharp and im trying to create a class that can change the application database without no rewriting all connection code... but cause some reason it is not working... it tells me that im not creating the object but im doing it,,, please help im a newbie to c# using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Data.SQLite; using MySql.Data; using MySql.Data.MySqlClient; using...
0
8927
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
8764
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
9289
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9156
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
6722
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
6026
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
4798
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3242
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
3
2166
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.