15,906,329 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by mpower88 (Top 6 by date)
mpower88
5-Apr-11 7:37am
View
Well, i thought so too, but for some reason, it does not behave like that. It only does when i open the template manually... But my method works around that... thx for the input
mpower88
5-Apr-11 6:51am
View
I fixed it, this is my solution:
//create new document, location = path to template
Document doc = Globals.ThisAddIn.Application.Documents.Add(location);
//auto run macro
doc.RunAutoMacro(WdAutoMacros.wdAutoOpen);
Thank you for your help Slacker007 !
mpower88
5-Apr-11 6:44am
View
I've done that, now i have just 1 problem.
I call te template like this: "Globals.ThisAddIn.Application.Documents.Open(location);"
where location is the path to the template. but i realy open the template, but i need to open a new document based on the template... thx for your help btw!
mpower88
5-Apr-11 6:43am
View
Deleted
I've done that, now i have just 1 problem.
I call te template like this: "Globals.ThisAddIn.Application.Documents.Open(location);"
where location is the path to the template. but i realy open the template, but i need to open a new document based on the template... thx for your help btw!
mpower88
5-Apr-11 6:15am
View
Yes that is what i want, do you know how to do that? Do i need to save my document with macro as a .dotm? (word macro-enabled template)
mpower88
12-Jan-11 4:48am
View
worked! thx a lot!
Show More