Page 4 of 4

Re: RichText Content Not Display Properly

Posted: Sun Jun 17, 2018 8:10 am
by Lech Kulikowski
Hello,

Thank you for results. We need some additional time to check the issue.

Thank you.

Re: RichText Content Not Display Properly

Posted: Mon Jun 18, 2018 11:46 pm
by Ivan
Hello.

We have done some testing.
Please try to use the following code:

Code: Select all

			Bitmap bmp = new Bitmap(1, 1);
			bmp.SetResolution((float)(96 * StiDpiHelper.GraphicsRichTextScale), (float)(96 * StiDpiHelper.GraphicsRichTextScale));
			Graphics grr = Graphics.FromImage(bmp);
			grr.PageUnit = GraphicsUnit.Pixel;
			grr.PageScale = 1f;
			StiReport.GlobalRichTextMeasureGraphics = grr;
Thank you.

Re: RichText Content Not Display Properly

Posted: Tue Jun 26, 2018 5:11 am
by kennynjc
Hi,

Your code only work if the Scale is larger than 100%. When the scale = 100% the RichText would be out

Converted in VB.NET

Code: Select all

Dim bmp As New Bitmap(1, 1)
        bmp.SetResolution((96 * StiDpiHelper.GraphicsRichTextScale), (96 * StiDpiHelper.GraphicsRichTextScale))

        Dim myReportGlobalRichTextMG As Graphics = Graphics.FromImage(bmp)
        myReportGlobalRichTextMG.PageUnit = GraphicsUnit.Pixel
        myReportGlobalRichTextMG.PageScale = 1.0F
        StiReport.GlobalRichTextMeasureGraphics = myReportGlobalRichTextMG

Re: RichText Content Not Display Properly

Posted: Sat Jun 30, 2018 9:11 pm
by HighAley
Hello.

We have found an issue in the StiDpiHelper.GraphicsRichTextScale method.
The system scale was not always right.
The fix will be available in our next build on July.

Thank you.

Re: RichText Content Not Display Properly

Posted: Thu Jul 12, 2018 3:14 am
by kennynjc
Hi,
I'd tried with the new release 2018.2.3 and the problem only gone for my machine. But, for most of my customer with Windows 10 Text Scale is 100%, it doesn't work and the RichText Header became presented in very large. However, I noticed that there will be no problem if their Text Scale being set to 125%.

I dont understand why my machine work for below code but some others become worst.
Dim bmp As New Bitmap(1, 1)
bmp.SetResolution((96 * StiDpiHelper.GraphicsRichTextScale), (96 * StiDpiHelper.GraphicsRichTextScale))

Dim myReportGlobalRichTextMG As Graphics = Graphics.FromImage(bmp)
myReportGlobalRichTextMG.PageUnit = GraphicsUnit.Pixel
myReportGlobalRichTextMG.PageScale = 1.0F
StiReport.GlobalRichTextMeasureGraphics = myReportGlobalRichTextMG


Please advise.
Thank you.

Re: RichText Content Not Display Properly

Posted: Tue Jul 17, 2018 4:52 pm
by HighAley
Hello.

It's very strange. We tested our product on several different machines.
Please, run the attached application on the machine with the issue.

Send us the Text Scale that is set in the system and the output of this application.

Thank you.