I have created a vb.net application with Visual Basic 2008 express which among other things allows the user to link to Outlook to send emails to addresses in a SQL Server database.
Some users have Office 2003 and some have Office 2007.
In a previous application a wrote in Microsoft Access I was able to add a reference the correct Outlook library at runtime by checking which Microsoft Office was installed. However vb.net seems to insist on have the references linked before compile.
Is there any way to overcome this?
(all outgoing email on these machines must go via the client's Outlook configuration and Exchange, it is not permissible to directly SMTP the emails)