473,405 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Need Perl OLE help

Hey Everyone,
I am really stuck...possibly more stuck than almost anyone has ever been in his/her entire life. I am trying to write a Perl script that uses Visio to draw a 'connector' that is attached to two rectangles, however, I am having trouble getting the connector object to draw.
I have:

Expand|Select|Wrap|Line Numbers
  1. our $Visio = Win32::OLE->new('Visio.Application') or die "Cannot locate Visio.\n";
  2. $Visio->{'Visible'} = 1;
  3. our $VDocs = $Visio->Documents;
  4. our $VDoc = $VDocs->Open("C:\\visio\\test.vsd");
  5. our $VPage = $VDoc->Pages->Item(1);
  6. our $VShapes = $VPage->Shapes;
  7. $connector = $VPage->Drop($Visio->ConnectorToolDataObject, 2, 2);
  8.  
Also, I think the VB code for drawing a connector looks something like this

Expand|Select|Wrap|Line Numbers
  1. Set line = ThisDocument.Pages(1).Drop(Visio.Application.ConnectorToolDataObject, 2, 2)
  2.  
The Perl part isn't working for me. If you could help me I'd really appriciate it. I am pretty noob with Perl OLE.
Thanks,
Joseph
Nov 14 '07 #1
1 2347
eWish
971 Expert 512MB
I have not worked with Microsoft Visio, but the Visio Modules are designed for that purpose. I would have a look and see if the modules do what you need.

If someone else here is able to help you then I would consider posting at perlmonks as well.
--Kevin
Nov 14 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Roy Smith | last post by:
I'm working on a prototype of a new application in Python. At some point, if this ever turns into a product, the powers that be will almost certainly demand that it be done in Perl. My job will...
2
by: David K. Worman | last post by:
So this is probably a simple thing I'm missing, but then I just started working with perl tonight - and of course I bought the Camel book, and conveniently left it at work on my desk where it does...
1
by: Spamtrap | last post by:
I only do occasional Perl programming and most things I write are short processes. I have something I'm working on that is scanning a text file with about 15 million lines and trying to extract...
7
by: Mike Kamermans | last post by:
I hope someone can help me, because what I'm going through at the moment trying to edit XML documents is enough to make me want to never edit XML again. I'm looking for an XML editor that has a...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
2
by: MK | last post by:
Hello, I am new to XML and PERL and I have a few questions the answers to which I need to complete a project. All your time and effort would be highly appreciated. I have to make a small HTML page...
3
by: rahul sinha | last post by:
Hi, I am using an Apache2Triad web server to execute my PHP scripts on my local machine. What I want to do now is to execute a perl project on it.How can I do that? How to check the web server...
4
by: Freedolen | last post by:
Hi I found a website "http://www.gahooyoogle.com" which is a search engine and fetches result from both yahoo and Google. tried to develop a similar one but with more simpler and i...
2
by: sangith | last post by:
Hi, I am trying to understand a concept in Regex in Perl. How to write regex in Perl such that metacharacter * is not greedy. Here is my code:- #!usr/bin/perl use strict; my $sentence =...
11
by: bthalapathi | last post by:
I have written a script to connect the mysql db #!/usr/bin/perl -w use DBI; #definition of variables $db="MYTEST"; $host="localhost"; $user="root"; $password="rootpass";
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.