Click here to Skip to main content
15,895,142 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionSimple tone generator in VB Pin
jonls26-Feb-06 16:24
jonls26-Feb-06 16:24 
AnswerRe: Simple tone generator in VB Pin
progload26-Feb-06 18:30
progload26-Feb-06 18:30 
GeneralRe: Simple tone generator in VB Pin
jonls27-Feb-06 5:10
jonls27-Feb-06 5:10 
AnswerRe: Simple tone generator in VB Pin
Member 1128712314-Jul-18 7:50
Member 1128712314-Jul-18 7:50 
QuestionCapture search results into active child form Pin
jputhra26-Feb-06 15:41
jputhra26-Feb-06 15:41 
QuestionHow to create multiple reports in ReportViewer? Pin
Rashar26-Feb-06 14:47
Rashar26-Feb-06 14:47 
Questioncreating multiple dataset based upon a query Pin
uglyeyes26-Feb-06 12:49
uglyeyes26-Feb-06 12:49 
QuestionMicrosoft Word Grammar Check Pin
Purple Monk26-Feb-06 11:41
Purple Monk26-Feb-06 11:41 
Hi all,

I want to get the grammar suggestions from Microsoft Word 2003 Pro. I can get the problems but not the correction offerings, has anybody done this and if so could you possibly point me in the right direction.

This is what i have so far

Dim oWord As New Word.Application
Dim oDoc As New Word.Document
Dim oRng As Word.Range
Dim i As Long
Dim oGrErrors As Word.ProofreadingErrors

oWord.Visible = False
oWord.WindowState = 0
oWord.Top = -3500

oDoc = oWord.Documents.Add
oRng = oDoc.Range
oRng.Text = strPhrase

oGrErrors = oRng.GrammaticalErrors
For i = 1 To oGrErrors.Count
oRng = oGrErrors.Item(i)
MsgBox(oRng.Text)
Next

oDoc.Close(0)
oWord.Quit(0)
oWord = Nothing

The above example just picks out the problems and shows you them which is useless unless i write my own grammar dictionary. I have managed to get the spelling suggestions but there seems to be no way of getting the grammar suggestions.

Note: Calling CheckGrammar provides the grammar check interface which i don't want the user to see or use, this needs to be an internal check.

I have been looking everywhere and found that no-one seems to have an example of this, please help.

Thanks

Purple

"If i was king cigarettes would be free."


QuestionBindingNavigator question Pin
Brian Holdridge26-Feb-06 11:24
Brian Holdridge26-Feb-06 11:24 
QuestionAxwebbrowser autommatic log and password ?? HOW Pin
szaki26-Feb-06 10:43
szaki26-Feb-06 10:43 
QuestionThe TypeInitializer threw an Exception Pin
Devraj Raut26-Feb-06 9:42
Devraj Raut26-Feb-06 9:42 
AnswerRe: The TypeInitializer threw an Exception Pin
Guffa26-Feb-06 10:22
Guffa26-Feb-06 10:22 
AnswerRe: The TypeInitializer threw an Exception Pin
Joshua Quick26-Feb-06 10:22
Joshua Quick26-Feb-06 10:22 
QuestionScrollbar Pin
ADY00726-Feb-06 9:08
ADY00726-Feb-06 9:08 
AnswerRe: Scrollbar Pin
progload26-Feb-06 10:07
progload26-Feb-06 10:07 
Questionupdating access db from dataform Pin
wiseyuss26-Feb-06 7:53
wiseyuss26-Feb-06 7:53 
AnswerRe: updating access db from dataform Pin
Joshua Quick26-Feb-06 9:46
Joshua Quick26-Feb-06 9:46 
QuestionListview Items Index Pin
aransiola26-Feb-06 7:49
aransiola26-Feb-06 7:49 
AnswerRe: Listview Items Index Pin
Joshua Quick26-Feb-06 9:35
Joshua Quick26-Feb-06 9:35 
NewsHelp !!! no ther forums help me on this Pin
zer0frost26-Feb-06 7:47
zer0frost26-Feb-06 7:47 
GeneralRe: Help !!! no ther forums help me on this Pin
RichardBerry26-Feb-06 18:53
RichardBerry26-Feb-06 18:53 
GeneralRe: Help !!! no ther forums help me on this Pin
Tremonde4-Mar-06 13:48
Tremonde4-Mar-06 13:48 
QuestionFlexgrid in DOTNet Pin
aransiola26-Feb-06 7:30
aransiola26-Feb-06 7:30 
AnswerRe: Flexgrid in DOTNet Pin
Michael P Butler26-Feb-06 8:17
Michael P Butler26-Feb-06 8:17 
GeneralRe: Flexgrid in DOTNet Pin
aransiola27-Feb-06 21:55
aransiola27-Feb-06 21:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.