I am using a template and replace the dynamic text at runtime. In this I want to replace a portion content with html content (i.e base64 image, paragraph) but not getting any option to do that.
Any help would be much appreciated!
foreach (Paragraph para in tb[i].Paragraphs)
{
foreach (Portion port in para.Portions)
{
var data = replaceText.FirstOrDefault(x => port.Text.Contains(x.Key));
if (data.Value != null)
{
string str = port.Text;
int idx = str.IndexOf(ss.Key);
string strStartText = str.Substring(0, idx);
string strEndText = str.Substring(idx + ss.Key.Length, str.Length - 1 - (idx + ss.Key.Length - 1));
port.Text = strStartText + ss.Value + strEndText;
}
}
}