I am trying to get this sub to work:

Code:
' How to search and replace content in a document part. 
Public Sub SearchAndReplace(ByVal document As String)
    Dim wordDoc As WordprocessingDocument = WordprocessingDocument.Open(document, true)
    Dim docText As String = Nothing
    Dim sr As StreamReader = New StreamReader(wordDoc.MainDocumentPart.GetStream)
    docText = sr.ReadToEnd
    sr.Close
    Dim regexText As Regex = New Regex("Hello world!")
    docText = regexText.Replace(docText, "Hi Everyone!")
    Dim sw As StreamWriter = New StreamWriter(wordDoc.MainDocumentPart.GetStream(FileMode.Create))
    sw.Write(docText)
    sw.Close
    wordDoc.Save
End Sub
Here is where it is from: http://msdn.microsoft.com/en-us/libr...ice.12%29.aspx

VB Express imports the necessary namespaces but then says "save" is not a method of the object being called. Anyone experienced with the Open XML SDK?