Results 1 to 3 of 3

Thread: Off-page references in Visio Automation with VB6

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2005
    Posts
    4

    Question Off-page references in Visio Automation with VB6

    Hi
    I am involved in a project which partly requires Visio automation.. Anybody knows how to create an off-page reference and point it to a page of certain name?

    Following lines of code dont seem to work

    VB Code:
    1. Set vsoMaster1 = vsoStencil.Masters.ItemU("Off-page reference")
    2.  
    3. vsoMaster.Shapes.Item(1).AddHyperlink.Name = "OffPageConnector"
    4. vsoMaster.Shapes.Item(1).AddHyperlink.Description = "Off-page Re&ference"
    5. vsoMaster.Shapes.Item(1).AddHyperlink.Address = "Page-2"

    Any help wud be greatly appreciated while I tinker around on my own
    Last edited by Silverblue; Sep 29th, 2005 at 07:07 AM.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Off-page references in Visio Automation with VB6

    Welcome to the Forums.

    Moved from the API forum.

    I have done some Visio Automation before on this site. Try a search by my username and Visio for some code examples that may help.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2005
    Posts
    4

    Resolved Re: Off-page references in Visio Automation with VB6

    Heyyy

    Figured it out myself After creating the off-page reference, use SubAddress property to point it to a page within the same Visio Doc

    VB Code:
    1. vsoOffPageReference.AddHyperlink.SubAddress = "Pagename"

    It works
    Last edited by Silverblue; Oct 5th, 2005 at 12:29 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width