I have a new Winforms application that is replacing an existing Access order processing system, and I need to replicate some existing functionality.
Currently the user enters the order data and hits OK. At this point an order print is generated (using Access Reports) and Outlook opened with the report attached to a new email. The email itself is populated with some boilerplate text, but the mail to, cc etc fields populated from Access. The user then can just immediately hit send, or edit the contents of the email body.
On the new system I have the report replicated in SSRS, but what is the simplest way of creating this report in my application (passing a parameter to retrieve the correct order) then opening Outlook with the created report attached and basic fields pre-populated?
You can dynamically generate a one time subscription in SSRS for the report.
Your code would look something like this: