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
--------------------------------------------------------------------------------------------------------------
This email was sent to [EMAIL PROTECTED] Unless otherwise agreed expressly in
writing by Marine Software Limited,
this communication and attachments are to be treated as confidential
and the information in it may not be used or disclosed except for the
purpose for which it was sent.
If you are not the intended recipient of this communication you should
destroy it without copying, disclosing or otherwise using its contents.
Please notify the sender immediately of the error.
[EMAIL PROTECTED]
------------------------------------------------------------------------------------------------------------------
_______________________________________________
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.