Re: embeded image change

  • Thread starter Ken Slovak - [MVP - Outlook]
  • Start date
Status
Not open for further replies.
K

Ken Slovak - [MVP - Outlook]

What BodyFormat is the message in? Have you tried supplying a

missing/default argument for the Position argument (not sure how that would

be done using C++).

"Ashish" <akohli_2004@hotmail.com> wrote in message

news:enarA%23xnJHA.3572@TK2MSFTNGP05.phx.gbl...
> I remove the code to set subject. But still embeded image is not visible
> when open mail. Now i'm sure it happens due to adding an attachment. If i
> dont add attachment then embeded image is visible. Attachment is a text
> file. I use following code to add attachment

> variant_t vpath(attachfile_path.c_str());

> variant_t vposition( 1);

> variant_t vdisplay(attachfilename);

> variant_t filetype((long)1);

> ((Outlook::_MailItemPtr)MailItemptr)->Attachments->Add(vpath,filetype,vposition,vdisplay);
 
A

Ashish

I dont check the body format. In my addin when i open a mail i just add one

attachment to it. what is missing/default argument for the Position argument

? where we need to pass it?

When i add an attachment then i pass attachment position.
<kenslovak@mvps.org> wrote in message

news:OweBYnMoJHA.3984@TK2MSFTNGP02.phx.gbl...
> What BodyFormat is the message in? Have you tried supplying a
> missing/default argument for the Position argument (not sure how that
> would be done using C++).

> >

>

> "Ashish" <akohli_2004@hotmail.com> wrote in message
> news:enarA%23xnJHA.3572@TK2MSFTNGP05.phx.gbl...
> >I remove the code to set subject. But still embeded image is not visible
> >when open mail. Now i'm sure it happens due to adding an attachment. If i
> >dont add attachment then embeded image is visible. Attachment is a text
> >file. I use following code to add attachment
>

>> variant_t vpath(attachfile_path.c_str());
>

>> variant_t vposition( 1);
>

>> variant_t vdisplay(attachfilename);
>

>> variant_t filetype((long)1);
>

>> ((Outlook::_MailItemPtr)MailItemptr)->Attachments->Add(vpath,filetype,vposition,vdisplay);

>
 
A

Ashish

When open mail then first i check all attachments in this mail.

Mail->Attachments->Count = 0. Embeded image is in body of mail

Then i add an attachment. After adding attachment i cant see embeded image

in mail body. But when i close this mail Mail->Attachments->Count shows

value 2. It means when i add an attachment embeded image is converted into

attachment(by val). But it doesn't show that attachment.

What's wrong here why embeded image change into attachment. Is there any

solution for this case.
<kenslovak@mvps.org> wrote in message

news:OweBYnMoJHA.3984@TK2MSFTNGP02.phx.gbl...
> What BodyFormat is the message in? Have you tried supplying a
> missing/default argument for the Position argument (not sure how that
> would be done using C++).

> >

>

> "Ashish" <akohli_2004@hotmail.com> wrote in message
> news:enarA%23xnJHA.3572@TK2MSFTNGP05.phx.gbl...
> >I remove the code to set subject. But still embeded image is not visible
> >when open mail. Now i'm sure it happens due to adding an attachment. If i
> >dont add attachment then embeded image is visible. Attachment is a text
> >file. I use following code to add attachment
>

>> variant_t vpath(attachfile_path.c_str());
>

>> variant_t vposition( 1);
>

>> variant_t vdisplay(attachfilename);
>

>> variant_t filetype((long)1);
>

>> ((Outlook::_MailItemPtr)MailItemptr)->Attachments->Add(vpath,filetype,vposition,vdisplay);

>
 
K

Ken Slovak - [MVP - Outlook]

What is wrong is the Count == 0 return. Any embedded image is an attachment,

how else would it be included in the message? An embedded attachment will

have certain properties set on it that are different than an "attached"

attachment, but it's still attached to the message.

Is the item you are opening saved before you check for attachments count?

That's important. Also important is the Outlook version and body format. For

example in some cases an embedded attachment such as ClipArt will actually

show up as 2 attachments, one is the content and the other is a WMV wrapper.

"Ashish" <akohli_2004@hotmail.com> wrote in message

news:%239VXQ3WoJHA.3896@TK2MSFTNGP04.phx.gbl...
> When open mail then first i check all attachments in this mail.
> Mail->Attachments->Count = 0. Embeded image is in body of mail
> Then i add an attachment. After adding attachment i cant see embeded image
> in mail body. But when i close this mail Mail->Attachments->Count shows
> value 2. It means when i add an attachment embeded image is converted into
> attachment(by val). But it doesn't show that attachment.
> What's wrong here why embeded image change into attachment. Is there any
> solution for this case.
 
A

Ashish

> What is wrong is the Count == 0 return. Any >embedded image is an
> attachment,


when i open mail which contains embeded attachments i check

Mail->Attachments->Count value and it returns 0.

I check this in Item_Open() event.

So in this case attachment for embeded image is not attached to message.

Either it's in body or i dont have more idea where it is.

Is the item you are opening saved before you check for attachments count?

I send a new mail with embeded image. After mail is received i open the

mail. Before opening this mail i dont save it.

I dont touch body format for this mail.

Is there any example for embeded image available?
<kenslovak@mvps.org> wrote in message

news:eHjk4UYoJHA.1172@TK2MSFTNGP05.phx.gbl...
> What is wrong is the Count == 0 return. Any embedded image is an
> attachment, how else would it be included in the message? An embedded
> attachment will have certain properties set on it that are different than
> an "attached" attachment, but it's still attached to the message.

