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);
 
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);

>
 
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);

>
 
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.
 
> 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.

>
 
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.
Similar threads
Thread starter Title Forum Replies Date
J Increase read pane font size, but NOT image size? Using Outlook 3
O The linked image cannot be displayed Using Outlook 2
C "The linked image cannot be displayed. The file may have been moved, renamed, or deleted. Verify that the link points to the correct file location" Using Outlook 1
O How to prevent image resize when pasting Using Outlook 2
T The Linked Image Cannot Be Displayed in Outlook Using Outlook 7
P Can't paste an image into a task Using Outlook 3
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 Using Outlook 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. Using Outlook 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
P disable image compression Using Outlook 5
D Unable to resize image in email signature Using Outlook 4
K Adding Image to "new email window" in Office 2007 Outlook VBA and Custom Forms 2
J Adding a background image to a mail item using automation Outlook VBA and Custom Forms 2
T Outlook: Get Image Content ID from existing email Outlook VBA and Custom Forms 9
T Customize button image for separate Outlook forms region Outlook VBA and Custom Forms 2
J Database Files to be Copied from Backup Image - No BCM Backup Data BCM (Business Contact Manager) 5
M Use Macro to change account settings Outlook VBA and Custom Forms 0
D Unable to change AppointmentItem.Start property Outlook VBA and Custom Forms 3
sjmo2 Change subject for new e-mails only. Outlook VBA and Custom Forms 2
Horsepower Contact phone numbers randomly change Using Outlook 0
P Outlook 2016 Change Paste Special Default Format Using Outlook 8
whizzard Change FROM address based on TO or CC address Outlook VBA and Custom Forms 8
S Outlook 365 Can I change the possible range of highlighting colours when writing an Outlook email? Using Outlook 1
V Can one change the formatting of email title blocks? Using Outlook 0
S Unable to change Message Class Outlook VBA and Custom Forms 0
S New Outlook Appointment - Select All Body Text and Change Font and Size Outlook VBA and Custom Forms 1
J VBA Cannot programmatically input or change Value for User Defined field Using Outlook 1
C Outlook 365 Can you change the follow up colour? Using Outlook 1
A Change settings Send/receive VBA Outlook VBA and Custom Forms 0

Similar threads

Back
Top