Solved

Set Word Doc settings programmatically

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

920 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now