473,672 Members | 2,676 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need Perl OLE help

3 New Member
Hey Everyone,
I am really stuck...possibl y 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 2361
eWish
971 Recognized Expert Contributor
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
2135
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 be to convince them otherwise. The basic design of the application is object oriented. I've never used Perl's OO features, so I'm not in a good position to make a comparison of the two languages from an OO point of view. Can somebody who's...
2
2013
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 me no good. What I'm trying to do is this; I have a single document (template.doc) that I need a copy of for ~50 people currently, and rather than just copying it 50 times and renaming them I decided to play with perl instead. This is what...
1
3110
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 matches from another text file, which has about 170 entries. The second text file is read into an array. The process then scans through the big file for certain possible patterns - it will find those in about 1 out of 25 lines,, when it finds one,...
7
4384
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 few features that you'd expect in any editor, except nearly none of them seem to have: 1 - Search and repalce with Regular Expressions. 2 - Search and Replace in an Xpath context. 3 - User specified tag-generation for either on a...
20
4259
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 is structured as an upside-down tree, and (if I remember correctly) never more than 4 levels. The site basically grew (like the creeping black blob) ... all the pages were created in Notepad over the last
2
1721
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 which would take in as input the state code, of the 50 states belonging to the Unites States of America. After the user enters the two letter code and presses the "GO" button, a *.xsd file is parsed to retrieve information about the entire state...
3
325
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 for perl? Please Help me... Thanks Rahul S
4
1895
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 choose(Hakia, AltaVista and Google) as my search engines. I developed a html(MySearchPage.html) with textbox and submit button, when search term entered and clicking on submit button it calls a perl file. In perl file there is a Html code, the window is first...
2
1529
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 = "Perl is a dynamic programming language created by Larry Wall and first released in 1987, Perl is based on the brace-delimited block style of AWK and C, and was widely adopted for its strengths in text processing
11
6176
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
8486
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8828
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8608
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6238
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5705
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4418
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2819
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2063
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1816
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.