COMatePLUS version 1.2

Developed or developing a new product in PureBasic? Tell the world about it.
TerryHough
Enthusiast
Enthusiast
Posts: 781
Joined: Fri Apr 25, 2003 6:51 pm
Location: NC, USA
Contact:

Re: COMatePLUS version 1.2

Post by TerryHough »

Looking at Comate for use with SAPI. Tried the example but I get no response. Anybody
know why?

Code: Select all

;/////////////////////////////////////////////////////////////////////////////////
;***COMate***  COM automation through iDispatch.
;*===========
;*
;*Sapi demo by ts-soft.
;/////////////////////////////////////////////////////////////////////////////////

IncludePath "..\"
XIncludeFile "COMatePLUS.pbi"

EnableExplicit 

Define.COMateObject obj = COMate_CreateObject("SAPI.SpVoice") 

If obj 
  obj\Invoke("Speak('PureBasic, feel the pure Power')") 
  obj\Release() 
EndIf
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: COMatePLUS version 1.2

Post by srod »

I had this problem as well a while ago. The demo worked fine and then it stopped! I can only assume that I installed something which cocked up some system library or setting etc. Never did get to the bottom of it. Since reinstalling Vista following a nasty virus, it all works fine again!
I may look like a mule, but I'm not a complete ass.
Bernard
User
User
Posts: 23
Joined: Sun Apr 27, 2003 4:49 pm
Location: France

Re: COMatePLUS version 1.2

Post by Bernard »

Hello,

I would like to merge somes cells :

Code: Select all

ExcelObject\SetProperty("Range(Cells(1,' + DebutJour + ')\Cells(1,' + (i-1)+debutColonnes + '))\MergeCells = #True ")
DebutJour = 91
(i-1)+debutColonnes = 104

How can I do

Thanks
Bernard
Artus
Enthusiast
Enthusiast
Posts: 104
Joined: Wed Feb 25, 2009 10:29 pm
Location: Germany
Contact:

Re: COMatePLUS version 1.2

Post by Artus »

Hi,

it's horrible, i searched, in google, for one hour und i didn't find any right tutorial for using Word via OLE Automation -.-
Has anybody a tutorial to create a table ,then a table in table and add a picture.
Or a good site with the Word-OLE-Reference? The "msdn" have no list of all commands.
I like to know all options, and not only to make it because it give the result, i like to know waht do each command.
I hope somebody can help me.

Thanks
Arthur
DoctorLove
User
User
Posts: 85
Joined: Sat Mar 06, 2010 2:55 pm

Re: COMatePLUS version 1.2

Post by DoctorLove »

Artus wrote:Hi,

it's horrible, i searched, in google, for one hour und i didn't find any right tutorial for using Word via OLE Automation -.-
Has anybody a tutorial to create a table ,then a table in table and add a picture.
Or a good site with the Word-OLE-Reference? The "msdn" have no list of all commands.
I like to know all options, and not only to make it because it give the result, i like to know waht do each command.
I hope somebody can help me.

Thanks
Arthur

Its simple.
Open up WORD, then record your macro what you are planning to do in WORD. Like adding tables and pictures. Then Stop the marco recorder and check the MACRO. There you will see all the commands you need.

If thats not enough, Then open up WORD and check the visual basic help file in the Visual basic editor for WORD.

Good luck!
Artus
Enthusiast
Enthusiast
Posts: 104
Joined: Wed Feb 25, 2009 10:29 pm
Location: Germany
Contact:

Re: COMatePLUS version 1.2

Post by Artus »

It's not so simple!
1. I can't record all
2. I still don't know to convert right to the PB COMatePlus
MisterDr
User
User
Posts: 41
Joined: Mon Sep 29, 2003 4:14 pm

Re: COMatePLUS version 1.2

Post by MisterDr »

Cannot download COMatePlus :?

"No input file specified. " when I go to the your site.
User avatar
Kiffi
Addict
Addict
Posts: 1484
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: COMatePLUS version 1.2

Post by Kiffi »

MisterDr wrote:Cannot download COMatePlus :?
http://www.purecoder.net/comate.htm

Greetings ... Kiffi
Hygge
leodh
Enthusiast
Enthusiast
Posts: 164
Joined: Sun Nov 06, 2005 6:07 am
Location: Perth Western Australia

Re: COMatePLUS version 1.2

Post by leodh »

Hi srod,

Is there going to be PB4.6 version of ComatePlus 1.2 or does the PB 4.5 version work with PB 4.6

Cheers
Regards
Leo
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: COMatePLUS version 1.2

Post by srod »

The existing version should work fine. Nothing has changed in PB 4.6 that I know of which will upset COMatePLUS. I have been using ADOmate (which uses COMatePLUS) with PB 4.6 without a problem.

By all means let me know if you do find a problem.
I may look like a mule, but I'm not a complete ass.
kinglestat
Enthusiast
Enthusiast
Posts: 746
Joined: Fri Jul 14, 2006 8:53 pm
Location: Malta
Contact:

Re: COMatePLUS version 1.2

Post by kinglestat »

I have a question

I have tried to use comateplus with word...and some things work...other don't...obviously very green about these advanced things for my poor brain
But one thing which I want to fix is the search & replace feauture. Maybe somebody has an example of how to use this with comateplus?
Would be greatly appreciated

cheers
I may not help with your coding
Just ask about mental issues!

http://www.lulu.com/spotlight/kingwolf
http://www.sen3.net
infratec
Always Here
Always Here
Posts: 7576
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: COMatePLUS version 1.2

Post by infratec »

Hi srod,

since I have to use COM objects in the near future, I just downloaded COMatePlus.
During my fisrt test I discovered, that I have to increase the first Delay() in Demo_SendKeys.pb
else nothing works.
Original:

Code: Select all

oWScript\Invoke("Run('calc')") 
  Delay(100) 
Modified:

Code: Select all

oWScript\Invoke("Run('calc')") 
  Delay(300)
Maybe my new PC is to fast :mrgreen:

Bernd
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: COMatePLUS version 1.2

Post by srod »

Well that will teach you to buy a flash new machine! :)
I may look like a mule, but I'm not a complete ass.
rtamely
New User
New User
Posts: 6
Joined: Tue Jul 15, 2008 8:38 pm
Location: RTAmely

Re: COMatePLUS version 1.2

Post by rtamely »

Yogi Yang
Enthusiast
Enthusiast
Posts: 107
Joined: Sun Dec 11, 2005 2:19 pm

Re: COMatePLUS version 1.2

Post by Yogi Yang »

rtamely wrote:http://www.nxsoftware.com webpage is out?
Web page not working.
--
Yogi Yang
Post Reply