473,657 Members | 2,395 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to remove accents (A-Umlaut to A)

Is there a method to replace special characters like Ä (A-Umlaut) with
A, Ö (O-Umlaut) with O, and so on?
Sure, I could look for each character separately and replace it with its
ascii-counterpart, but there are also such special characters in French
and Swedish and many other languages which I also want to catch. Is
there a generic way to do it?
Aug 7 '07 #1
11 14870
On Tue, 07 Aug 2007 14:05:46 +0200, cody <de********@gmx .dewrote:
Is there a method to replace special characters like Ä (A-Umlaut) with
A, Ö (O-Umlaut) with O, and so on?
Sure, I could look for each character separately and replace it with its
ascii-counterpart, but there are also such special characters in French
and Swedish and many other languages which I also want to catch. Is
there a generic way to do it?
Hi Cody,

There is no generic way to do this. There is a hack that works in most cases involving switching Encoding the string and reading it in a different encoding, but this is by no means ensured to work for you. Your best bet is to create a lookup table and manually translate each character. If you anticipate a wide variety of characters, maybe Unicode or UTF-8 support is best.

--
Happy coding!
Morten Wennevik [C# MVP]
Aug 7 '07 #2
Morten Wennevik [C# MVP] <Mo************ @hotmail.comwro te:
On Tue, 07 Aug 2007 14:05:46 +0200, cody <de********@gmx .dewrote:
Is there a method to replace special characters like Ä (A-Umlaut) with
A, Ö (O-Umlaut) with O, and so on?
Sure, I could look for each character separately and replace it with its
ascii-counterpart, but there are also such special characters in French
and Swedish and many other languages which I also want to catch. Is
there a generic way to do it?
There is no generic way to do this. There is a hack that works in
most cases involving switching Encoding the string and reading it in
a different encoding, but this is by no means ensured to work for
you. Your best bet is to create a lookup table and manually translate
each character. If you anticipate a wide variety of characters, maybe
Unicode or UTF-8 support is best.
Actually, as of .NET 2.0 there *is* a way of doing this using
System.Text.Nor malizationForm.

Look at
http://groups.google.com/group/micro...neral/tree/bro
wse_frm/thread/78a09bd184351bc 5/99f090af662c126 c?rnum=11
(the last response, from Chris Mullins).

Here's the code posted, which does some upper-casing which isn't needed
in this case - but it should be okay aside from that.

Original code:

Encoding ascii = Encoding.GetEnc oding(
"us-ascii",
new EncoderReplacem entFallback(str ing.Empty),
new DecoderReplacem entFallback(str ing.Empty));
byte[] encodedBytes = new byte[ascii.GetByteCo unt(normalized)];
int numberOfEncoded Bytes = ascii.GetBytes( normalized, 0,
normalized.Leng th,
encodedBytes, 0);

string s = "áäåãòä:usdBDlG XHHA";
string normalized = s.Normalize(Nor malizationForm. FormKD);
Encoding ascii = Encoding.GetEnc oding(
"us-ascii",
new EncoderReplacem entFallback(str ing.Empty),
new DecoderReplacem entFallback(str ing.Empty));
byte[] encodedBytes = new byte[ascii.GetByteCo unt(normalized)];
int numberOfEncoded Bytes = ascii.GetBytes( normalized, 0,
normalized.Leng th,
encodedBytes, 0);
string newString = ascii.GetString (encodedBytes). ToUpper();
MessageBox.Show (newString);

End of original code.
Here's a slightly simpler (IMO) version:

static string RemoveAccents (string input)
{
string normalized = input.Normalize (NormalizationF orm.FormKD);
Encoding removal = Encoding.GetEnc oding
(Encoding.ASCII .CodePage,
new EncoderReplacem entFallback("") ,
new DecoderReplacem entFallback("") );

byte[] bytes = removal.GetByte s(normalized);
return Encoding.ASCII. GetString(bytes );
}

Or an alternative:

static string RemoveAccents (string input)
{
string normalized = input.Normalize (NormalizationF orm.FormKD);
StringBuilder builder = new StringBuilder() ;
foreach (char c in normalized)
{
if (char.GetUnicod eCategory(c) !=
UnicodeCategory .NonSpacingMark )
{
builder.Append( c);
}
}
return builder.ToStrin g();
}
--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Aug 7 '07 #3
On Tue, 07 Aug 2007 19:29:00 +0200, Jon Skeet [C# MVP] <sk***@pobox.co mwrote:
Morten Wennevik [C# MVP] <Mo************ @hotmail.comwro te:
>On Tue, 07 Aug 2007 14:05:46 +0200, cody <de********@gmx .dewrote:
Is there a method to replace special characters like Ä (A-Umlaut) with
A, Ö (O-Umlaut) with O, and so on?
Sure, I could look for each character separately and replace it with its
ascii-counterpart, but there are also such special characters in French
and Swedish and many other languages which I also want to catch. Is
there a generic way to do it?

There is no generic way to do this. There is a hack that works in
most cases involving switching Encoding the string and reading it in
a different encoding, but this is by no means ensured to work for
you. Your best bet is to create a lookup table and manually translate
each character. If you anticipate a wide variety of characters, maybe
Unicode or UTF-8 support is best.

Actually, as of .NET 2.0 there *is* a way of doing this using
System.Text.Nor malizationForm.

Look at
http://groups.google.com/group/micro...neral/tree/bro
wse_frm/thread/78a09bd184351bc 5/99f090af662c126 c?rnum=11
(the last response, from Chris Mullins).

Here's the code posted, which does some upper-casing which isn't needed
in this case - but it should be okay aside from that.

Original code:

Encoding ascii = Encoding.GetEnc oding(
"us-ascii",
new EncoderReplacem entFallback(str ing.Empty),
new DecoderReplacem entFallback(str ing.Empty));
byte[] encodedBytes = new byte[ascii.GetByteCo unt(normalized)];
int numberOfEncoded Bytes = ascii.GetBytes( normalized, 0,
normalized.Leng th,
encodedBytes, 0);

string s = "áäåãòä:usdBDlG XHHA";
string normalized = s.Normalize(Nor malizationForm. FormKD);
Encoding ascii = Encoding.GetEnc oding(
"us-ascii",
new EncoderReplacem entFallback(str ing.Empty),
new DecoderReplacem entFallback(str ing.Empty));
byte[] encodedBytes = new byte[ascii.GetByteCo unt(normalized)];
int numberOfEncoded Bytes = ascii.GetBytes( normalized, 0,
normalized.Leng th,
encodedBytes, 0);
string newString = ascii.GetString (encodedBytes). ToUpper();
MessageBox.Show (newString);

End of original code.
Here's a slightly simpler (IMO) version:

static string RemoveAccents (string input)
{
string normalized = input.Normalize (NormalizationF orm.FormKD);
Encoding removal = Encoding.GetEnc oding
(Encoding.ASCII .CodePage,
new EncoderReplacem entFallback("") ,
new DecoderReplacem entFallback("") );
byte[] bytes = removal.GetByte s(normalized);
return Encoding.ASCII. GetString(bytes );
}

Or an alternative:

static string RemoveAccents (string input)
{
string normalized = input.Normalize (NormalizationF orm.FormKD);
StringBuilder builder = new StringBuilder() ;
foreach (char c in normalized)
{
if (char.GetUnicod eCategory(c) !=
UnicodeCategory .NonSpacingMark )
{
builder.Append( c);
}
}
return builder.ToStrin g();
}

Interesting.

Well, it would remove what is defined as unicode accents, which is what the OP asked, but it does not normalize other characters into ascii, like the Norwegian æøå, in which case only å is defined as having an accent, though æ and ø could be translated to a and o. The first method would eat æø and return only a and the second would return æøa

--
Happy coding!
Morten Wennevik [C# MVP]
Aug 7 '07 #4
Morten Wennevik [C# MVP] <Mo************ @hotmail.comwro te:

<snip>
Interesting.

Well, it would remove what is defined as unicode accents, which is
what the OP asked, but it does not normalize other characters into
ascii, like the Norwegian æøå, in which case only å is defined as
having an accent, though æ and ø could be translated to a and o. The
first method would eat æø and return only a and the second would
return æøa
Right. It's a shame there's not better support in the framework for
this, but as it's improved from 1.1 to 2.0 there's a chance it'll get
better in the future :)

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Aug 7 '07 #5

On Aug 7, 7:59 pm, "Morten Wennevik [C# MVP]"
<MortenWenne... @hotmail.comwro te:
æ and ø could be translated to a and o.
I don't think that makes sense for all languages. As far as I
understand Unicode normalization, æ is normalized as far as Unicode is
concerned, according to the latin normalization chart. Further
decomposition risks emulating the dreaded "silent ASCII treatment"
strings are given by .NET unless you're careful, and should likely
take culture into account. In some regards, I think Unicode
normalization may even defeat the purpose of the ASCII-fication we're
discussing here, since the more information you have about a
character, the better you can ASCII-fy it. In German, ä is a fancy a,
but not in Swedish, and "normalizat ion" would have to acknowledge
this. But we digress...

Aug 8 '07 #6

On Aug 7, 2:05 pm, cody <deutron...@gmx .dewrote:
Is there a method to replace special characters like Ä [...]
Maybe knowing the reason why you're doing this can help us find you a
better solution?

A common example: turning strings into filenames on non-Unicode file
systems. In this case, using Encoding.ASCII with "" fallback (to avoid
question marks) is in my opinion not problematic, since the whole idea
is to truncate the input strings, and the resemblance between filename
and string is just a bonus. If you don't need that resemblance,
hashing strings makes things easier. If the purpose is something else,
maybe you need a different solution.

Either way, you should be prepared for the contingency that the string
has _only_ characters without ASCII counterparts, for example.

Aug 8 '07 #7
Jon Skeet [C# MVP] wrote:
Morten Wennevik [C# MVP] <Mo************ @hotmail.comwro te:
>On Tue, 07 Aug 2007 14:05:46 +0200, cody <de********@gmx .dewrote:
>>Is there a method to replace special characters like Ä (A-Umlaut) with
A, Ö (O-Umlaut) with O, and so on?
Sure, I could look for each character separately and replace it with its
ascii-counterpart, but there are also such special characters in French
and Swedish and many other languages which I also want to catch. Is
there a generic way to do it?
There is no generic way to do this. There is a hack that works in
most cases involving switching Encoding the string and reading it in
a different encoding, but this is by no means ensured to work for
you. Your best bet is to create a lookup table and manually translate
each character. If you anticipate a wide variety of characters, maybe
Unicode or UTF-8 support is best.

Actually, as of .NET 2.0 there *is* a way of doing this using
System.Text.Nor malizationForm.

Look at
http://groups.google.com/group/micro...neral/tree/bro
wse_frm/thread/78a09bd184351bc 5/99f090af662c126 c?rnum=11
(the last response, from Chris Mullins).

Here's the code posted, which does some upper-casing which isn't needed
in this case - but it should be okay aside from that.

Original code:

Encoding ascii = Encoding.GetEnc oding(
"us-ascii",
new EncoderReplacem entFallback(str ing.Empty),
new DecoderReplacem entFallback(str ing.Empty));
byte[] encodedBytes = new byte[ascii.GetByteCo unt(normalized)];
int numberOfEncoded Bytes = ascii.GetBytes( normalized, 0,
normalized.Leng th,
encodedBytes, 0);

string s = "áäåãòä:usdBDlG XHHA";
string normalized = s.Normalize(Nor malizationForm. FormKD);
Encoding ascii = Encoding.GetEnc oding(
"us-ascii",
new EncoderReplacem entFallback(str ing.Empty),
new DecoderReplacem entFallback(str ing.Empty));
byte[] encodedBytes = new byte[ascii.GetByteCo unt(normalized)];
int numberOfEncoded Bytes = ascii.GetBytes( normalized, 0,
normalized.Leng th,
encodedBytes, 0);
string newString = ascii.GetString (encodedBytes). ToUpper();
MessageBox.Show (newString);

End of original code.
Here's a slightly simpler (IMO) version:

static string RemoveAccents (string input)
{
string normalized = input.Normalize (NormalizationF orm.FormKD);
Encoding removal = Encoding.GetEnc oding
(Encoding.ASCII .CodePage,
new EncoderReplacem entFallback("") ,
new DecoderReplacem entFallback("") );

byte[] bytes = removal.GetByte s(normalized);
return Encoding.ASCII. GetString(bytes );
}

Or an alternative:

static string RemoveAccents (string input)
{
string normalized = input.Normalize (NormalizationF orm.FormKD);
StringBuilder builder = new StringBuilder() ;
foreach (char c in normalized)
{
if (char.GetUnicod eCategory(c) !=
UnicodeCategory .NonSpacingMark )
{
builder.Append( c);
}
}
return builder.ToStrin g();
}

Thank you very much, this will do it!
Aug 9 '07 #8
Jon Skeet [C# MVP] wrote:
Morten Wennevik [C# MVP] <Mo************ @hotmail.comwro te:
>On Tue, 07 Aug 2007 14:05:46 +0200, cody <de********@gmx .dewrote:
>>Is there a method to replace special characters like Ä (A-Umlaut) with
A, Ö (O-Umlaut) with O, and so on?
Sure, I could look for each character separately and replace it with its
ascii-counterpart, but there are also such special characters in French
and Swedish and many other languages which I also want to catch. Is
there a generic way to do it?
There is no generic way to do this. There is a hack that works in
most cases involving switching Encoding the string and reading it in
a different encoding, but this is by no means ensured to work for
you. Your best bet is to create a lookup table and manually translate
each character. If you anticipate a wide variety of characters, maybe
Unicode or UTF-8 support is best.

Actually, as of .NET 2.0 there *is* a way of doing this using
System.Text.Nor malizationForm.

Look at
http://groups.google.com/group/micro...neral/tree/bro
wse_frm/thread/78a09bd184351bc 5/99f090af662c126 c?rnum=11
(the last response, from Chris Mullins).

Here's the code posted, which does some upper-casing which isn't needed
in this case - but it should be okay aside from that.

Original code:

Encoding ascii = Encoding.GetEnc oding(
"us-ascii",
new EncoderReplacem entFallback(str ing.Empty),
new DecoderReplacem entFallback(str ing.Empty));
byte[] encodedBytes = new byte[ascii.GetByteCo unt(normalized)];
int numberOfEncoded Bytes = ascii.GetBytes( normalized, 0,
normalized.Leng th,
encodedBytes, 0);

string s = "áäåãòä:usdBDlG XHHA";
string normalized = s.Normalize(Nor malizationForm. FormKD);
Encoding ascii = Encoding.GetEnc oding(
"us-ascii",
new EncoderReplacem entFallback(str ing.Empty),
new DecoderReplacem entFallback(str ing.Empty));
byte[] encodedBytes = new byte[ascii.GetByteCo unt(normalized)];
int numberOfEncoded Bytes = ascii.GetBytes( normalized, 0,
normalized.Leng th,
encodedBytes, 0);
string newString = ascii.GetString (encodedBytes). ToUpper();
MessageBox.Show (newString);

End of original code.
Here's a slightly simpler (IMO) version:

static string RemoveAccents (string input)
{
string normalized = input.Normalize (NormalizationF orm.FormKD);
Encoding removal = Encoding.GetEnc oding
(Encoding.ASCII .CodePage,
new EncoderReplacem entFallback("") ,
new DecoderReplacem entFallback("") );

byte[] bytes = removal.GetByte s(normalized);
return Encoding.ASCII. GetString(bytes );
}

Or an alternative:

static string RemoveAccents (string input)
{
string normalized = input.Normalize (NormalizationF orm.FormKD);
StringBuilder builder = new StringBuilder() ;
foreach (char c in normalized)
{
if (char.GetUnicod eCategory(c) !=
UnicodeCategory .NonSpacingMark )
{
builder.Append( c);
}
}
return builder.ToStrin g();
}

Thank you very much, this will do it!
Aug 9 '07 #9
Jon Skeet [C# MVP] wrote:
Morten Wennevik [C# MVP] <Mo************ @hotmail.comwro te:
>On Tue, 07 Aug 2007 14:05:46 +0200, cody <de********@gmx .dewrote:
>>Is there a method to replace special characters like Ä (A-Umlaut) with
A, Ö (O-Umlaut) with O, and so on?
Sure, I could look for each character separately and replace it with its
ascii-counterpart, but there are also such special characters in French
and Swedish and many other languages which I also want to catch. Is
there a generic way to do it?
There is no generic way to do this. There is a hack that works in
most cases involving switching Encoding the string and reading it in
a different encoding, but this is by no means ensured to work for
you. Your best bet is to create a lookup table and manually translate
each character. If you anticipate a wide variety of characters, maybe
Unicode or UTF-8 support is best.

Actually, as of .NET 2.0 there *is* a way of doing this using
System.Text.Nor malizationForm.

Look at
http://groups.google.com/group/micro...neral/tree/bro
wse_frm/thread/78a09bd184351bc 5/99f090af662c126 c?rnum=11
(the last response, from Chris Mullins).

Here's the code posted, which does some upper-casing which isn't needed
in this case - but it should be okay aside from that.

Original code:

Encoding ascii = Encoding.GetEnc oding(
"us-ascii",
new EncoderReplacem entFallback(str ing.Empty),
new DecoderReplacem entFallback(str ing.Empty));
byte[] encodedBytes = new byte[ascii.GetByteCo unt(normalized)];
int numberOfEncoded Bytes = ascii.GetBytes( normalized, 0,
normalized.Leng th,
encodedBytes, 0);

string s = "áäåãòä:usdBDlG XHHA";
string normalized = s.Normalize(Nor malizationForm. FormKD);
Encoding ascii = Encoding.GetEnc oding(
"us-ascii",
new EncoderReplacem entFallback(str ing.Empty),
new DecoderReplacem entFallback(str ing.Empty));
byte[] encodedBytes = new byte[ascii.GetByteCo unt(normalized)];
int numberOfEncoded Bytes = ascii.GetBytes( normalized, 0,
normalized.Leng th,
encodedBytes, 0);
string newString = ascii.GetString (encodedBytes). ToUpper();
MessageBox.Show (newString);

End of original code.
Here's a slightly simpler (IMO) version:

static string RemoveAccents (string input)
{
string normalized = input.Normalize (NormalizationF orm.FormKD);
Encoding removal = Encoding.GetEnc oding
(Encoding.ASCII .CodePage,
new EncoderReplacem entFallback("") ,
new DecoderReplacem entFallback("") );

byte[] bytes = removal.GetByte s(normalized);
return Encoding.ASCII. GetString(bytes );
}

Or an alternative:

static string RemoveAccents (string input)
{
string normalized = input.Normalize (NormalizationF orm.FormKD);
StringBuilder builder = new StringBuilder() ;
foreach (char c in normalized)
{
if (char.GetUnicod eCategory(c) !=
UnicodeCategory .NonSpacingMark )
{
builder.Append( c);
}
}
return builder.ToStrin g();
}

Thank you very much, this will do it!
Aug 9 '07 #10

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

Similar topics

5
4107
by: chepiok | last post by:
I'd like to send email containing accents (french one) using PHP command mail(). The content of these emails are store in text files. I'de like to know : - text file format (encoding, with ASCII code ?...) that will contains my templates with some potential accents - the right header that i should give to the mail commande
2
6358
by: c w | last post by:
Can anyone point me in the right direction? Using Oracle 9i, Pro*C and Excel. I am trying to print french accents from the Oracle DB using Pro*C to extract the necessary info and sent the result to Excel but at the moment I cannot get the accents to show in Excel. The NLS_LANG is America. Any help would be appreciated. Thanks. Colin
0
657
by: Wim Roffal | last post by:
When I sort texts with accents the accents end up in the end instead of near the same text without accent. For example, the 3 composers Händel, Haydn and Holst will appear in the order Haydn, Holst, Händel. Is it possible to instruct MySql to ignore the accents so that Händel comes in first instead of last? Thanks in advance,
2
8434
by: Ghislain Benrais | last post by:
Hi everybody, I have xml documents with external entities for my accents that I want to output properly with php function domxml_open_file. I can't get my accents on a linux-apache server (I get "é" instead of "é"). My browser is IE6. Do you know why ? A strange thing is that the very same script on the same document works fine on a windows-apache server. My xml document : <?xml version="1.0" ?> <!DOCTYPE survey >
0
1761
by: Chris Leffer | last post by:
Hi. I am having problems to use HtmlEncode with strings that use accents. My page uses some expressions like that: <%# Server.HtmlEncode(DataBinder.Eval(Container.DataItem, "Name").Trim) %> If the 'Name' has no accents all works well. But if the 'Name ' has accents they appear encoded, like Nã.
1
3047
by: bssjohn | last post by:
Dear All, I have developing a French website using PHP & Ajax. In that I tried to display some French texts from mysql database using Ajax. Form local I got the text from db with Correct accents but in online French accents are missing. The text displays like this “de r?isation pour regroup?a majorit?es “. I declared following code in the head section of the file. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
0
1502
by: Johnny Jörgensen | last post by:
Has anyone got a good idea as to how I can systematically remove accents from characters in a string? I.e. I want to do a function that can change "Ségolène Royal" (just to take a current example) to "Segolene Royal" and the Swedish "förära" till "forara" etc... It is not important which language the string is in - all accents should be removed. Of course I can do a replace for each character, but if theres an easier way that will...
4
9909
by: MC | last post by:
Is there a string function in .NET that will remove the accent marks from letters? I know that's a slightly vague request... and that I could implement it by table lookup (and will do so unless something's already there). But can it be accomplished by switching a string among "cultures" or something like that?
5
3357
by: arty | last post by:
i have set up a xhr , all the accents on the page are showed ok on ff an safari function _cms() { cms.open("GET", 'cms.php', true); cms.setRequestHeader('If-Modified-Since','Wed, 05 Apr 2006 00:00:00 GMT'); if (cms.overrideMimeType) { cms.overrideMimeType('text/html; charset=ISO-8859-1') } else{cms.setRequestHeader("Content-type", "text/html; charset=ISO-8859-1"); } cms.onreadystatechange = function() { if(cms.readyState ==...
0
8395
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
8826
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
8503
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
8605
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...
0
7330
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6166
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
5632
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
4306
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
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.