You need to sign in to do that
Don't have an account?

C# OfficeToolkit sample code
http://www.chopkinspower.com/bin/setup.exe (please ignore the lame url!)
I thought it would be a good idea to start posting up some of the sample code I have laying around for how to use the OfficeToolkit in various platforms.
The first one (this one) is a c# project that performs a bulk mail merge using the app exchange api.
The mail merge bit is pretty much the production mail merge code renamed and reworked a little and is also included (vb 6).
As a bonus, if you install the salesforce offline edition from
https://na1.salesforce.com/setup/offline/offline2setup.jsp
you can see how to use the offline api to generate your merge results, but please do not call salesforce support if you have a problem, it is not an official salesforce product.
The projects are installed to
prog files\salesforce.com\Bulk Mail Merge
comments are always welcome!
I thought it would be a good idea to start posting up some of the sample code I have laying around for how to use the OfficeToolkit in various platforms.
The first one (this one) is a c# project that performs a bulk mail merge using the app exchange api.
The mail merge bit is pretty much the production mail merge code renamed and reworked a little and is also included (vb 6).
As a bonus, if you install the salesforce offline edition from
https://na1.salesforce.com/setup/offline/offline2setup.jsp
you can see how to use the offline api to generate your merge results, but please do not call salesforce support if you have a problem, it is not an official salesforce product.
The projects are installed to
prog files\salesforce.com\Bulk Mail Merge
comments are always welcome!
Thanks very much for posting this very helpful sample. A few questions:
(1) When you say it is pretty much the "production" code, do you mean the production mail merge code that exists on salesforce when the user clicks the "Mail Merge" button from within an activity (i.e. goes to /mail/mmchoose.jsp...), or the code that exists in the Office Edition Toolkit addin that inserts merge fields into Word documents? The reason I ask is because...
(2) If I want to customize this code to include the ability to merge a custom object and it's associated line item objects (since this is not currently supported for custom objects), but wanted to invoke this function from within salesforce like the current mmchoose.jsp, what would be the best way to do this? Could I convert some of the code to run from an Ajax script that got invoked from a custom link or would it be better to run it in its current dll form somehow from an external server?
It would be possible to create your own custom vb component that could run under the production system, but that’s just the first step.
You would still need the dataset you require as it’s just not available through the merge servlet. You would have to pull that data separately through the api.
THEN you would have to put the support into the vb bit to use the new data. That should not be that hard, but it would require a fair rework of the current line item only system (basically looking for custom start and end tags).
Message Edited by gsickal on 02-01-2006 04:10 PM
That said, you would need to build your object and deploy it to your users.
If your really interested i can prob get you the production code (assuming no one freaks out) that has the correct signatures.
chopkins@salesforce.com