Tristan

Thanks a lot - that seems to work fine (tested with my own system which 
has TB as default mail client)

Cheers

Tristan Leask wrote:
> Hi Paul,
>
> Check out this...
>
> Declare Integer GetActiveWindow In user32
> Declare Integer MAPISendDocuments In mapi32 ;
>       Integer uluiParam, ;
>       String lpszDelimChar, ;
>       String lpszFullPaths, ;
>       String lpszFileNames, ;
>       Integer ulReserved
>
> * Remember the current path as this gets changes
> lcPath = sys(5)+sys(2003)
>
> * Send dcs needs a window
> hWindow = GetActiveWindow()
>
> * Send your doc
> MAPISendDocuments(hWindow, ";", lcFileName, JUSTFNAME(lcFileName), 0)
>
> * Set the default path back
> Set default to (lcPath)
>
>
>
> Its using MAPI which a lot of people will frown on, but it works and
> does what you ask for.
>
> Tristan
>
>
>   




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to