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

how to realize an abort-button?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 22nd 07, 03:18 PM posted to microsoft.public.outlook.program_addins
b.schmidt
external usenet poster
 
Posts: 1
Default how to realize an abort-button?

hi,

I have an add-in with a custom task pane in Word 2007, where I import
the recipients for a mail merge. Unfortunately the whole application
freezes, when I import many contacts (1000), so it's impossible to
click on an abort-button.

Does anyone know a good way, how to realize an abort-button? I tried
running the add-in as a different thread, but then I always get errors.

Can someone help me?

best regards,
bernhard
  #2  
Old May 24th 07, 12:23 AM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default how to realize an abort-button?

Use a loop to import, that way the button can click.

The real problem is the freeze. Use loops of 200 or under, make sure to
release all of your objects regularly, don't use dot operators that will
create internal variables that will not be released until the procedure
finishes.

If you are running against Exchange you can also run into the 256 RPC
channel limit so small loops are good for that.

Using SetColumns to limit the number of properties that are loaded is a good
optimization. Just remember to use ResetColumns at the end of your
procedure.

There are other optimization tricks but for that we'd need to know the
language you're using.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"b.schmidt" wrote in message
...
hi,

I have an add-in with a custom task pane in Word 2007, where I import the
recipients for a mail merge. Unfortunately the whole application freezes,
when I import many contacts (1000), so it's impossible to click on an
abort-button.

Does anyone know a good way, how to realize an abort-button? I tried
running the add-in as a different thread, but then I always get errors.

Can someone help me?

best regards,
bernhard


 




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
abort AttachmentRead semedao Outlook and VBA 1 October 29th 06 07:24 PM
Send button?? Arthur Dent Outlook - General Queries 0 September 18th 06 07:08 AM
Button location in button bar Leah Ann Add-ins for Outlook 1 August 11th 06 03:16 PM
Item send overide/abort on a code condition A Reno Outlook - Using Forms 1 June 19th 06 04:14 PM
Help Add button Popup Robert Outlook and VBA 7 February 17th 06 04:16 PM


All times are GMT +1. The time now is 12:54 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.