473,770 Members | 6,950 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Any ideas how to Run Macro in Microsoft Publisher through PHP COM ?

my macro in Publisher changes "123" into "321" (example)
but I can't be able to run it.
This is how far I get throught with PHP & Publisher:

<?
$pub = new COM('publisher. application') or die('Unable to load
Publisher');
print "Loaded Publisher, version {$word->Version}\n";

$pub->Open('xxx.pub' );

$pub->Documents[1]->SaveAs('xxx2.p ub');

$pub = null;

?>

this works, but of course does not do anything else than open xxx.pub
and save it as xxx2.pub. I am trying to run my macro:

$pub->Documents[1]->RunMacro(repla ceme);

where replaceme is my macro. I tried different variations:

$pub->Documents[1]->Run(replaceme) ;
$pub->Documents[1]->Application->Run(replaceme) ,

etc but no luck so far :(

Jan 26 '07 #1
0 1819

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
10040
by: Chango V. | last post by:
Hello, We seem to need a PIA for MSXML 4. According to the documentation, only the original publisher of a COM type library is supposed to create a .NET PIA. As far as I know, Microsoft hasn't done that yet. Our problem is that we very much want to create a PIA for a COM component of ours, but TlbImp.exe /primary insists that all referenced dependencies be PIAs as well. Our component has a type library reference to MSXML 4, hence the...
1
2036
by: Seb LM | last post by:
Hello, I'd like to define a publisher policy which covers many versions of assembly from which the "major.minor version" are different but it's not possible to make a such publisher policy. So it's necessary to create a publisher policy for each new "major.minor version", which can take a long time to make manually. Do there exist tools to generate publisher policy for many "major.minor versions" from a simple and compact configuration...
5
3407
by: Piotrek Stachowicz | last post by:
Hi, Sorry, it's gonna be a bit off-topic but I'm looking for experienced ..NET (c#) developers and I guess there're quite many here. I'm looking for a topic for my final year project (B.sc). It has to do with .NET and preferably something with network programming (webservices) I'd like to learn something interesting and practical as well. Have you got any ideas?! Thanks,
2
1793
by: Brent Burkart | last post by:
I want to programatically create a Microsoft Publisher document using .NET. Has anyone tried this or seen any tutorials? Any help is appreciated. Thanks, Brent
0
1406
by: Rich | last post by:
Hello, I have a simple console app for deploying an MS Access app. Recently, I started having a problem publishing the app to my webserver with the publisher feature of VS2005 when I do an update to the app. So I created a "Hello World" in VB2005 for testing, and was able to deploy that app to the webserver using the publisher, and it brings up Publish.htm. But when I try to install the VBapp from the htm page, I get an error message...
0
1507
by: Ron | last post by:
Hi All, I am fairly new to MS SQL Replication. I have two servers one is setup as the publisher and the other is setup as both the subscriber and the distributor. Due to server reboots, the publicher DB became corrupted therefore we pointed all activity to the subscriber DB. Now we would like to bring back the publisher online, but we do not have a backup.
0
1552
by: =?Utf-8?B?TWFyayBX?= | last post by:
I have just upgraded Visual Studio from 2003 to 2005 and am in the process of converting my VB applications. Most conversions have gone quite smoothly. However, I have several Add-Ins that I developed to add button bars to Publisher 2003. When built these under VS 2003, they worked. I used the conversion wizard in VS 2005 to convert them. I then rebuilt and installed them. They refused to work in Publisher. I checked the registry and it...
1
1297
by: eashoor | last post by:
Hi All, I am a newbie and need help. I am creating a data capture website using microsoft publisher 2003. everything is lovely except 2 things, after uploading my site to my host 1- My form ( where people submit info) Does not send it to my email nor am I able to save it on a file. My webhoseting provider supports Publisher as well as frontpage extensions..98 and above
1
1992
by: mclewell | last post by:
I would like to start off by saying i'm in no way an expert by any means. I've had access since 97 and way back then set up a database for eBay stock. i had the old micrografx picture publisher program also installed. i got bloat i guess it's called due to the jpgs unbound in my form view, to get around this and still have pictures i created a start up database then just copied and renamed it for the different items on eBay, postcards,...
0
9591
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
9425
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10053
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...
0
9867
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8880
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7415
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
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3969
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
3
2816
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.