S
SoniaChandra
Hi!
I have created a template which includes a background picture and some
settings. I am trying to use this template when I open visio through VB.
When I open this file then any changes I make it seems like it is being made
to my template file.
What is the right way of opening a template? I tried to do the following:
Const TEMPLATEPATH As String = "D:\Visio
Template\SitesAndCableTemplate.vst"
Const SAVENEWFILE As String = "D:\Diagram.vsd"
vApp = New Microsoft.Office.Interop.Visio.Application()
'Create a new document; note the empty string.
vDoc = vApp.Documents.Add("")
vStencil = vApp.Documents.OpenEx(TEMPLATEPATH, 4)
Your help is greatly appreciated.
Thanks,
Sonia
I have created a template which includes a background picture and some
settings. I am trying to use this template when I open visio through VB.
When I open this file then any changes I make it seems like it is being made
to my template file.
What is the right way of opening a template? I tried to do the following:
Const TEMPLATEPATH As String = "D:\Visio
Template\SitesAndCableTemplate.vst"
Const SAVENEWFILE As String = "D:\Diagram.vsd"
vApp = New Microsoft.Office.Interop.Visio.Application()
'Create a new document; note the empty string.
vDoc = vApp.Documents.Add("")
vStencil = vApp.Documents.OpenEx(TEMPLATEPATH, 4)
Your help is greatly appreciated.
Thanks,
Sonia