VB & Visio Drawing Control

  • Thread starter Michael, TransmissionsLLC
  • Start date
M

Michael, TransmissionsLLC

I am using the visio drawing control in a VB 6 form. I load a document into
it at runtime by setting the source, then set the source to "" as per the
help file, then make some changes to the underlying document. I assign a
GUID via object.unique(visGetOrMakeGUID), but when I save the file it
doesn't seem to save the GUIDs with the objects. Can anyone explain what I
am doing wrong?

Thanks,

Michael
 
M

Michael, TransmissionsLLC

I should add that I am using VB 6 on Windows XP with the following code:


.....other code.......

frmMainMenu.DrawingControl1.Src = DestinationDir & FileName
frmMainMenu.DrawingControl1.Src = ""
Set vsoDocument = frmMainMenu.DrawingControl1.Document

'********
'stuff here that uses that uses the
object.unique(visGetOrMakeGUID) on various Visio shapes
'****************
'save the visio file
vsoDocument.SaveAs DestinationDir & FileName

....other code.....


Michael
 
M

Michael, TransmissionsLLC

Hi - I figured out my problem and it was unrelated to Visio.

Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top