I am looking to create a new document, and I would like to automatically setup the mailmerge source so the use can go in a create the form and add mailmerge fields without having to setup the “recipents” in the word doc to get the available fields to appear. Is there a way to either add the fields or setup the datasource for the mailmerge automatically?
Not really dynamically inserting the file or actually performing the mail merge. Rather setting up the document for the user so that he or she does not have to configure the file for mailmerge and select the datasource to enable the “Insert Mail Merge Field” option. Currently when a user sets up a document that have to select a flat file to get a listing of all merge fields available so they can design the document. I would like to remove the step of them having to choose the datasource and automatically set it up for them so they can just start adding merge fields.
Thanks for your inquiry. I created new issue #6392 in our defect database. Currently I can’t tell you whether the issues will be fixed before 2009. I will consult with our developers and provide you more information.
If I understand you correctly, you want to do the following:
Using Aspose.Words, programmatically specify mail merge data source and fields for a document.
When the user opens the document in MS Word and starts inserting mail merge fields into the document, the user will be able to select the fields because the data source is configured properly in the document.
Please let me know if that is correct or not.
Sorry we did not have time to work on this feature for so long. I do not know at this stage if this is possible or feasible for us to do.
Usually, we expect that the users will just use the Insert / Field menu in MS Word, select MERGEFIELD and type the name of the data field (not select it from a list).
It is interesting to note that MS Word mail merge allows only for “simple and plain” mail merges such as letters, contracts or mailing labels. Yet Aspose.Words provides support for mail merge regions and allows for special syntax in the mail merge field names, for example MERGEFIELD TableStart:TableName, MERGEFIELD TableEnd:TableName, MERGEFIELD Image:FieldName etc. The list of these “extensions” will grow and it will never be possible to show such fields in the list for the user using the standard MS Word mail merge data source. So do you just want to use the simple merge fields?
I only want to provide all possible Fields to the user. In our templates we use just 50 % of the Fields.
We all know, nobody reads manuals. If the user can see a list of all fields in the doc, it’s easyer for him to customize the template.
to your questions:
Do you just want the mail merge data source preserved when you open/save a document in Aspose.Words?
I don’t need.
Preserving in which formats is most important?
RTF
Do you want to programmatically set or access the mail merge data source?
Set the Datasource only
Do you want Aspose.Words to use this data source when performing mail merge?
no, Aspose.Words works fine
Do you want anything else?
no
Do you want this in Aspose.Words for .NET or Java?
.Net
What is the minimum set of features that you can live with from the list above?
Set the Datasource for RTF - files
Thanks for your replies. What you require looks very reasonable and I agree it should be added to Aspose.Words.
I will add this info to the feature requests, but at this stage I cannot promise a speedy delivery. Will try to do in 2010, that’s the best I can give at this stage. We have a very long list of required features to fulfill.
Correct. I am looking to set the datasource so when someone opens the file via the “normal” word interface they can add these predetermined fields. I am ok if the special fields are not available from this screen.
thank you for your great work. Setting the datasource to a word document is working nicely.
There is a minor problem, I do not know if that is an aspose bug or simple a Microsoft Word Bug.
I set a csv file as datasource to a word document with aspose.words in Java. But if the document is opened with Word, if the system-folder-setting “Hide extension of known file types” is enabled, Word does not regnonize the csv file anymore. But if I switch of the setting then Word does regnonize the csv without any modification of the word document nor on the csv file.
When I tried to reproduce the behaviour by setting the csv datasource in Microsoft Word itself, I have not any chance: The csv file was regnonized everytime as datasource by Word. Nor matter the “hide” switch is en- or disabled.
Do you have any glue?
Thank you very much! Kind regards
Jens Boeckel
----------------------
Abacus Research AG
St. Gallen
Switzerland
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.