M
marly
I have an InfoPath form that I want to print out. Since InfoPath is
completely useless for printing forms I found a website here:
http://enterprise-solutions.swits.n...form-into-word-2007-document-xslt-c-sharp.htm
that shows me how to convert my InfoPath form to Word 2007 and I am able to
print out a document that looks really nice, in Word 2007 or PDF.
Now the problem:
On the form I have a Drop-Down List Box, with two items in them 1 and 2.
On the Drop-Down List box’s rules, I created a rule to change a text box
contents from 1 to 2. When I set the condition to “When Drop-Down List Box is
equal to 1†change the text box to 1 and “When Drop-Down List Box is equal to
2†change the text box to 2.
Much to my dismay, I found out, when I try selecting the contents of the
Drop-Down List box, I get an error that says, “Some Rules were not applied,
unspecified errorâ€.
I tracked down the error a little bit; I found that, in the instructions to
the website I linked to above, you create a “transform.xsl†from the
“document.xml†in the .docx file. Then you create a Data Connection to
receive data from the “transform.xsl†document.
If I create a new InfoPath project, put in a Drop-Down List Box, create a
rule, to change text box from 1 to 2 depending if the Drop-Down List box is 1
or 2. It works as expected. Then I go to data Connections and load up the
“transform.xsl†and run the form I get the “Some Rules were not applied,
unspecified errorâ€. So I know it relates to the “transform.xsl†file that’s
being created, however, why it can run the rules I have no clue.
If anyone has any suggestions I’d greatly appreciate it.
Thanks,
marly
completely useless for printing forms I found a website here:
http://enterprise-solutions.swits.n...form-into-word-2007-document-xslt-c-sharp.htm
that shows me how to convert my InfoPath form to Word 2007 and I am able to
print out a document that looks really nice, in Word 2007 or PDF.
Now the problem:
On the form I have a Drop-Down List Box, with two items in them 1 and 2.
On the Drop-Down List box’s rules, I created a rule to change a text box
contents from 1 to 2. When I set the condition to “When Drop-Down List Box is
equal to 1†change the text box to 1 and “When Drop-Down List Box is equal to
2†change the text box to 2.
Much to my dismay, I found out, when I try selecting the contents of the
Drop-Down List box, I get an error that says, “Some Rules were not applied,
unspecified errorâ€.
I tracked down the error a little bit; I found that, in the instructions to
the website I linked to above, you create a “transform.xsl†from the
“document.xml†in the .docx file. Then you create a Data Connection to
receive data from the “transform.xsl†document.
If I create a new InfoPath project, put in a Drop-Down List Box, create a
rule, to change text box from 1 to 2 depending if the Drop-Down List box is 1
or 2. It works as expected. Then I go to data Connections and load up the
“transform.xsl†and run the form I get the “Some Rules were not applied,
unspecified errorâ€. So I know it relates to the “transform.xsl†file that’s
being created, however, why it can run the rules I have no clue.
If anyone has any suggestions I’d greatly appreciate it.
Thanks,
marly