Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
IManFileSaveDlg not called
Marco_at_NL
Hello
I'm using FileSite 8.1. I want to catch the assigned documentnumber and version after the save in Worksite.
This my code code to place the hook (like in the sample), but it's never fired:
(EnhancedApplicationIntegrationSave=1 in the register). Is this the only code that's necessary or should i also place a hook on the NewProfile, NewVersion never called with EnhancedApplicationIntegrationSave=1, only with 0), etc.)
Private WithEvents objExtensibilitySink As iManO2K.iManageExtensibility
Private WithEvents objIManFileSaveCommand As IMANEXT2Lib.IManFileSaveCmd
Private WithEvents objApplicationSink As Word.Application
Public Sub SinkIManageExtensibility( _
objExtensibility As iManO2K.iManageExtensibility)
Set objExtensibilitySink = objExtensibility
Set objApplicationSink = Application
End Sub
Private Sub objExtensibilitySink_OnIManFileSave(ByVal objIManFileSaveCmd As Object)
Set objIManFileSaveCommand = objIManFileSaveCmd
End Sub
Thanks
Marco
Find more posts tagged with
Comments
jny
The code looks correct. Could you send in the code as attachment?
Marco_at_NL
That's difficult it's part of a larger template.. Maybe you post (or send a small example) that should work (in Office Xp and 2003 using FileSite 8.1).
Thanks
Marco
guido1
are you sure
any
extensibility events are firing? possibly you are passing in a dud pointer to the com addin
jny
You should be able to test it using the sample custom footer macro which is downloadable from technote 112004-1102.
LauraLee
jny-
I'm following this thread as I'm trying to put the doucment number (and other profile info) in a Word footer with VBA. I'm looking for one good sample of what libraries to reference and how to connect to their SINK object, etc.
The tech note sample you mentioned sounds like EXACTLY what I need but I can't locate it based on the number you gave. Can you give more info on where to find it (or any information on what I described) -- I searched for your number in the tech library.
(I'm extremely new to this site and may be looking in the wrong place.)
Thanks so much!
jny
I've attached it here.
LauraLee
Thank you
Thank you
Thank you!
LauraLee
I may have spoken too soon in thinking my problem was solved.
I've taken the sample template and tried to get it to create a footer (or do anything for that matter) and I'm not having any luck.
I think I am completely missing a critical first step and I apologize for my ignorance but I REALLY hope someone can help me.
What I've done:
I made sure code was not commented out in the sample template
I put it in my Word startup directory and saved/closed/opened documents.
I created a document based on the template and saved/closed/opened it, etc.
I checked that the libraries it's referencing are not missing.
I've compiled it to check for obvious errors.
When I save docs -- Nothing happens.
I put break points in every procedure and function in the class library and saved docs with it open -- it never stops as I would expect.
I do a lot of VBA programming, but NOT a lot of event handling and I feel like I'm stabbing around in the dark here.
MY GOAL: Get the document number and library name into a string so I can put it in the footer and make sure it's current when people save/save as/print.
Can anyone tell me:
1. Where in the template does the code to stick the doc number in the footer go (module, document, class library)
2. Is the template that holds it supposed to be in a startup directory? -- OR
3. In the templates from which docs are created (I want it for EVERY document they create, even from blank docs, and am loathe to mess with their normal.dot)
4. Am I supposed to be CALLING these event handlers, if so -- how? And where does that code go?
I know I'm asking a lot -- if there's some doucmentation someone can point me to, that would be greatly appreciated. I've read some Interwoven powerpoint presentations on this subject but everything leaves me with the question WHERE DO I PUT THE CODE SO IT WILL TRIGGER?
Thanks so much for any assistance.
LauraLee
LauraLee
Call off the dogs... I don't want to waste a bunch of some nice persons time!
I think I figured it out. (Shut everything down and started over. Funny how that works.)
I've got it putting the number in on save, though it doesn't show up 'till I close and then re-open the doc. But I can probably figure it out.
If now -- y'all will be hearing back from me!