> Is the item you are opening saved before you check for attachments count?
> That's important. Also important is the Outlook version and body format.
> For example in some cases an embedded attachment such as ClipArt will
> actually show up as 2 attachments, one is the content and the other is a
> WMV wrapper.

> >

>

> "Ashish" <akohli_2004@hotmail.com> wrote in message
> news:%239VXQ3WoJHA.3896@TK2MSFTNGP04.phx.gbl...
> > When open mail then first i check all attachments in this mail.
> > Mail->Attachments->Count = 0. Embeded image is in body of mail
> > Then i add an attachment. After adding attachment i cant see embeded
> > image in mail body. But when i close this mail Mail->Attachments->Count
> > shows value 2. It means when i add an attachment embeded image is
> > converted into attachment(by val). But it doesn't show that attachment.
> > What's wrong here why embeded image change into attachment. Is there any
> > solution for this case.

>
 
K

Ken Slovak - [MVP - Outlook]

I don't care how or where it's opened or how it's done, all embedded images

are attachments on the item. Period.

It may be a hidden attachment, where if the property is set it doesn't show

the paperclip icon on the item, but it's still an attachment.

There are lots of different samples available for embedded attachments,

search on Google and at www.outlookcode.com for some.

"Ashish" <akohli_2004@hotmail.com> wrote in message

news:OgqamwYoJHA.6096@TK2MSFTNGP02.phx.gbl...
> > What is wrong is the Count == 0 return. Any >embedded image is an
> > attachment,

> when i open mail which contains embeded attachments i check
> Mail->Attachments->Count value and it returns 0.
> I check this in Item_Open() event.
> So in this case attachment for embeded image is not attached to message.
> Either it's in body or i dont have more idea where it is.

> Is the item you are opening saved before you check for attachments count?
> I send a new mail with embeded image. After mail is received i open the
> mail. Before opening this mail i dont save it.

> I dont touch body format for this mail.
> Is there any example for embeded image available?
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
A using email links embeded in an email Using Outlook 1
D Reply with a template loose the sender's embedded image Outlook VBA and Custom Forms 0
Y Images coming through as Cid:image in outlook Using Outlook 0
L Block email signature image Using Outlook 1
Diane Poremsky Image Quality in Signatures New Slipstick.com Articles 0
O How to move contacts folder image of a drive Using Outlook 1
Q Why can't I copy image with embedded hyperlink from email to Word Using Outlook 0
G Image scaling on high DPI screens Using Outlook 1
P Select image in contact notes field and save as jpg Outlook VBA and Custom Forms 6
crazyboy Copying BCM database from backed up mounted image to new drive BCM (Business Contact Manager) 2
S Picture/Image/Attachment Resizing Outlook VBA and Custom Forms 5
oj43085 Prevent Outlook from blocking image from a single source Using Outlook 4
J Image in original e-mail is hyperlinked when a reply with the image is hyerplinked Exchange Server Administration 1
Maybear Sudden change in Outlook, no image display, email no longer offers suggestions for address Using Outlook 8
T Error opening mail with pictures - "The linked image cannot be displayed" Using Outlook 3
G Create rule based on image in email body Using Outlook 1
I How to add image header to email Using Outlook 2
E Outllook 2010 Header Image Using Outlook 3
R Add image within email and not attachment Using Outlook 2
B Need help adding an image next to the Month Name in the header. Calendar Printing Assistant 1
S Outlook 2k/2k3 Reply or Forward: Signature image replaced by original sender Using Outlook 3
A Vanishing signature image in Outlook 2010 Using Outlook 1
M Save embedded image in native format Using Outlook 6
C Email image problems Using Outlook 6
A Unhandled exception: picture argument should be an image BCM (Business Contact Manager) 0
D Outlook 2007 crashes opening email with image links Using Outlook 4
J image in email show as attachment Using Outlook 2
J How to attach several image files withour exceeding max message size ? Using Outlook 3
N Cannot paste image in the body of an email, it will only attach it as a file. Using Outlook 4
T getting error message "please wait while windows configures microsoft office single image 2010" whe Using Outlook 4
S Expanding image when email sent. Using Outlook 2
F Contact under notes does not display image Using Outlook 3
M How to add an image for Signature in OWA Using Outlook 1
D Signature with left aligned image and hyperlinks Using Outlook 2
T Annoying feature of Out 2007: mandatory image compression; user has no control over it Using Outlook 2
E Can't set up image signature in Outlook 2000 Using Outlook 0
J Outlook Background image Using Outlook 1
L Outlook 2010 Cached mode - Refresh HTML Email Image Using Outlook 1
A image not shown on e-mail page Using Outlook 1
P Unblock image downloads and Outlook continuously drives CPU to 52% Using Outlook 1
B the linked image cannot be displayed. the file may have been moved renamed or deleted. message Using Outlook 15
A outlook image previewer error from security temp folder permissions problem Using Outlook 1
S Exporting vcards with an image Using Outlook 1
K How do I recover Outlook calendar and contacts from an hard drive backup image? Using Outlook 3
A Removing the tiled image in backgrounds Using Outlook 1
M Resize Image Default in Outlook 2010 Using Outlook 1
H embedded images showing up as [CID:image address] in Outlook 2003 Using Outlook 2
L Outlook signature: blurry logo image Using Outlook 1
R Why won't Outlook 2010 support the use of image mapping for email signatures. Outlook 2007 did. Using Outlook 15
P disable image compression Using Outlook 5
Similar threads


















































Top