Page 1 of 2
allow html and printing
Posted: Tue Jan 22, 2013 8:40 am
by JorisWils
Hi
We are having some problems with "allow html" and pringing.
On our windows 7 devices screen dpi's are set to 125% (default)
But when we have a report with a "allow html" set to a textbox it renders fine on screen. But when we print it the text seems to get bigger and doesn't fit the textbox anymore so it gets truncated.
Is there any way to solve this without setting screens to 100%?
Joris
Re: allow html and printing
Posted: Tue Jan 22, 2013 11:49 am
by HighAley
Hello.
This issue was fixed in one of our previous builds.
Please, update to the latest release.
Thank you.
Re: allow html and printing
Posted: Tue Jan 22, 2013 3:30 pm
by JorisWils
Yes there is a difference in versions. BUT...
I am now using 2012.3.
Still the text gets larger when enabling "allow html"
- Make 2 textboxes with the same text:
- Set one of them to allow html
-> the text in the control with "allow html" is longer when printed.
I my case I had a text that was 84mm when printed.
When I enabled html it was 97mm.
Text still gets deformed.
Re: allow html and printing
Posted: Wed Jan 23, 2013 5:24 am
by HighAley
Hello.
We couldn't reproduce your issue.
Please, check the Text Quality property of the text boxes.
If it is the same. Please describe your problem in detailes.
What system is on your machine?
What printer do your use?
Does the same issue occur when you print on other printers?
Thank you.
Re: allow html and printing
Posted: Wed Jan 23, 2013 11:32 am
by JorisWils
In attachment you can find a sample report.
the pdf gives the same result as printing to physical printer and also the rendered report in designer (preview).
There is no "text quality" property in the WPF editor. You guys removed it a few versions back.
I'm rendering this on a Win7 enterprise and tried different HP and Xerox printers (and export to pdf).
Re: allow html and printing
Posted: Wed Jan 23, 2013 11:38 am
by JorisWils
Could it be possible that when you enable the "allow html" checkbox , the wpf designer also sets the text quality property to wysiwyg in background?
I can see it is enabled in the mrt ( opened in notepad)
Yet... changing the text quality tag in notepad to Typographic does not make a difference.
Re: allow html and printing
Posted: Wed Jan 23, 2013 1:37 pm
by HighAley
Hello.
We use one engine to render reports either in Wpf or in WinForms.
The Wysiwyg text quality is used to render text with html in WinForms. Sometimes in this mode the text becomes wider. And in the Wpf we use the same mode to render text with html and get the same result.
Thank you.
Re: allow html and printing
Posted: Wed Jan 23, 2013 3:03 pm
by JorisWils
So there is actually no way to make the text look the same in a textbox with html and a textbox without html?
In my opinion a text should visually look the same when selecting the same font and size no matter what control you use. Size 8 is size 8, its as simple as that.... Calibri 8 is calibri 8 in word, excell, access..... even in charts, wordpad and so on. But not in stimulsoft? That just doesn't make any sense.
Re: allow html and printing
Posted: Thu Jan 24, 2013 12:20 pm
by HighAley
Hello.
There is no built-in support of the HTML in the Wpf. We use
Uniscribe to add HTML support. The usp10.dll library return us array of glyphs and its coordinates.
The text size and font is the same in both textboxes. The difference is in space between symbols. Even the Standard and Typographic modes of the .Net Framework render text with different margins.
Thank you.
Re: allow html and printing
Posted: Thu Jan 24, 2013 3:13 pm
by JorisWils
Yes, that may be true, but try explaining to an end-user that a feature is integrated but will never work perfectly.