Hello,
Thank you for results. We need some additional time to check the issue.
Thank you.
RichText Content Not Display Properly
-
- Posts: 6243
- Joined: Tue Mar 20, 2018 5:34 am
Re: RichText Content Not Display Properly
Hello.
We have done some testing.
Please try to use the following code:
Thank you.
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;
Re: RichText Content Not Display Properly
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
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
- Attachments
-
- Report Header.png (40.39 KiB) Viewed 2564 times
Re: RichText Content Not Display Properly
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.
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
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.
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
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.
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.
- Attachments
-
- DpiAwareOff.zip
- (6.85 KiB) Downloaded 140 times