Which code should you add to the application?

You have a Windows Forms application that contains an embedded Visio Drawing Control. You have an Office Visio 2007 drawing saved as C:\Template.vsd. You need to configure the application to load and display the drawing as a template by using the Visio Drawing Control. Which code should you add to the application?

You have a Windows Forms application that contains an embedded Visio Drawing Control. You have an Office Visio 2007 drawing saved as C:\Template.vsd. You need to configure the application to load and display the drawing as a template by using the Visio Drawing Control. Which code should you add to the application?

A.
Me.axDrawingControl1. Document. Application.Documents.Open( ” C:\Template.VSD ” )

B.
Me.axDrawingControl1.Window.Application.Documents.Open( ” C:\Template.VSD ” )

C.
Me.axDrawingControl1.Src = ” C:\Template.VSD “

D.
Dim openDockedFlag As Short = CShort(Visio.VisOpenSaveArgs.visOpenDocked) Me.axDrawingControl1.Window.Application.Documents. OpenEx(“C:\Template.VSD”,openDockedFlag)



Leave a Reply 0

Your email address will not be published. Required fields are marked *