473,795 Members | 3,333 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to enable the macros in word document



hello to all,
i am using .net web application. in my web page i am opening word
document. also i am having a VBA code in that so after opeining word
document VBA code will be executed for this i have to enable the macro
when ever i will open that word document.can any one help me to write
the code to enable macro at runtime. please try to give me C# web code.

*** Sent via Developersdex http://www.developersdex.com ***
Oct 21 '08 #1
0 3312

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

Similar topics

1
509
by: MSNEWS | last post by:
Hi I'm using the word.applicationclass within my vb.net application to convert some word documents to text files. Is there anyway I can disable macros whilst loading the document, in Word I can do that by running winword /a, but not sure how to add the switch using the word.applicationclass object. Thanks
5
1594
by: drequena | last post by:
Hi All, I'm not that expert at C but I'm trying to understand some code that does extensive use of the following two preprocessor macros: #define WORD(ptr) (((*(octet *)(ptr))<<8)|(*(octet *)((ptr)+1))) #define DWORD(ptr) (((*(octet *)(ptr))<<24)|(*(octet *)((ptr)+1)<<16)|\ (*(octet *)((ptr)+2)<<8)|(*(octet *)((ptr)+3))) I'm lost with all that shifting and indirection :-(
1
1548
by: n4ixt | last post by:
I have two macros I used to use in VS 2003. I recently tried to import them for use in VS 2005, but they don't seem to work. I open the macro explorer, right click and do run, but it's like VS never calls the things. What the heck am I doing wrong? Maybe it's just the late hour but I've been going in circles trying to figure it out. Here's the entire macro module below (be on the look out in case of any word wrap), any help is...
1
1122
by: djames | last post by:
Hi Gurus! Our users are required to use a MS Word template for reporting. The template has many bookmarked form fields. We have written an ASP.Net (2.0) application to populate those fields (server side) and download the document to the client. This all works well but there are still a couple of urgent issues we are having. 1. The template contains macros which must be available in the generated document. If we run the application...
1
2430
by: RobertK | last post by:
I need to write a c# code that will open up word documents and delete all the macros in it. Can some one please give me a code example or any ideas on how to do this. I already know how to open word docs from c# but I need the code to find all macros and remove them.
8
14085
by: dr3586 | last post by:
Hi, I have an Oracle PL/SQL procedure that extracts data into an excel worksheet. I am wondering if there is anyway from the procedure to also set the macros of the excel document that is created? For example, usually the macros are manually done: Go to Tools, Macros – Macro. Select the “Automate” macro and click “run”. However I am trying to automate the manual process. Any suggestions or direction? Thanks,
3
2082
by: scolivas | last post by:
I make and run macros all the time - now I need to schedule some reports to refresh from my machine round the clock. Problem is in order for the macros that do all my refreshing won't run unless I do one of 2 things - either reduce my security settings to low or actually click the button "enable macros". If i re-set the security settings - I cannot get to the macro's to edit them if need be (they automatically close the application) Is...
3
15081
by: aquasudha | last post by:
Dear Experts, When use copy and paste command or print command in MS Office Word 2007(Win Xp prof), I'm getting this Error message. "The macros in this project are disabled. please refer to the online help or documentation of the host application to determine how to enable macros." how can i rectify this problem?
0
9672
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
10213
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
10163
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
10000
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...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6780
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();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4113
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
3722
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.