Hi,
I want to use image tag : <<image [image_expression]>>
but I don’t understand how to use it.
in my word template I have :
<< image [CoutEtChargeImage]>>
and in my C# program I have
var test = Image.Load(@“C:\Users\test\Pictures\18102018-_B5A9178.jpg”);
CoutEtChargeImage = test
And I use it with
//initialising a doc
Document doc = new Document(templateFilePath);
// Create a Reporting Engine.
ReportingEngine engine = new ReportingEngine();
// Execute the build report.
engine.BuildReport(doc, this.DocumentData, "DocumentData");
But I always have this message
“details”:"System.InvalidOperationException: Tag ‘image’ is not well-formed. Tag ‘image’ must be located within an image container.
Please insert the image tag in the textbox to avoid this issue.
You can insert images to your reports dynamically using image tags. To declare a dynamically inserted image within your template, do the following steps:
Add a textbox to your template at the place where you want an image to be inserted.
Set common image attributes such as frame, size, and others for the textbox, making the textbox look like a blank inserted image.
Specify an image tag within the textbox using the following syntax.
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.