Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to copy a word document into mail message body

18 views
Skip to first unread message

Jan Zagöra

unread,
Jul 9, 2003, 5:51:54 AM7/9/03
to
My application (PB7) needs to copy a word document into mail message
body (notetext), not as attachmenet.
Words copy/paste givs empty string or datatype mismatch (any/string).
Any ideas ?


Jan Zagöra

unread,
Jul 9, 2003, 9:45:44 AM7/9/03
to
I'm looking to keep the formating of the document.
When I use
lole_OLE.Documents.Open("c:\temp\file.doc")
lole_OLE.selection.wholestory
ole_item.body = lole_OLE.selection
the result is like his
Homeadress
C/Oadress



adress
Harkevål Där Fram


"Andy Turiansky [TeamSybase]" skrev:

> I guess one way is to connect to the document with OLE Automation and issue the
> select all/copy methods. Are you looking to keep the formatting of the
> docuemnt, or are you just after the content?
>
> On Wed, 09 Jul 2003 11:51:54 +0200,
> in powersoft.public.powerbuilder.ole-ocx-activex

> - - -
> Andy [TeamSybase]
>
> Techwave 2003 - http://www.sybase.com/techwave2003
> International Sybase User Group (ISUG) - http://www.isug.com
> CodeXchange - http://powerbuilder.codeXchange.sybase.com/

Andy Turiansky [TeamSybase]

unread,
Jul 9, 2003, 8:02:37 AM7/9/03
to
I guess one way is to connect to the document with OLE Automation and issue the
select all/copy methods. Are you looking to keep the formatting of the
docuemnt, or are you just after the content?

On Wed, 09 Jul 2003 11:51:54 +0200,
in powersoft.public.powerbuilder.ole-ocx-activex
Jan Zagöra <jan.z...@capgemini.se> wrote:

- - -

0 new messages