report displaies symbols!

Stimulsoft Reports.NET discussion
AlharbiN
Posts: 32
Joined: Wed Jan 02, 2013 1:07 pm

report displaies symbols!

Post by AlharbiN »

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

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;
        }
Final question, Could we increase the output image resolution? if yes how, please?
Attachments
pass-ar.mrt
our report
(205.95 KiB) Downloaded 330 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: report displaies symbols!

Post by HighAley »

Hello.

Please, try to set the Full Convert Expression property of the Rich Text to True.

To set better resolution you should use ExportDocument(Stimulsoft.Report.StiExportFormat exportFormat, string file, Stimulsoft.Report.Export.StiExportSettings settings) method with StiPngExportSettings as parameter.

Thank you.
AlharbiN
Posts: 32
Joined: Wed Jan 02, 2013 1:07 pm

Re: report displaies symbols!

Post by AlharbiN »

Hello,
we tried this code

StiPage page = report.Pages[0];
page.UnlimitedHeight = true;
page.UnlimitedBreakable=false;
report["ayah"] = strAyah;
report["tfseer"] = strTfseer;
report.ReportName = "تفسير آية";
report.Render(false);

StiRichText ricAyah = (StiRichText)report.GetComponentByName("rchAyah");
ricAyah.FullConvertExpression = true;

StiRichText ricTfseer = (StiRichText)report.GetComponentByName("rchTfseer");
ricTfseer.FullConvertExpression = true;

report.ExportDocument(Stimulsoft.Report.StiExportFormat.ImagePng, sFullFileName);

Unfortuntaly, the problem still the same.
Attachments
003097.png
003097.png (586.97 KiB) Viewed 3696 times
AlharbiN
Posts: 32
Joined: Wed Jan 02, 2013 1:07 pm

Re: report displaies symbols!

Post by AlharbiN »

The issue become worse, since we have found that symbol appearance is not associated only with passing value via parameter! It also appears when we use RegData which means we have no way to display dynamic data. Symbol does not appears only and only if we assign default value to RichText manually!
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: report displaies symbols!

Post by HighAley »

Hello.

You should set this property before rendering of the report.

Thank you.
AlharbiN
Posts: 32
Joined: Wed Jan 02, 2013 1:07 pm

Re: report displaies symbols!

Post by AlharbiN »

I'm sorry! I have edit the code as you have commented but still the issue has not solved!
Attachments
003098.png
003098.png (454.71 KiB) Viewed 3686 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: report displaies symbols!

Post by HighAley »

Hello.

Please, send us sample project which reproduces the issue for analysis.

Thank you.
AlharbiN
Posts: 32
Joined: Wed Jan 02, 2013 1:07 pm

Re: report displaies symbols!

Post by AlharbiN »

Please, check the attached file

P.S: I have sent a copy of this ziped file to your support email
Attachments
SymbolIssue.rar
(2.22 MiB) Downloaded 370 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: report displaies symbols!

Post by HighAley »

Hello.

You are loading reports from assemblies. It's impossible to change FullConvertExpression property of the Rich Text component after compilation because this property affects compilation methods.
You should set the property in the report template and then save it as assembly that could be used in your project.

Thank you.
AlharbiN
Posts: 32
Joined: Wed Jan 02, 2013 1:07 pm

Re: report displaies symbols!

Post by AlharbiN »

How to set the property in the report templetate? I haven't used this feature and I don't know how to do that.
Post Reply