Solved

Set Word Doc settings programmatically

Posted on 2007-11-19
3
154 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

828 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