Text string gets truncated on Printed report when different DPI settings are used

Stimulsoft Reports.NET discussion
ae
Posts: 8
Joined: Wed Mar 02, 2011 4:19 pm
Location: Vancouver

Text string gets truncated on Printed report when different DPI settings are used

Post by ae »

We have users that change their DPI settings to get more characters onto their small video screens (DPI setting = 90%)

This causes text fields with long strings (which have 'shrink to fit=True') to be truncated when the report is printed.

However, when the report is displayed in the Report Viewer it looks ok, and it is also ok when 'Save As PDF'.

Any suggestions on a workaround for this, or if it has been fixed in a recent release.

Thanks,
ae

Attachments
877.truncated text example.JPG
877.truncated text example.JPG (19.07 KiB) Viewed 2232 times
876.dpi settings.JPG
876.dpi settings.JPG (62.89 KiB) Viewed 2232 times
875.TestReport.mrt
(464.01 KiB) Downloaded 161 times
874.DPI Test Report - Printed to PDF Print driver.pdf
(57.31 KiB) Downloaded 185 times
873.DPI Test Report - Save as PDF.pdf
(143.55 KiB) Downloaded 245 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Text string gets truncated on Printed report when different DPI settings are used

Post by Alex K. »

Hello,

Please send us a sample report with data which reproduses the issue.

Thank you.
ae
Posts: 8
Joined: Wed Mar 02, 2011 4:19 pm
Location: Vancouver

Text string gets truncated on Printed report when different DPI settings are used

Post by ae »

Attachments added to the initial post. Any thoughts on a solution/workaround.

Thanks,
Andrew
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Text string gets truncated on Printed report when different DPI settings are used

Post by Ivan »

Hello,

We have tested your report on the latest build and, if we diagnose the issue in the correct way, the problem is already fixed.
Please check the latest prerelease build and let us know about the result.

Thank you.
ae
Posts: 8
Joined: Wed Mar 02, 2011 4:19 pm
Location: Vancouver

Text string gets truncated on Printed report when different DPI settings are used

Post by ae »

Thanks,

We'll try it at our next opportunity.

Andrew

Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Text string gets truncated on Printed report when different DPI settings are used

Post by Andrew »

Hello,

Let us know about the result.

Thank you.
ae
Posts: 8
Joined: Wed Mar 02, 2011 4:19 pm
Location: Vancouver

Text string gets truncated on Printed report when different DPI settings are used

Post by ae »

Hi,

We have now upgraded and using Release 2011-01 but are still encountering the same problem.
Can you have a look at this again and let us know if we there is something else we must do to get the print to work properly.
Was the problem fixed in a more current release?

Thanks,
Andrew

Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Text string gets truncated on Printed report when different DPI settings are used

Post by Ivan »

Hello,

It seems internal bug of .NET Framework and GDI+ library.

As a workaround, please try to set the TextQuality property of the problem textboxes to Wysiwyg.

Thank you.
ae
Posts: 8
Joined: Wed Mar 02, 2011 4:19 pm
Location: Vancouver

Text string gets truncated on Printed report when different DPI settings are used

Post by ae »

Thanks for the workaround, that solved the problem.
Also the wysiwyg setting generates more accurate and consistent alignment between text boxes.

A couple of related questions to help us move forward...
) Are there any limitations of using this setting on all text boxes?
) Is there some way to reset all the text boxes on all reports (we have over a hundred that we would like to do).
) Is there a setting somewhere that will then cause all new text boxes to default to wysiwyg. I have 'use last format' option set, but it does not appear to work for the Text Quality attribute.

Thanks,
Andrew
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Text string gets truncated on Printed report when different DPI settings are used

Post by Ivan »

Hello,
ae wrote:A couple of related questions to help us move forward...
) Are there any limitations of using this setting on all text boxes?
No. Only one known problem - sometimes there are problems with printing on some PostScript-printers.
ae wrote:) Is there some way to reset all the text boxes on all reports (we have over a hundred that we would like to do).
You can do it from the code, for example:

Code: Select all

            foreach (StiComponent component in yourReport.GetComponents())
            {
                if (component is StiText)
                {
                    (component as StiText).TextQuality = StiTextQuality.Wysiwyg;
                }
            }
ae wrote:) Is there a setting somewhere that will then cause all new text boxes to default to wysiwyg. I have 'use last format' option set, but it does not appear to work for the Text Quality attribute.
Please set the static property StiOptions.Engine.DefaultTextQualityMode = StiTextQuality.Wysiwyg;

Thank you.
Post Reply