Click here to Skip to main content
15,902,737 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Microsoft Flexgrid Pin
nlarson1119-Oct-06 4:29
nlarson1119-Oct-06 4:29 
GeneralRe: Microsoft Flexgrid Pin
viji]21-Oct-06 18:34
viji]21-Oct-06 18:34 
GeneralRe: Microsoft Flexgrid Pin
nlarson1122-Oct-06 4:33
nlarson1122-Oct-06 4:33 
QuestionActivedocument error - word addin problem [modified] Pin
K edar V18-Oct-06 20:08
K edar V18-Oct-06 20:08 
AnswerRe: Activedocument error - word addin problem Pin
Edbert P19-Oct-06 19:26
Edbert P19-Oct-06 19:26 
GeneralRe: Activedocument error - word addin problem Pin
K edar V19-Oct-06 20:16
K edar V19-Oct-06 20:16 
GeneralRe: Activedocument error - word addin problem Pin
Edbert P19-Oct-06 20:26
Edbert P19-Oct-06 20:26 
GeneralRe: Activedocument error - word addin problem Pin
K edar V19-Oct-06 20:43
K edar V19-Oct-06 20:43 
My prob. starts with a looong histry..
First of all i;ve created word addin.. which when removed leaves the trace behind. I mean my_button(added in File Menu) is left there on word document.
I solved this NOTORIOUS problem using Normal.DOT way, like this
[CType(applicationObject, Word.Application).ActiveDocument.Saved = True]
and it get solved.

now, the problem occurs whenever i open and existing document.
Reason: As there is no ActiveDocument, the code above gives me an error

To solve this problem, i've used word document's WindowActivate event to add my button to file menu, by following way..
OnStartupcomplete, i assigned application-Object to objW, like this,
wObj = CType(applicationObject, Word.Application).Application

and then add my own menu button to File-Menubar of word, like this:
[applicationObject.CommandBars.item("File").Controls.Add(MsoControlType.msoControlButton, 1, "", 6, True)]
well, i do check of if button already exists or not.

Now Problem arouse, as WindowActivate Event fires many times, that makes my pgm sick. So in solution of that, i have set objW = nothing
which causes No more WindowActivate event(Only once) and still code runs fine.

Setting objW = nothing raises one more error:
Now as i create a new Document from File>New, the addins button not loaded in it as no event fired !
I'm trying all different events for this and different approaches for this, but all invain.. of no use or just not working..
Your replies gives me new hope to work on for the solution.. thanks for ur replies... if u find any line confusing .. do ask .. Thank you

"You can do any thing you set to your mind" - theGhost_k8

GeneralRe: Activedocument error - word addin problem Pin
Edbert P19-Oct-06 21:06
Edbert P19-Oct-06 21:06 
GeneralRe: Activedocument error - word addin problem Pin
K edar V19-Oct-06 21:23
K edar V19-Oct-06 21:23 
QuestionDecryption(plz urgent,,,_ Pin
ravimorampudi18-Oct-06 19:39
ravimorampudi18-Oct-06 19:39 
AnswerRe: Decryption(plz urgent,,,_ Pin
Dave Kreskowiak19-Oct-06 4:55
mveDave Kreskowiak19-Oct-06 4:55 
GeneralRe: Decryption(plz urgent,,,_ Pin
Colin Angus Mackay19-Oct-06 13:48
Colin Angus Mackay19-Oct-06 13:48 
GeneralRe: Decryption(plz urgent,,,_ Pin
Dave Kreskowiak19-Oct-06 18:02
mveDave Kreskowiak19-Oct-06 18:02 
AnswerRe: Decryption(plz urgent,,,_ Pin
Colin Angus Mackay19-Oct-06 13:51
Colin Angus Mackay19-Oct-06 13:51 
QuestionAccessing Controls On Other Forms Pin
johngod18-Oct-06 19:19
johngod18-Oct-06 19:19 
AnswerRe: Accessing Controls On Other Forms Pin
nlarson1119-Oct-06 5:05
nlarson1119-Oct-06 5:05 
QuestionHow to create Custom word Document Pin
chandu4codeproj18-Oct-06 18:34
chandu4codeproj18-Oct-06 18:34 
AnswerRe: How to create Custom word Document Pin
Edbert P19-Oct-06 19:30
Edbert P19-Oct-06 19:30 
GeneralRe: How to create Custom word Document Pin
chandu4codeproj20-Oct-06 17:51
chandu4codeproj20-Oct-06 17:51 
GeneralRe: How to create Custom word Document Pin
Edbert P22-Oct-06 13:02
Edbert P22-Oct-06 13:02 
QuestionInvalid Operation Exception Was Unhandled Pin
UltraCoder18-Oct-06 18:23
UltraCoder18-Oct-06 18:23 
QuestionLoad Report Fail in Win 98 Pin
khwo18-Oct-06 15:40
khwo18-Oct-06 15:40 
AnswerRe: Load Report Fail in Win 98 Pin
Dave Kreskowiak18-Oct-06 17:52
mveDave Kreskowiak18-Oct-06 17:52 
GeneralRe: Load Report Fail in Win 98 Pin
khwo18-Oct-06 19:55
khwo18-Oct-06 19: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.