473,386 Members | 1,943 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Word_to_html short dude...

Hi to all...
I have a little program that converts a word document into
a html file...
The problem is that the application its too slow when the
word file is large...
I suppose that this velocity is due to the metodology that
i use...

1)My program open the file
2)foreach paragraph in the word file take in count each
word inside this paragraph and analize if the word its
bold, italic or underline, and depending of this i create
the label in html and build each html paragraph with each
word and with each label inside an ArrayList...

There is another way to make the conversion(word to html)
take in count the blacks italics and underlined??? Cause i
need that my program goes faster with big word documents
(2 pages, or something like that)...

Thanks In Advance.
Regards.
Josema.
Nov 15 '05 #1
2 997
Why don't you use Save as...Web page from word?...just a thought...:)

Cata

"Josema" <an*******@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...
Hi to all...
I have a little program that converts a word document into
a html file...
The problem is that the application its too slow when the
word file is large...
I suppose that this velocity is due to the metodology that
i use...

1)My program open the file
2)foreach paragraph in the word file take in count each
word inside this paragraph and analize if the word its
bold, italic or underline, and depending of this i create
the label in html and build each html paragraph with each
word and with each label inside an ArrayList...

There is another way to make the conversion(word to html)
take in count the blacks italics and underlined??? Cause i
need that my program goes faster with big word documents
(2 pages, or something like that)...

Thanks In Advance.
Regards.
Josema.

Nov 15 '05 #2
ja ja ja, its a good idea, but i would like to practice
this kind of things... But in all ways, word creates an
html file with a lot of trash (so many code)
The result is a file poor optimized.

Josema
-----Original Message-----
Why don't you use Save as...Web page from word?...just a thought...:)
Cata

"Josema" <an*******@discussions.microsoft.com> wrote in messagenews:02****************************@phx.gbl...
Hi to all...
I have a little program that converts a word document into a html file...
The problem is that the application its too slow when the word file is large...
I suppose that this velocity is due to the metodology that i use...

1)My program open the file
2)foreach paragraph in the word file take in count each
word inside this paragraph and analize if the word its
bold, italic or underline, and depending of this i create the label in html and build each html paragraph with each word and with each label inside an ArrayList...

There is another way to make the conversion(word to html) take in count the blacks italics and underlined??? Cause i need that my program goes faster with big word documents
(2 pages, or something like that)...

Thanks In Advance.
Regards.
Josema.

.

Nov 15 '05 #3

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

Similar topics

383
by: John Bailo | last post by:
The war of the OSes was won a long time ago. Unix has always been, and will continue to be, the Server OS in the form of Linux. Microsoft struggled mightily to win that battle -- creating a...
10
by: Niels Dekker (no reply address) | last post by:
Is it possible for a standard compliant C++ compiler to have ( sizeof(short) < sizeof(int) ) and ( sizeof(short) == sizeof((short)0 + (short)0) ) ? Regards, Niels Dekker...
99
by: Glen Herrmannsfeldt | last post by:
I was compiling a program written by someone else about six years ago, and widely distributed at the time. It also includes makefiles for many different systems, so I know it has been compiled...
34
by: Andy | last post by:
Hi, Are 1 through 4 defined behaviors in C? unsigned short i; unsigned long li; /* 32-bit wide */ 1. i = 65535 + 3; 2. i = 1 - 3; 3. li = (unsigned long)0xFFFFFFFF + 3; 4. li = 1...
8
by: NilsNilsson | last post by:
I wrote this: short s1 = 0; short s2 = 1; short s3 = s1 + s2; And gor this compile error message: Cannot implicitly convert type 'int' to 'short' What is wrong here?
3
by: Dinio | last post by:
hi to all. Anybody knows how can i create an array of textboxes.. something like: protected TextBox mygroup1 Thanks Dinio Aynama
8
by: Ken Dopierala Jr. | last post by:
Hi, I'm reading the header file of a PCX image and I need to convert 2 bytes to a short. How would I go about doing this? I know that they are bytes 8 & 9 in my byte array. I'm not sure how to...
15
by: Steffen Loringer | last post by:
Hi, I'm using the following function to join 2 char (byte) into one short on a 32 bit X86 platform: unsigned short joinUnsigShort(unsigned char a,unsigned char b) { unsigned short val = 0;...
4
by: slougheed | last post by:
I encountered a problem after we had converted our declarations of 'unsigned short int' to uint16_t. In one instance, whoever did the conversion failed to delete the 'short' keyword so we had a...
10
by: Jim Langston | last post by:
Is the following well defined? size_t IntVal = 65537; unsigned short Length; if ( IntVal static_cast<unsigned short>( -1 ) ) { std::cout << "Value too long to fit in a short" << std::endl;...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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,...

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.