Hi,
I noticed that when you try to print an Infopath form, half the page is usually out of the print area so there's no way you can have the form in its full width on a single sheet.
To avoid that, I wrote a CSS stylesheet that I tried to include in view1.xsl :
(view1.xsl)
<head>
...
<style themeStyle="urn:office.microsoft.com:themeBlue">BODY {
COLOR: black; BACKGROUND-COLOR: white
}
TABLE {
BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse
}
...
</style>
<link rel="stylesheet" type"text/css" href="print.css"/>
</head>
print.css is in the same directory as view1.xsl.
The problem is, when I try to open the Infopath form in design mode, I get an error : "Infopath failed to open this form : ...\...\myform.xsf.
A name contained an invalid character".
Whatever I place in that CSS stylesheet (even nothing) I get the error, but when I remove the link to the external stylesheet the error disappears.
Does anyone know how to solve that ?
Any help appreciated.