report displaies symbols!
Posted: Mon Apr 21, 2014 5:26 pm
Hi,
We use RicText to display a stylish text, when we pass an Arabic value to the report to be displaied by the RichText component; it is displied as symbol.
However, if the text is stored in the RicText as a default value it is displied currently!
I have attached our report with this topic and you here is our code
Final question, Could we increase the output image resolution? if yes how, please?
We use RicText to display a stylish text, when we pass an Arabic value to the report to be displaied by the RichText component; it is displied as symbol.
However, if the text is stored in the RicText as a default value it is displied currently!
I have attached our report with this topic and you here is our code
Code: Select all
private void printPostAyahCard(string sIdentity, string strAyah, string strTfseer, string sPath, StiReport report)
{
string sFullFileName = "";
StiPage page = report.Pages[0];
page.UnlimitedHeight = true;
page.UnlimitedBreakable=false;
report["ayah"] = strAyah;
report["tfseer"] = strTfseer;
report.ReportName = "تفسير آية";
report.Render(false);
/*We tried to overcome this issue by using the component directly but there is no result*/
//StiComponent component = report.GetComponentByName("ComponentName");
//StiRichText ricAyah = (StiRichText)report.GetComponentByName("rchAyah");
//rich.SelectionFont = new Font("Arial", 20, FontStyle.Bold);
//System.Drawing.Font font = new System.Drawing.Font("KFGQPC Uthmanic Script HAFS", 32);
//ricAyah.SetFont(font);
//ricAyah.RtfText = strAyah;
sFullFileName = sPath + @"\Images\1\0\" + sIdentity + ".jpg";
report.ExportDocument(Stimulsoft.Report.StiExportFormat.ImagePng, sFullFileName);
report = null;
}