Page 3 of 4

Re: RichText Content Not Display Properly

Posted: Thu Apr 12, 2018 3:50 am
by kennynjc
Hi, It's Stimulsoft rectified this issue?

Our customers is fed-up with this. No way we has to set to Windows for every PC who using our report from Stimulsoft report engine.

We'd tested on DevExpress Report Engine without problem found and can display normal.

Re: RichText Content Not Display Properly

Posted: Fri Apr 13, 2018 6:18 pm
by Lech Kulikowski
Hello,

Please check the last release build, were made some fixes.

If the issue still present, please run reports from the attachment and send us its preview.

Thank you.

Re: RichText Content Not Display Properly

Posted: Mon Apr 16, 2018 1:19 pm
by kennynjc
Hi,

There's some progress after using latest build (2018.2.1)
The issue will only gone by, right after open your Test Dpi.mrt and preview, then re-open the other report without close of the designer.

Refer Test Dpi v2 - Design Time
The outcome when first open Test Dpi v2 in design time, the problem remain until preview it. (Refer Test Dpi v2)

I also attached the result of Test Dpi v3 and v4

Re: RichText Content Not Display Properly

Posted: Mon Apr 23, 2018 5:13 am
by kennynjc
Hello, any updates on the above issue?

Re: RichText Content Not Display Properly

Posted: Thu Apr 26, 2018 7:47 am
by HighAley
Hello.

We need to specify if you use our Standalone Designer.
If you call the Designer from your application, you could use next code after starting your application.
This code redefines Graphics for RichText.

Code: Select all

Graphics grr = Graphics.FromImage(new Bitmap(1, 1));
grr.PageUnit = GraphicsUnit.Pixel;
grr.PageScale = 1f;
StiReport.GlobalRichTextMeasureGraphics = grr;
We use this code in the Test Dpi v2.mrt report before the Preview.

Thank you.

Re: RichText Content Not Display Properly

Posted: Fri Apr 27, 2018 8:28 am
by kennynjc
Hi, thanks for the code snippet. It works!

in VB.NET code:
Dim myReportGlobalRichTextMG As Graphics = Graphics.FromImage(New Bitmap(1, 1))
myReportGlobalRichTextMG.PageUnit = GraphicsUnit.Pixel
myReportGlobalRichTextMG.PageScale = 1.0F
StiReport.GlobalRichTextMeasureGraphics = myReportGlobalRichTextMG
Before include the code
Before include the code
Screen03.png (168.43 KiB) Viewed 5969 times
Before include the code
Before include the code
Screen03.png (168.43 KiB) Viewed 5969 times

Thank you.

Re: RichText Content Not Display Properly

Posted: Fri Apr 27, 2018 1:38 pm
by Lech Kulikowski
Hello

We are always glad to help you!
Please let us know if you need any additional help.

Thank you.

Re: RichText Content Not Display Properly

Posted: Fri Jun 08, 2018 8:53 am
by kennynjc
Hi, it yield another problem whereby lot's of my customer getting the another problem after applied solution that been suggested.

Dim myReportGlobalRichTextMG As Graphics = Graphics.FromImage(New Bitmap(1, 1))
myReportGlobalRichTextMG.PageUnit = GraphicsUnit.Pixel
myReportGlobalRichTextMG.PageScale = 1.0F
StiReport.GlobalRichTextMeasureGraphics = myReportGlobalRichTextMG

Please advise.

Thanks.
Kenny

Re: RichText Content Not Display Properly

Posted: Mon Jun 11, 2018 12:12 pm
by Lech Kulikowski
Hello,

Screenshots show that on the second computer system scaling is installed (most likely 175%).

Please try to run Test Dpi v2.mrt and send us results.

Also, you can try to use the following option:
StiDpiHelper.Reset(StiDpiHelper.DeviceCapsDpi, StiDpiHelper.GraphicsDpi, 96);

Thank you.

Re: RichText Content Not Display Properly

Posted: Tue Jun 12, 2018 3:04 am
by kennynjc
Hi,

Yes, I could reproduced the result by setting the scale to 150%.

Adding the below line doesn't help
StiDpiHelper.Reset(StiDpiHelper.DeviceCapsDpi, StiDpiHelper.GraphicsDpi, 96)

I attached the result for Test v2 DPI as per request.