The scenario: Our users normally work off-site and “disconnected”. They will open a client-only InfoPath Form. It is a time-log form, of sorts.
When they have filled in the form, they will queue it in Outlook’s Outbox to be sent to their supervisor during some future connection to the main office (usually a matter of a few days). They will do this via InfoPath’s Menus:
File -> Send to Email Recipient
Within Outlook’s framework the user supplies the Addressee “To” line. During this phase of the process the user conveniently has Outlook’s Global Address Book available via the “To” button.
Supervisors eventually collect the emailed forms and ultimately work with them offline.
The problem: “Send to Email Recipient” spawns an Outlook session where the user supplies information for “To:”, “CC:”, “Subject:”, and “Introduction:”, as needed. I want to pre-populate the “Subject:” and “Introduction:” lines with data from the form. I have found no way to intercept that menu command – “Send to Email Recipient” fires no “event” for InfoPath to intercept. Once Outlook starts, InfoPath is no longer the controlling process. I need but can find no programmatic control over these Outlook items within InfoPath.
I have investigated the Submit Options extensively and have not found the solution there, either. The Submit Option requires a valid “To” address be supplied essentially at form design time, or be fabricated from information within the Form itself. Outlook’s Address Book is not available to InfoPath. The Submit Options would be ideal except the resulting run-time dialog is read-only and cannot be altered (probably, again, because Outlook’s address book is not available to InfoPath.)
My environment: IP2007, VSTA, VB. It’s important to know that SharePoint is not part of this equation. All work must be accomplished off-line except for the occasional e-mail contact.
I am beginning to think this particular problem has no solution in the way I hope. Perhaps setting up a local database populated with email addresses via a web service… the local database could then be a secondary data source for the form. What would anyone advise at this point, if anything?