Hi,
Could you please assist me on the below mentioned requirement.
Need to set size on images using Code.CalcLeftPadding(Fields!ReportData.Value, 7.1, 8.6) & “pt” function in aspose word template using Linq report engine with c#code.
Sample template:
Sample code:
Code function related sample class created:
Expected Output
Images with mentioned size (using calc function)
Anyone pls help me on the same code which I have shared?
@rose.thomas
There is no width switch for an image tag in LINQ Reporting Engine template syntax. All supported switches are listed at Inserting Images Dynamically. To affect the width of an image using the engine consider setting the size of a containing textbox manually in a template and using one of the supported switches.
I am trying to add Calcleftpadding function as referred on the below reference link
but getting error. Could you pls assist me to fix the same? If possible pls correct my code.
Error screenshot:
Template screenshot:
c# code
Reference:
how to set image size as Code.CalcLeftPadding(Fields!ReportData.Value, 7.1, 8.6) & “pt” and how to add calc function in aspose word template using Linq report engine with c#code - Search
@rose.thomas
As mentioned in my previous reply, there is no width switch for an image tag in LINQ Reporting Engine template syntax. Inserting Images Dynamically describes all and only available switches. For example, you can adjust the height of a containing textbox in a template manually as desired and then change its width dynamically according to the ratio of an image being inserted by using the following tag: <<image [Key.ReportData] -fitWidth>>.