Link to home
Start Free TrialLog in
Avatar of ALawrence007
ALawrence007

asked on

Set Word Doc settings programmatically

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

ASKER CERTIFIED SOLUTION
Avatar of armoghan
armoghan
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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