Solved

Set Word Doc settings programmatically

Posted on 2007-11-19
3
153 Views
Last Modified: 2013-11-26
Hi,

I am opening a word document with the code listed below:

How can I set the XSL stylesheet for my XML document? I know the very last parameter is:
ByRef XML Transform as Object, but I do not know enough to create the code myself.

Thanks
Dim oWord As Microsoft.Office.Interop.Word.Application = New Microsoft.Office.Interop.Word.Application
        Dim filename As String = Application.StartupPath + "\Output\Output.xml"
        Dim missing As Object = System.Reflection.Missing.Value
        oWord.Visible = True
        oWord.Documents.Open(filename, missing, missing, missing, missing, missing, missing, _
        missing, missing, missing, missing, missing, missing, missing, missing, missing)
        oWord.Activate()

Open in new window

0
Comment
Question by:ALawrence007
  • 3
3 Comments
 
LVL 18

Accepted Solution

by:
armoghan earned 500 total points
ID: 20349965
0
 
LVL 18

Expert Comment

by:armoghan
ID: 20349971
0
 
LVL 18

Expert Comment

by:armoghan
ID: 20350001
also if you have client on Windows 2000 and XP both
check this as well

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=783450&SiteID=1
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question