×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

attachment is unreadable in LN mail

attachment is unreadable in LN mail

attachment is unreadable in LN mail

(OP)
Hi all,

I have some VBA code to send a Lotus Notes email from MS Access. The code has the ability to attach a file.  Code works fine : it creates & sends the email.  There's only one issue: when attaching anything else than an .TXT file the file is unreadable for the mail-recepients.
I'm using some code wich is very familiar to this forum.

CODE

Call Body.EMBEDOBJECT(1454, "", "C:\MyFile.xls", "Attachment")
I have no idea why and can't seems to find anything on search.

help appreciated.

Dave

RE: attachment is unreadable in LN mail

(OP)
No ideas ? Nobody ?

Dave

RE: attachment is unreadable in LN mail

How does the attachment arrive - is it still tagged as a .xls extension? When you say unreadable, what exactly is the client doing - refusing to open it or opening it but returning garbage?

RE: attachment is unreadable in LN mail

(OP)
Sorry, i've been away for a while.  Now I'm back.

The file is still tagged as .xls.

On opening LN displays a message : This file is not in a recognizable format.
You can however select to open the file. The file is then displayed reading something like :

–6h3Â.
Ä4á@!GÀüÿ€Ñx ,C0öB>÷ü8 ì† D :È


(only first 2 rows as example)


 

Dave

RE: attachment is unreadable in LN mail

Been away a bit meself. The only things I can think of are either the program association with the .xls extension has been lost (possibly in the registry) or the Notes client's Unicode settings are incorrect.

RE: attachment is unreadable in LN mail

(OP)
OK, I need to give more info:
° When the attachment is created 'manualy' it sends fine & opens without any error/remark.
° When sending the same excel-file through VBA I get the above error.

I would like to think that a missing/incorrect registry entry would also affect the manual approach. (please correct me if wrong)

Same thinking about the Unicode settings - although I'm not experienced in this domain.

Any further thought ?
 

Dave

RE: attachment is unreadable in LN mail

The only thing that comes to mind is that the VBA version may be taking a different path than the manually-created one, i.e. I'm thinking the VBA version is sent with a MAPI DLL where the manual one uses a Notes DLL? Just shooting in the dark, but it's the only difference I can see in the two methods.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close