Hi
I see that the property "textQuality" on a textbox is missing in the WPF version.
Now.... We design our reports with the WPF designer, but users generate the reports with the .NET version.
Sometimes text in textboxes would not display correctly, but we could solve that by changing the "textquality" property on a textbox to "wysiwyg".
Yet we can't do that anymore now because that property is not available in the WPF designer.
But
Is there a way to set that property for all textboxes in a report by setting something in the beginrender-event of the report?
Something like:
foreach (textbox in report)
{
textbox.textquality="wysiwyg";
}
What would be the correct syntax for this?
TextQuality on textbox
TextQuality on textbox
Using Stimulsoft since 2007
TextQuality on textbox
Hello,
For WPF, this property is not relevant, since it uses its own engine to display text similar to the WYSIWYG mode.
You can use the following code:
Thank you.
For WPF, this property is not relevant, since it uses its own engine to display text similar to the WYSIWYG mode.
You can use the following code:
Code: Select all
for (int pageInd = 0; pageInd < report.Pages.Count; pageInd++)
{
foreach (StiComponent component in report.Pages[pageInd].Components)
{
if (component is StiText)
{
((StiText)component).TextQuality = StiTextQuality.Wysiwyg;
}
}
}
TextQuality on textbox
Thx a lot Aleksey
Yet I changed "report" to "this" so I don't have to worrie about the report name anymore
Thx!
Yet I changed "report" to "this" so I don't have to worrie about the report name anymore

Code: Select all
for (int pageInd = 0; pageInd > this.Pages.Count; pageInd++)
{
foreach (StiComponent component in this.Pages[pageInd].Components)
{
if (component is StiText)
{
((StiText)component).TextQuality = StiTextQuality.Wysiwyg;
}
}
}
Using Stimulsoft since 2007
TextQuality on textbox
Ok!
Thank you.
Thank you.