skinamdar has asked for the wisdom of the Perl Monks concerning the following question:

Hello Everyone, I want to read a visio file (.vsd file) i am able to read the file but i am not able to hide the file completely while reading. I mean to say to an extent $visioObj->{'Visible'} =0; will work. but still the files get opened and then it will be hidden. For the same property with excel i can hide the file while reading but not with visio. Can anyone in this forum please help me regarding this? Thanks and regards, skinamdar
  • Comment on Hiding .vsd file while reading the file.

Replies are listed 'Best First'.
Re: Hiding .vsd file while reading the file.
by Anonymous Monk on Feb 07, 2009 at 15:59 UTC
    The answer to every OLE question is RTFM. How to use OLE automation in Visio
    Set AppVisio = CreateObject("Visio.InvisibleApp")
    You can then use the Application object's Visible property to control whether the instance is visible.

    You can use the InvisibleApp object with only the CreateObject function. Attempts to use it with the GetObject function will fail. The InvisibleApp object is not available in versions of Visio earlier than Microsoft Visio 2000.

      Hi Anonymous monk, That works now !! Thanks a lot for that now i have one more quesion to that, i want to know how i can close the Visio object with out killing the visio process. skinamdar.