View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
babba babba is offline
external usenet poster
 
Posts: 1
Default attach manifest on install of a smart document

I have a smart document and i want create a custom action in installation setup (made in VB.NET) that attach a xml manifest to a excel model (xlt)...

I saw an axample for Word but i'm not be able to traduce in excel: could you give me an help please

example in Word
Dim objWord As New Word.Applicatio
Dim objDoc As Word.Documen
Const ALIAS As String = "Simple Sample
Const URI = €śSimple.Sample€
objWord.XmlNamespaces.InstallManifest ("C:\temp\manifest.xml"
Set objDoc = objWord.Documents.Open("C:\temp\SimpleSample.doc€ ť
objDoc.Activat
objWord.XmlNamespaces.Item(Index:=URI).AttachToDoc ument
Document:=ActiveDocumen
objDoc.Sav
objDoc.Clos
Set objDoc = Nothin
objWord.Qui