RE: webbrowser in vb.net
- From: jialge@xxxxxxxxxxxxxxxxxxxx (Jialiang Ge [MSFT])
- Date: Mon, 17 Sep 2007 13:34:59 GMT
Hello Komandur,
1). how can i hide standard/drawing/ bars in webbrowser control, if iselect
webbrowsershortcutenabled = false, its not doing, i checked with itsother
property also, but its not hidding all the barsThe codeproject document:
http://www.codeproject.com/office/Embedding_Excel.asp shows a demo for your
reference.
First, we need to get the current object of Word Application (see the
method GetActiveWorkbook in ExcelWrapper of the above demo project). The
command bars could be hidden by calling ".Visible=false" on the command bar
objects of Excel application. Suppose that m_wordApplication refers to the
application object of Word.
For Each bar in m_XlApplication.CommandBars iterates all the command bars
in the application and
bar.Visible = False; makes all of them invisible. In this way, we could
also hide all the menus, taskpanes and etc.
2). and i need to set the default layout for the browser is WEB VIEWLAYOUT,
and other layouts ( which is in the webbrowser down bottom), i need tohide
In the first question, we already get the object of the current Word
application. To set the Word's layout as Web View, we could call:
m_wordApplication.ActiveWindow.View.Type = wdWebView
But I did not find a method to disable the other view types. I have sent an
email to consult the issue and will get back to you as soon as possible.
3). if i open the readonly recommended DOC file thru browser, still itsopening,
askign for MODIFY password, if i click READONLY ( modify password is
important, since the same document is sharing with other users), its
how can i set this readonly as default, whenever the application getsopen,
and is it possible for me to open the same file with different users atthe
same time, does it affect readonly propertyI did not find any method or parameter in WebBrowser control to specify the
open type. I have sent an email to development team and check whether there
is a workaround for it.
Besides, when a file is opened and 'Modify' is allowed, the following opens
of the file can only be ReadOnly due to the lock of the file. For instance,
suppose the first user open the file with Modify, then the second user can
only open it with ReadOnly.
Please let me know if you have any other concerns, or need anything else.
Sincerely,
Jialiang Ge (jialge@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support
==================================================
For MSDN subscribers whose posts are left unanswered, please check this
document: http://blogs.msdn.com/msdnts/pages/postingAlias.aspx
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express/Windows Mail, please make sure
you clear the check box "Tools/Options/Read: Get 300 headers at a time" to
see your reply promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- RE: webbrowser in vb.net
- From: Komandur Kannan
- RE: webbrowser in vb.net
- Prev by Date: Control Design in VS 2003
- Next by Date: disabling addins during command-line launch of VS.NET
- Previous by thread: Control Design in VS 2003
- Next by thread: RE: webbrowser in vb.net
- Index(es):
Relevant Pages
|