Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am a newbie to C# and COM addins for Office but i have a requirement for Word addin which shows a countdown timer when a word document is started and closes and saves the document when the countdown timer times finishes.

I have developed a user control which does the work of a countdown timer now i am trying to create a shared office addin which could display this timer every time a word document is loaded.

Can somebody guide me to the right direction on how to do it. As my layman sense didnt work when i tried to call the constructor of user control in connect.cs of office COM addin.
Posted
Comments
Sergey Alexandrovich Kryukov 8-Oct-12 2:59am    
If you have such question and such weird requirements, you should at least explain why doing such a weird thing -- not too many will want to waste time for something which might make no sense. I would understand if it was some school exercise, but hardly a program to be user by real users.
--SA
Shah Ali Haider 8-Oct-12 4:00am    
well its an intra-net office management system deployed in windows network environment. One module is taking exam of employees. So one of the JSF pages in exam module has two buttons start and submit. I am required to implement the following scenario.

-Path to save the word file, the time duration after which the word document will be saved automatically again and again (so that its not lost in case application crashes) and the total time for which the timer will run will be passed to this page.

-When the start button is clicked a MS Word document should be opened along with a countdown timer control which shows the remaining time (kind of pop up).

-Until the timer is ticking the user should be able to write in the word document and document should be saved automatically after each say 30 seconds at the server path passed to the page.

-When the total time expires the document is saved on the server on the same path. The timer and the document should be closed then.

PS: I developed the scenario in asp.net where i used Ajax editor to let the user write whatever he wants to till a count down timer expires or submit button is clicked. Once time expired or submit button was clicked all the text in Ajax editor was converted from RTF to Word Format, a word file was created and saved on the server path passed to the page. But it was not accepted and i was told to look into Office Addins to get the job done. And its a requirement to open Word document and the user should write directly in that word document.

I hope now its little clearer for you to guide me to the right direction.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900