Size of attachment changes in Outlook 2003...

S

Ståle

Hi
I've developed an add-in to Outlook which saves all attachments to file before sending the e-mail
In Outlook 2003, sizes of Office attachments (doc, xls,...) gets bigger than the original attachments when they're saved to files by using the SaveAsFile() command on the Attachment object in the Outlook Object Model. Why

If I open a Word document (saved by my add-in) in Word and turn off the "Embed smart tags" option (Tools | Option | Save property page) and then save the attachment from Word, the file gets identical size as the original attachment added to the e-mail. Can anyone explain this behaviour

What additional info is added when I call the Attachment.SaveAsFile() function on Office files

Thanks in advance
Ståle
 
S

Ståle

All Office files (doc, xls, ...) increases in size when they're attached to e-mails. The recipient gets files that are bigger than the original files added to the e-mail. I've turned off the option "Add properties to attachments to enable Reply with Changes" in Outlook

But why do the sizes change then? How can I prevent this

----- Ståle wrote: ----

Hi
I've developed an add-in to Outlook which saves all attachments to file before sending the e-mail
In Outlook 2003, sizes of Office attachments (doc, xls,...) gets bigger than the original attachments when they're saved to files by using the SaveAsFile() command on the Attachment object in the Outlook Object Model. Why

If I open a Word document (saved by my add-in) in Word and turn off the "Embed smart tags" option (Tools | Option | Save property page) and then save the attachment from Word, the file gets identical size as the original attachment added to the e-mail. Can anyone explain this behaviour

What additional info is added when I call the Attachment.SaveAsFile() function on Office files

Thanks in advance
Ståle
 
T

Tom Rizzo [MSFT]

Outlook has some properties that it has to put on the item for its own
purposes. That may raise the size.

Tom

--
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp

This posting is provided "AS IS" with no warranties, and confers no rights.



Ståle said:
All Office files (doc, xls, ...) increases in size when they're attached
to e-mails. The recipient gets files that are bigger than the original files
added to the e-mail. I've turned off the option "Add properties to
attachments to enable Reply with Changes" in Outlook.
But why do the sizes change then? How can I prevent this ?

----- Ståle wrote: -----

Hi,
I've developed an add-in to Outlook which saves all attachments to
file before sending the e-mail.
In Outlook 2003, sizes of Office attachments (doc, xls,...) gets
bigger than the original attachments when they're saved to files by using
the SaveAsFile() command on the Attachment object in the Outlook Object
Model. Why?
If I open a Word document (saved by my add-in) in Word and turn off
the "Embed smart tags" option (Tools | Option | Save property page) and then
save the attachment from Word, the file gets identical size as the original
attachment added to the e-mail. Can anyone explain this behaviour?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top