Solved

Set Word Doc settings programmatically

Posted on 2007-11-19
3
156 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

739 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