|
i mean......im asking code ....i wrote code like dis....
Microsoft.Office.Interop.Word.Paragraph oPara1;
oPara1 = oDoc.Content.Paragraphs.Add(ref oMissing);
oPara1.Format.SpaceAfter = 0;
oPara1.Range.Start = 0;
oPara1.Range.End = 0;
oPara1.Range.ParagraphFormat.LineSpacing = oWord.MillimetersToPoints(0.7f);
oPara1.Range.ParagraphFormat.LeftIndent = 0.70f;
oPara1.Range.ParagraphFormat.LineSpacingRule = WdLineSpacing.wdLineSpaceExactly;
oPara1.Range.ParagraphFormat.SpaceAfter = oWord.MillimetersToPoints(0F);
oPara1.Range.ParagraphFormat.SpaceBefore = oWord.MillimetersToPoints(0f);
oPara1.Range.ParagraphFormat.SpaceAfterAuto = 0;
oPara1.Range.ParagraphFormat.SpaceBeforeAuto = 0;
oPara1.Range.Text = "Sigma LLC\n 501 hyd Rd, Suite 105\n";
oPara1.Range.InsertParagraphBefore();
oPara1.Range.AutoFormat();
but i cant getting sapce in b/w that adress...line by line..with spaces
|
|
|
|
|
ravindra chintha wrote: i mean......im asking code ....i wrote code like dis....
Microsoft.Office.Interop.Word.Paragraph oPara1;
Does it work with a LineSpacingRule of "wdLineSpaceDouble"?
ravindra chintha wrote: but i cant getting sapce in b/w that adress...line by line..with spaces
The space is defined in your code with a LineSpacing of 0.7. That's also the suggested property according to this[^] article.
Does it help to decrease the value, or does changing the value have no effect at all?
I are Troll
modified on Friday, January 29, 2010 12:39 PM
|
|
|
|
|
Hello,
I want to build an application for writing text in textbox using speech recognition. i.e. if i speak "This is my first application" it should be displayed on textbox.
I have tried but failed. Here is my code.
System.Speech.Recognition.SpeechRecognitionEngine recognizer;
private void Form3_Load(object sender, EventArgs e)
{
recognizer = new System.Speech.Recognition.SpeechRecognitionEngine();
GrammarBuilder dictaphoneGB = new GrammarBuilder();
GrammarBuilder dictation = new GrammarBuilder();
dictation.AppendDictation();
dictaphoneGB.Append(new SemanticResultKey("StartDictation", new SemanticResultValue("Start Dictation", true)));
dictaphoneGB.Append(new SemanticResultKey("DictationInput", dictation));
dictaphoneGB.Append(new SemanticResultKey("EndDictation", new SemanticResultValue("Stop Dictation", false)));
GrammarBuilder spelling = new GrammarBuilder();
spelling.AppendDictation("spelling");
GrammarBuilder spellingGB = new GrammarBuilder();
spellingGB.Append(new SemanticResultKey("StartSpelling", new SemanticResultValue("Start Spelling", true)));
spellingGB.Append(new SemanticResultKey("spellingInput", spelling));
spellingGB.Append(new SemanticResultKey("StopSpelling", new SemanticResultValue("Stop Spelling", true)));
GrammarBuilder both = GrammarBuilder.Add(dictaphoneGB, spellingGB);
Grammar grammar = new Grammar(both);
grammar.Enabled = true;
grammar.Name = "Dictaphone and Spelling ";
recognizer.LoadGrammar(grammar);
recognizer.SetInputToDefaultAudioDevice();
recognizer.RecognizeAsync(RecognizeMode.Multiple);
recognizer.SpeechRecognized += OnSpeechRecognized;
}
private void OnSpeechRecognized(object sender, System.Speech.Recognition.SpeechRecognizedEventArgs e)
{
textBox1.Text = e.Result.Text;
}
There is no output.
Please help me i am new to speech recognition.
Thanks in advance.
|
|
|
|
|
Give us more information on your problem. You have an exception, no sound... ?
|
|
|
|
|
Thank you for reply.
And i am sorry for my late reply.
I am not getting any response from the application, if i speak into Mic there is no response, it does not go into the speech_recognized() event.
So i really don't understand what is going wrong.
Please help me.
Thanks in advance.
|
|
|
|
|
No sound, the problem may be the input device which is not the default one.
I will try to replay your sample
|
|
|
|
|
hi friends,
i am trying to blend the edges of the polygon region can any one help me to do so..
regards
Samir
|
|
|
|
|
Hi All,
I am using third party COM dll. In my machine it is working fine. but its not working on any other machine event registering dll. I got below error
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {E064BB22-22CE-4E01-BB63-10EF4058CAF9} failed due to the following error: 80040154.
What is the error exactly? any body can explain?
Thanking You,
Sunil G.
|
|
|
|
|
Google gives loads of results for "error: 80040154" - MSDN[^] is probably the most usefull.
All those who believe in psycho kinesis, raise my hand.
My 's gonna unleash hell on your ass. tastic!
|
|
|
|
|
Ever heard of "google"? It's that new-fangled search engine that's been available on the web for more than ten years...
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Hello every one !
I'm a beginer in this forum and I'm researching about network computer.
I need a source code of a program as multichat to researching fastly.I tried to search source code VC# about this but can't.
I hope receive many helping !
Thanks all !
|
|
|
|
|
ccfqs wrote: .I tried to search source code VC# about this but can't.
Did you tried searching articles on Codeproject?
Look at the first hit i got: TCP/IP Chat Application Using C#[^]
|
|
|
|
|
ccfqs wrote: I need a source code of a program ... I tried to search source code VC# about this but can't.
Try harder.
MVP 2010 - are they mad?
|
|
|
|
|
Try System.LiquidNitrogen
Harvey Saayman - South Africa
Software Developer
.Net, C#, SQL
you.suck = (you.Occupation == jobTitles.Programmer && you.Passion != Programming)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
ccfqs wrote: Hello every one !
I'm a beginer in this forum and I'm researching about network computer feeling really lazy.
I need a source code of a program as multichat to researching fastly hand in as my own work. I tried to search source code VC# about this but can't be bothered to get google to work.
I hope receive many helping you will do my homework for me!
Thanks all !
All those who believe in psycho kinesis, raise my hand.
My 's gonna unleash hell on your ass. tastic!
|
|
|
|
|
I'm really sorry!
I'll try harder !
|
|
|
|
|
Hello to all,
I am developing an application that implements speech recognition module, now i need to implement voice authentication. Is it possible through sapi? And please guide me for that.
Please help me its urgent.
Thank you in advance
|
|
|
|
|
krinaljariwala wrote: i need to implement voice authentication. Is it possible through sapi?
What does the documentation[^] say on this subject?
krinaljariwala wrote: its urgent.
Only to you.
MVP 2010 - are they mad?
|
|
|
|
|
krinaljariwala wrote: now i need to implement voice authentication. Is it possible through sapi?
"Voice" authentication? You mean like checking whether the person who is speaking 'actually' sounds like the person trying to login?
Two questios;
- What do you do when a person has the flu?
- How do you plan to differentiate between the sound of a person and a pre-recorded sound?
Capturing speech is hard enough; you don't recognize a word, but map the sound to a list of words, sorted by confidence. We then present the top word of that list, claiming that the computer heard it.
Differentiating persons by the sound of their voice is a hard excercise which will take a fair amount of development-time.
I are Troll
|
|
|
|
|
|
hi all,
I want to bind enum with a GridView.
my enum is like this:
enum tType
{
abc = 1,
xyz = 2,
pqr = 3
}
Now i want to display values of this "tType" in my GridView column.
Can anybody tell me how to do it?
Thanks,
Nagendra.
|
|
|
|
|
This[^] tells about binding an enum to DataGridView.
"No matter how many fish in the sea; it will be so empty without me." - From song "Without me" by Eminem
|
|
|
|
|
Thanks for the reply, but i wanted slightly different result which i achieved using DictionaryEntry object. ![Smile | :)](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
I am having treeview with some nodes. If there is no. of node is more than height of treeview then scroll bar is coming.
Now the problem is, because of scroll bar i am not able to see the last node. How i can solve this issue?
Thanks in advance.
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:49am.
|
|
|
|