cancel
Showing results for 
Search instead for 
Did you mean: 

Hide toolbars of Word document Using office control

Former Member
0 Kudos

Hi,

I am using Office control UI element(word document) to display data in my application.Is it possible to hide the toolbars(Menu,Application....) of Word document.We should not allow the user to use any tool bars of word document. We should only allow the user to edit the data.Please tell me how to hide the toolbars of word document.

Please give me suggestions to solve this issue.

Thanks in advance.

Suman.

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

There is an expert mode that allows you to interact more closely with the OfficeControl via some proxy classess:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/8e/128b41b4b3b55fe10000000a1550b0/frameset.htm

I don't see anything direclty for disabling the toolbars. However there is a method RUNMACRO of IF_IOS_WORDPROCESSING. Perhaps you could write a word macro that removed the toolbars. I'm afraid I'm not well versed enough in macros to even say 100% if this would be possible. Also the macro would already have to be part of the document or document template that you are loading.

Former Member
0 Kudos

Hi Thomas,

Thanks for your reply.Let me try with your solution.

Thanks,

Ch.Suman kumar

Former Member
0 Kudos

Hi Suman,

I have the same requirement.

How did you hide the tool bars in Office Control?

Thanks

Sundar