We are sorry for the inconvenience. But I am afraid we cannot reproduce the issue at our end. We will appreciate it if you please share your sample code along with the complete error message. We will investigate it and guide you.
This same code has been working for the last year or so. Today it automagically works again, no more crash. The data is specified as XML.
For another, newer, report that has been working for the last couple of months,
the merge does no longer fill my word fields (data specified as a JSON).
The pdf is correctly generated showing the unprocessed fields, where as yesterday it crashedâŚ
Can I share the word template and JSON data somehow?
This is the code that used to work for the last couple of months:
var output = WordsApi.ExecuteMailMergeOnline(
new ExecuteMailMergeOnlineRequest(
new Word.IssueTemplate().GetTemplate(),
await Word.IssueTemplate.GetData(issue, BlobService, projectsService)));
Both GetTemplate() and GetData() return a stream from these files: Input.zip (71.5 KB)
Data contains a reference to images in protected blob storage, the links will probably be expired by now, but can be replaced by any other link to an image.
I have another issue making the images fit in a table cell with attributes set to âno auto resizeâ, they overflow the cell as opposed to inserting them interactively using Word.
We have recently released Aspose.Words Cloud 20.10. And I am unable to replicate the issue with it. Please note I was unable to access your last two images due to the expired signature, so I replaced it another remote image link.Testmailmerge.zip (382.1 KB). Please double check with the latest release and confirm.
You can define image size in the template as follows:
Image(width[pt|%];height[pt|%]):FieldName
The format is case-insensitive. The values of the width and the height should represent double constant values using the dot as the decimal separator (i.e. using invariant culture). Negative values should be used to indicate that the original values of the corresponding image dimensions should be used. If no unit is specified, points are used by default. If a unit other than âptâ or â%â is specified, then the image size parsing is considered to be failed and the original values of the corresponding image dimensions are used.
Hopefully, it will resolve the issue. Otherwise, please share the problematic template, data file and expected output. It will help us to understand and address your issue exactly.
I have tested the scenario with Aspose.Words Cloud SDK for .NET 20.9 using following code and unable to replicate the issue. Please ensure you are setting withRegions parameter to true.
string localDocumentFile = "C:/Input/Template.docx";
string localDataFile = "C:/Input/Data1.json";
var request = new ExecuteMailMergeOnlineRequest(
template: File.OpenRead(localDocumentFile),
data: File.OpenRead(localDataFile),
withRegions: true
);
var actual = wordsApi.ExecuteMailMergeOnline(request);
var fileStream = System.IO.File.Create("C:/Temp/TestMailMerge.docx");
actual.CopyTo(fileStream);
fileStream.Close();
We have noticed that it is not working as expected, so logged a ticket WORDSCLOUD-1447 for further investigation and rectification. We will notify you as soon as it is resolved.
Ideally a WYSIWYG solution would be very nice. Instead of hard-coding some values, we could expect the interactive behavior of Word to be honored: The size and properties of a table and cell determine the position size and resizing (not cropping) behavior of an injected picture.
Im afraid the issue is still not resolved due to the other priority issues. However, I have requested for the ETA and will share an update with you accordingly.
The issues you have found earlier (filed as WORDSCLOUD-1447) have been fixed in this update. This message was posted using Bugs notification tool by Ivanov_John
I notice in the release notes there is a new timeout in Aspose.Words.Cloud.Sdk.Configuration, but I cannot to seem to find any info on how to use it, or on the units ([milli]seconds, minuyes)?