Maintaining Spaces?

B

Ben

Is there a way to maintain the spaces in a field when using the print view
and an expression box? Currently when there are multiple spaces, the all but
one space disappears when printing.

Thank you for your help!
 
G

Greg Collins [InfoPath MVP]

Because InfoPath uses Trident (the rendering engine for Internet Explorer) to render its views, spaces are automatically collapsed (it is the same situation in a web page).

But you can use an alternate space character which will not collapse down to a single space. To get this alternate space character:
1. Make sure numlock is turned ON.
2. Hold down ALT.
3. Using the 10-Key number pad (this won't work using the standard number keys above the letter keys), press 0160 (the initial 0 is essential).
4. Release ALT.

This creates a nonbreaking space character (which can also be copy-pasted) that can be used to accomplish your needs.

--
Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com


Is there a way to maintain the spaces in a field when using the print view
and an expression box? Currently when there are multiple spaces, the all but
one space disappears when printing.

Thank you for your help!
 
Top