I need to create custom design to our InfoPath 2007 form. I have created
custom CSS(mycustomstyleSheet.css) to apply the change to the controls
like table background-color,border style,textbox width etc.This external
style sheet (css) that we included as a resource. The form works well in
InfoPath preview, but all the css styles are removed when published on Moss
(Infopath Form Services).
I used the article to achive this.
http://www.infopathdev.com/blogs/greg/archive/2005/06/07/Add-a-Custom-Style-Sheet-to-a-View.aspx
All the custom elements and code works, but it looks like the external css
resource is not included, and the custom class definitions on each element
are overridden by the default style in Moss or InfoPath.
I need to make custom CSS visible in forms services - MOSS 2007. Also I
don’t want to embedded style in xsl individually because we have multiple
forms and all the styles are common so wanted to use external css file.
Does anyone have a suggestion?
Best regards,
Javed
I have the same requirement as you. Unfortunately it is not possible to reference to an external CSS from InfoPath 2007 browser form. This an 'official' statement I got from Microsoft support.
Best Regards,
0lli
> On Thursday, February 18, 2010 11:28 PM javed wrote:
> Hi All,
>
> I need to create custom design to our InfoPath 2007 form. I have created
> custom CSS(mycustomstyleSheet.css) to apply the change to the controls
>
> like table background-color,border style,textbox width etc.This external
> style sheet (css) that we included as a resource. The form works well in
>
> InfoPath preview, but all the css styles are removed when published on Moss
> (Infopath Form Services).
>
> I used the article to achive this.
>
>
>
> http://www.infopathdev.com/blogs/greg/archive/2005/06/07/Add-a-Custom-Style-Sheet-to-a-View.aspx
>
>
>
>
> http://social.msdn.microsoft.com/Forums/en/sharepointinfopath/thread/b5023cbb-2816-4acf-8ba1-74694b73d9af
>
>
>
>
> All the custom elements and code works, but it looks like the external css
> resource is not included, and the custom class definitions on each element
> are overridden by the default style in Moss or InfoPath.
>
> I need to make custom CSS visible in forms services - MOSS 2007. Also I
> don???t want to embedded style in xsl individually because we have multiple
> forms and all the styles are common so wanted to use external css file.
>
> Does anyone have a suggestion?
>
> Best regards,
>
> Javed
> Submitted via EggHeadCafe - Software Developer Portal of Choice
> Why GUIDs are not a good idea for SQL Server Primary Keys
> http://www.eggheadcafe.com/tutorials/aspnet/d662b371-ed27-481c-aee0-ebe7cf2d9fad/why-guids-are-not-a-good-idea-for-sql-server-primary-keys.aspx