A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Active explorer issue



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 26th 09, 04:49 PM posted to microsoft.public.outlook.program_addins
Ashish
external usenet poster
 
Posts: 94
Default Active explorer issue

In Active inspector when open a mail, If add an attachment to a mail and
dont call Save function then this attachment will not update on exchange
server for this mail.

But In active explorer when select a mail we add attachment to a mail and
dont save save function. Attachment is updated on exchange server for this
mail. Is there any reason for that? Can we avoid saving? Outlook
version-2003


  #2  
Old August 26th 09, 09:48 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Active explorer issue

How are you adding an attachment in ActiveExplorer()? Is it with code or
from the UI. If using code show it.

In general you always have to save, possibly unless in-cell editing is
enabled and that affects automatically saving any changes. See if the Saved
property on the item has changed after you add the attachment in the
Explorer.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Ashish" wrote in message
...
In Active inspector when open a mail, If add an attachment to a mail and
dont call Save function then this attachment will not update on exchange
server for this mail.

But In active explorer when select a mail we add attachment to a mail and
dont save save function. Attachment is updated on exchange server for this
mail. Is there any reason for that? Can we avoid saving? Outlook
version-2003


  #3  
Old August 27th 09, 02:41 PM posted to microsoft.public.outlook.program_addins
Ashish
external usenet poster
 
Posts: 94
Default Active explorer issue

I'm adding attachment in code under explorer_viewchange event(when selecta
mail item). When i add attachment to a mail in ActiveExplorer-ViewChange
event, mail item save property returns false. But when i select another mail
item item and check Save property of previous mail item where i add
attachment then it returns true. It means that attachment is added on
exchange server.
How to use in-cell editing ?? Can we avoid saving if we add an attachment.
My user is exchange server user and has cached mode on.

//in c++ event number is 0xf007

Outlook::_MailItemPtr pMailItem = NULL;
Explorer_ViewChange()
{
if(pMailItem != NULL)//if we select an item before and already add
attachment to it
{
bool issaved = pMailItem-GetSaved(); //GetSaved return true
}
else
{
Outlook::SelectionPtr spSelections = ActiveExplorer-Selection;
if( spSelections)
{
int selecteditems = spSelections-Count;
if(selecteditems == 1)
{
pMailItem = spSelections-Item(1);
pMailItem -Attachments-Add("c:/filename.txt");
bool issaved = pMailItem-GetSaved(); //GetSaved
return false
}//here i dont call pMailItem-save function
}
}
}
"Ken Slovak - [MVP - Outlook]" wrote in message
...
How are you adding an attachment in ActiveExplorer()? Is it with code or
from the UI. If using code show it.

In general you always have to save, possibly unless in-cell editing is
enabled and that affects automatically saving any changes. See if the
Saved property on the item has changed after you add the attachment in the
Explorer.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Ashish" wrote in message
...
In Active inspector when open a mail, If add an attachment to a mail and
dont call Save function then this attachment will not update on exchange
server for this mail.

But In active explorer when select a mail we add attachment to a mail and
dont save save function. Attachment is updated on exchange server for
this mail. Is there any reason for that? Can we avoid saving? Outlook
version-2003




  #4  
Old August 27th 09, 02:48 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Active explorer issue

Do you mean the ViewSwitch() event? There is no ViewChange() event. Why
aren't you using Explorer.SelectionChange(), that would be the correct event
to handle.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Ashish" wrote in message
...
I'm adding attachment in code under explorer_viewchange event(when selecta
mail item). When i add attachment to a mail in ActiveExplorer-ViewChange
event, mail item save property returns false. But when i select another
mail item item and check Save property of previous mail item where i add
attachment then it returns true. It means that attachment is added on
exchange server.
How to use in-cell editing ?? Can we avoid saving if we add an attachment.
My user is exchange server user and has cached mode on.

//in c++ event number is 0xf007

Outlook::_MailItemPtr pMailItem = NULL;
Explorer_ViewChange()
{
if(pMailItem != NULL)//if we select an item before and already add
attachment to it
{
bool issaved = pMailItem-GetSaved(); //GetSaved return true
}
else
{
Outlook::SelectionPtr spSelections = ActiveExplorer-Selection;
if( spSelections)
{
int selecteditems = spSelections-Count;
if(selecteditems == 1)
{
pMailItem = spSelections-Item(1);
pMailItem -Attachments-Add("c:/filename.txt");
bool issaved = pMailItem-GetSaved(); //GetSaved
return false
}//here i dont call pMailItem-save function
}
}
}


  #5  
Old August 27th 09, 03:01 PM posted to microsoft.public.outlook.program_addins
Ashish
external usenet poster
 
Posts: 94
Default Active explorer issue

Sorry it's explorer.selectionchange
it's call when i change selection on any mail/folder
"Ken Slovak - [MVP - Outlook]" wrote in message
...
Do you mean the ViewSwitch() event? There is no ViewChange() event. Why
aren't you using Explorer.SelectionChange(), that would be the correct
event to handle.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Ashish" wrote in message
...
I'm adding attachment in code under explorer_viewchange event(when
selecta mail item). When i add attachment to a mail in
ActiveExplorer-ViewChange event, mail item save property returns false.
But when i select another mail item item and check Save property of
previous mail item where i add attachment then it returns true. It means
that attachment is added on exchange server.
How to use in-cell editing ?? Can we avoid saving if we add an
attachment. My user is exchange server user and has cached mode on.

//in c++ event number is 0xf007

Outlook::_MailItemPtr pMailItem = NULL;
Explorer_ViewChange()
{
if(pMailItem != NULL)//if we select an item before and already add
attachment to it
{
bool issaved = pMailItem-GetSaved(); //GetSaved return true
}
else
{
Outlook::SelectionPtr spSelections = ActiveExplorer-Selection;
if( spSelections)
{
int selecteditems = spSelections-Count;
if(selecteditems == 1)
{
pMailItem = spSelections-Item(1);
pMailItem -Attachments-Add("c:/filename.txt");
bool issaved = pMailItem-GetSaved(); //GetSaved
return false
}//here i dont call pMailItem-save function
}
}
}




  #6  
Old August 28th 09, 02:34 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Active explorer issue

If you want to know whether or not an item in a Selection is changed you
handle SelectionChange(). When that fires you get the new Selection. You can
then set up handlers for each item in the Selection and handle the
AttachmentAdd() event or the BeforeAttachmentSave() event or any other
attachment related event you want to track.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Ashish" wrote in message
...
Sorry it's explorer.selectionchange
it's call when i change selection on any mail/folder


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2007 issue on Windows Vista - Exchange connection issue NA[_2_] Outlook - Installation 5 September 3rd 08 07:28 AM
Is Explorer Active j Add-ins for Outlook 1 March 1st 07 04:29 PM
Active x issue Jim Bunton Outlook - General Queries 1 March 1st 07 12:23 AM
Help with explorer 7 Mal Outlook Express 1 December 21st 06 12:31 AM
Email hyperlinks open Windows Explorer, not Internet Explorer M Skabialka Outlook - General Queries 2 July 7th 06 09:39 PM


All times are GMT +1. The time now is 12:25 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.