COMate - control COM objects via automation - OBSOLETE!
Well then I suspect a mix up with the parameters or paramater types.
Use COMate_GetLastErrorDescription() to get an idea what the problem might be. If that doesn't help then equip yourself with some kind of OLE viewer so that you can drill down into the object's methods to look at the parameters etc.
Use COMate_GetLastErrorDescription() to get an idea what the problem might be. If that doesn't help then equip yourself with some kind of OLE viewer so that you can drill down into the object's methods to look at the parameters etc.
I may look like a mule, but I'm not a complete ass.
Code: Select all
KCC_Code = ReplaceString(KCC_Code, "AS COMate object", "AS COMateObject")

Greetings ... Kiffi
Hygge
- Kwai chang caine
- Always Here
- Posts: 5494
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
YEEEEEEEESSSSSS !!!!!!
KIFFI as win
It's funny how you have explain to me
Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks
I have forgotten Thanks,Thanks,Thanks,Thanks
I love you all
That's works
Well now again this important part not works.
It's for sending a document join
KIFFI as win

It's funny how you have explain to me

Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks,Thanks

I have forgotten Thanks,Thanks,Thanks,Thanks

I love you all

That's works
Well now again this important part not works.
It's for sending a document join
Code: Select all
; documents joint 1
Define bodyAtt.COMateObject
Define bodypart.COMateObject ; Added by KCC
If Len(Attachment1) > 0
If FileSize(Attachment1) > 0
bodyAtt = bodypart\GetObjectProperty(Str(#EMBED_ATTACHMENT) + ", '', '" + Attachment1 + "', '" + Attachment1 + "'")
EndIf
EndIf

Not a destination
- Kwai chang caine
- Always Here
- Posts: 5494
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
Yes yes my good SROD.
Keep cool
I understand quickly, but you must explain me a long time
This is this sentence that i do translate, right ???
Keep cool

I understand quickly, but you must explain me a long time

This is this sentence that i do translate, right ???
Code: Select all
Set bodypart = beDoc.CREATERICHTEXTITEM("Body")

Not a destination
Well, what is beDoc - where is that defined in your PB code? I see it in the VB code...
Code: Select all
bodypart = beDoc\Invoke("CREATERICHTEXTITEM('Body')")
I may look like a mule, but I'm not a complete ass.
- Kwai chang caine
- Always Here
- Posts: 5494
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
Thanks SROD
I have not again at the top, because me i have write this
I have again an error invalid memory with this code
I have not again at the top, because me i have write this

Code: Select all
bodypart\Invoke(Str(MailDoc) + " AS COMateObject \ CREATERICHTEXTITEM('Body'))
Code: Select all
; documents joint 1
Define bodyAtt.COMateObject
Define bodypart.COMateObject ; Added by KCC
bodypart = MailDoc\Invoke("CREATERICHTEXTITEM('Body')")
If Len(Attachment1) > 0
If FileSize(Attachment1) > 0
bodyAtt = bodypart\GetObjectProperty(Str(#EMBED_ATTACHMENT) + ", '', '" + Attachment1 + "', '" + Attachment1 + "'")
EndIf
EndIf

Not a destination
Sorry my mind is elsewhere at the moment.
or
Whichever one you need.
Code: Select all
bodypart = beDoc\GetObjectProperty("CREATERICHTEXTITEM('Body')")
Code: Select all
bodypart = MailDoc\GetObjectProperty("CREATERICHTEXTITEM('Body')")
I may look like a mule, but I'm not a complete ass.
- Kwai chang caine
- Always Here
- Posts: 5494
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
Yes yes i have correct that alone, it's a miracle no ?????
It is the fault at Kiffi, he changed the names of variables, I'm lost, ugly kiffi
In my mean, the problem is to translate this line
You have translated to this
But there are an memory error on this line 

It is the fault at Kiffi, he changed the names of variables, I'm lost, ugly kiffi



In my mean, the problem is to translate this line
Code: Select all
Set bodyAtt = bodypart.EmbedObject(EMBED_ATTACHMENT, "", Attach1, Dir(Attach1))
Code: Select all
bodyAtt = bodypart\GetObjectProperty(Str(#EMBED_ATTACHMENT) + ", '', '" + Attachment1 + "', '" + Attachment1 + "'")


Not a destination
- Kwai chang caine
- Always Here
- Posts: 5494
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
Code: Select all
bodyAtt = bodypart\GetObjectProperty("EmbedObject(" + Str(#EMBED_ATTACHMENT) + ", '', '" + Attachment1 + "', '" + Attachment1 + "')")
I may look like a mule, but I'm not a complete ass.
- Kwai chang caine
- Always Here
- Posts: 5494
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
- Kwai chang caine
- Always Here
- Posts: 5494
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
If i ask VB debugger what is the value of bodypart.name, he said to me "Body" and for bodyAtt.name, he said to me the name of the join piece 

Last edited by Kwai chang caine on Wed Nov 19, 2008 3:01 pm, edited 2 times in total.

Not a destination