Hi,
Form Type: Browser Based
Browser: IE8
I've encountered an issue in Infopath where the text in a multiline textbox is being cut off at the bottom of the box when I Print to paper or Print to PDF using CutePDF printer.
Here is a step by step of what appears to be happening:
I have a text box with automatic height. The Infopath form can correctly calculate what the height should be. When I click the Print Preview icon within the browser based form, the Print view opens and everything looks correct. However, when i then go File->Print
Preview, text is being cut off at the end of some text boxes.
Some text boxes are affected and some are not. This depends on the content of that text box as opposed to the settings of the particular textbox control.
I think what's happening here is that the browser is getting the height of the font that is being used in the text box and then calculating the height of the text box accordingly. However, it looks like it's miscalculating the font size and therefore miscalculating
the text box height.
So following a suggestion from another forum, I changed the Print View to the Arial font. IE8 then looked to be calculating the height of the text box correctly and the File->Print Preview looked correct! I thought this had fixed it but unfortunately not
completely.... It seems that IE could calculate the height of the Arial font correctly but not the width of the font (Or maybe the letter spacing...). This meant that in some cases the following example would occur:
Let's say you have a text box 600px wide and inside that box you have 2 lines of text. The first line adds up to be 595px wide and then you have a line break and the next line is, let's say, 200px wide. Now, this means that the automatic text box height
is 2 lines high. However, if IE calulated the width of the first line to be 601px, then this would push the text to the next line, followed by a line break, followed by the last line = 3 lines.
So in the Print Preview, there would be a textbox 2 lines high trying to accomodate for 3 lines of text and this would result in the last line being cut.
To test it further, I tried the Calibri font. This one appears to calculate the width correctly but it doesn't allocate enough of space for the height! i.e. If I had a lot of text in the field then a couple of lines could be cut from the bottom but you wouldn't
notice if the field only contained a few lines of content.
Also it's worth noting that I opened a problematic form in Firefox and it looked fine using the Arial font but produced the same problem when I tried Calibri.
Any advice on this? I think it will need a hotfix to repair it but I'm open to suggestions
Thanks in advance!
Ben