Solved

Set Word Doc settings programmatically

Posted on 2007-11-19
3
151 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
Comment Utility
0
 
LVL 18

Expert Comment

by:armoghan
Comment Utility
0
 
LVL 18

Expert Comment

by:armoghan
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
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 is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 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

10 Experts available now in Live!

Get 1:1 Help Now