473,796 Members | 2,640 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to show/hide word toolbars?

Hi!
Can someone please explain me how to show/hide word toolbars?
I'm oppening new word doc with follownig code.
public class classWordDoc
{

private Word.Applicatio nClass WordApp = new Word.Applicatio nClass();
Word.Document bDoc = new Word.Document() ;

//ctor
public classWordDoc()
{
}

public void NewDoc
{
try
{
object missing = System.Reflecti on.Missing.Valu e;
object fileName = "normal.dot ";
object newTemplate = false;
object docType = 0;
object isVisible = true;
object readOnly = false;
object DocType = 0;

WordApp.Visible = true;

bDoc = WordApp.Documen ts.Add(
ref fileName,
ref newTemplate,
ref docType,
ref isVisible);

bDoc.Activate() ;
}
catch(COMExcept ion exp)
{
MessageBox.Show (exp.Message);
}
catch(Exception exp)
{
MessageBox.Show (exp.Message);
}

}
Nov 16 '05 #1
0 1327

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1496
by: Jamie Schwinn | last post by:
I'm building a web app in asp.net and I'd like to have the IE window hide all of it's toolbars and run with just the title bar showing when the user browses to my internal intranet web app. I know this functionality is possible because MS CRM is able to reconfigure the IE window when the user browses to CRM. CRM has the following lines in web.config... <snip> <appSettings> <!--
2
2268
by: Sandra | last post by:
Hello, I want to develop an application for WindowsCE using eMbedded Visual C++ 4.0. Is it possible to add/delete or hide/show toolbars by running the application. e.g. the user choose a menuitem and then a second toolbar should be opened. Can anybody help me??? Many greetings Sandra
3
479
by: di | last post by:
I have a Access Database, and I would like to create a word document that (preferable would filter)links to ACCESS table or query. I would like to print the word document on the filtered record that I have selected in Access. for example if I have customer number (201) that I would like to merge over to a Word document. The word document is a template that I would like to use regularly. Thanks so Much for anyone that can WALK me thru...
1
11323
by: cefrancke | last post by:
I have set the Startup properties to the following... All menus, toolbars, etc are turned off plus these are unchecked Allow Full Menus Allow Built-in Toolbars Allow Default Shortcut Menus Allow Toolbar/Menu Changes Use Access Special Keys
4
1659
by: MLH | last post by:
Is there a simple way to hide built-in toolbars in A97?
0
1075
by: Jerwin | last post by:
I have successfully embedded a Word document in my ASPX. I can view an write onto the Word document, as if the word document was pasted on the page It's like a 4"x3" area where u can view a word document - scroll, select, cut and paste However, my problem is i want to default the Standard Toolbars on th embedded Word Object. Coz inititally there aren't any toolbars on top of th embedded Word - just the scrollbars. What I do is right click...
1
2181
by: Jamie Schwinn | last post by:
I'm building a web app in asp.net and I'd like to have the IE window hide all of it's toolbars and run with just the title bar showing when the user browses to my internal intranet web app. I know this functionality is possible because MS CRM is able to reconfigure the IE window when the user browses to CRM. CRM has the following lines in web.config... <snip> <appSettings> <!--
0
1195
by: julie | last post by:
I have a CrystalReportViewer on a web page and when I click on the export button and select Word, the report opens in separate window in ..doc format, but the user cannot print / save as the standard word toolbar / menubar is not available. Toolbars and menus are also missing when I export to other formats e.g. excel and rich text format (pdf is ok). Any ideas how to export the report in Word and see the usual Word toolbars and menu...
0
1186
by: julie | last post by:
I have a CrystalReportViewer on a web page and when I click on the export button and select Word, the report opens in a separate window in ..doc format, but the user cannot print or save as the standard word toolbar and menubar is not available. Toolbars and menus are also missing when I export to other formats e.g. excel and rich text format (pdf is ok). Any ideas how to export the report in Word and see the usual Word toolbars and...
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10221
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10169
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9050
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.