To ensure a timely and accurate response, please attach the following resources here for testing:
Your input Word document.
Please create a standalone console application ( source code without compilation errors ) that helps us to reproduce your problem on our end and attach it here for testing.
As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.
PS: To attach these resources, please zip and upload them.
What I am saying is that I have cached the logo in my class as follows.
public class HandleMergeImageField : IFieldMergingCallback
{
private MemoryStream LogoImage;
public HandleMergeImage()
{
byte[] bytes = File.ReadAllBytes(imageFilepath);
LogoImage = new MemoryStream(bytes);
}
public void ImageFieldMerging(ImageFieldMergingArgs args)
{
if ((args.FieldValue == null) ||
string.IsNullOrWhiteSpace(args.FieldValue.ToString()))
{
return;
}
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.