How do you add line numbers to an InfoPath print view?

M

Mary Garcia

It would seem that you could add a JScript script to the XSL that produces
the print view to count and number lines. But we haven't been able to get
such a script recognized by the browser. Anyone have a suggestion?
 
S

Scott L. Heim [MSFT]

Hi Mary,

There is a relatively easy way to get "line numbers" but this may not work
in your scenario - if not, please provide some additional details so we can
get a better understanding of what you are trying to do.

- Assuming you have a Repeating Section or Repeating Table on your Print
View, you can add an Expression Box to the table or section and set the
XPath to: position()

This expression will display the "position" of each record in the section
or table hence you have a "line number" for each record.

I hope this helps but again, if I missed the boat please accept my
apologies!

Best Regards,

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top