Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

run a macro from asp page 1

Status
Not open for further replies.

beginner999

Programmer
Mar 5, 2008
30
US
How can I run a macro asp page and put that word document in a folder.
Thanks and I appreciate your help
Harini
 
you'll need to provide alot more information than that.
1st. what do you mean by a macro asp page?
2nd. what word document?

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
How can I
1)run a macro in word document macro from the aspx page
2)Then unprotect the document
3)Then put it in a folder

Thanks and I appreciate your help
 
this is all completely independent of a webpage. all the webpage needs to do is mimic the end user. this can be done from the web.config authentication mode="Windows"

everything else is core .net or Office API.

note: the server will require ms word to be installed. as this is where all the work is taking place.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
how can I go and say in my code.
1) to run the macro in word document ,we need double click on a box.
 
macros are vba code within the word document. maybe the API for Word has a way to execute macros. Note: pseudo code
Code:
something like
MsWord word = new MsWord();
Document doc = word.LoadDocument("file name");
doc.ExecuteMacro("name of macro");
doc.Save();
//dispose of resources.

you may want to start in a VBA/MS Office forum and find out how to programatically execute macros.


Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top