searching and iterating through results

  • Thread starter Thread starter Grod
  • Start date Start date
G

Grod

I want to have a program which performs a search for emails and then
iterates through the resulting emails printing each email with its
attachments. Before printing each email it would issue the
the batch command:

net print \\mydomain\myprinter

repeatedly, checking its output, until it indicated that the queue was
empty since it is very important to me that the email and attachments
get printed together and that everything is done the in correct order.
No one else uses the printer so this should not be a problem. (I have
already played around with print queue properties ad nauseum and can't
seem to get it to reliably do this which is why I am now looking into
the program route.)

How do I issue the search and iterate through the results programmatically?

I am using Windows 2000 and Outlook 2000.

Thanks.
 
I want to have a program which performs a search for emails and then
iterates through the resulting emails printing each email with its
attachments. Before printing each email it would issue the
the batch command:

net print \\mydomain\myprinter

repeatedly, checking its output, until it indicated that the queue was
empty since it is very important to me that the email and attachments
get printed together and that everything is done the in correct order.
No one else uses the printer so this should not be a problem. (I have
already played around with print queue properties ad nauseum and can't
seem to get it to reliably do this which is why I am now looking into
the program route.)

Have you had any luck with this? You could use VBA to get the header and
body info easily enough, though I'm not sure how to print out attachments
(which I assume are documents). I am expirimenting with CDO to gather info
about messages since my efforts to do so with VBA do not work with
encrypted/digitally signed messages. See my post on 6/9/04 if you are
interested.
 
deko said:
Have you had any luck with this? You could use VBA to get the header and
body info easily enough, though I'm not sure how to print out attachments
(which I assume are documents). I am expirimenting with CDO to gather info
about messages since my efforts to do so with VBA do not work with
encrypted/digitally signed messages. See my post on 6/9/04 if you are
interested.

Thank you very much and, yes, I definitely intend to follow up on this
although I have never done this sort of thing before and have to do a
bit of reading first to get to the point where I am able. If you
are working on the same or a similar problem any code you can post
is appreciated.
 
Back
Top