| ID: | 9003 |
| Title: | RW - Adding Line Numbers to SOP Documents Example |
| URL: | http://blogs.msdn.com/developingfordynamicsgp/archive/2008/07/21/rw-adding-line-numbers-to-sop-documents-example.aspx |
| Description: | The following example shows how easy it is to use VBA to add a line number to a SOP Document. There is a Knowledge Base (KB) article 857285 By adding a blank calculated integer field to the SOP Blank Invoice Form at the beginning of the line item, we can then use VBA to populate this field with a value incremented as each line is printed. We use the Report_Start() event to reset the counter variable and then use the Report_BeforeAH() event to increment the counter variable and update the calculated field. NOTE: To ensure that only the H2 section is incrementing the counter, we use a select case statement in the Report_BeforeAH() event. Example code for v8.0, v9.0 & v10.0 is attached at the bottom of the article. Please see the "Installation Instructions.txt" file in each version's archive for more information. |
| Category: | TIPS AND TRICKS BY MODULES: SOP |
| Link Owner: | |
| Date Added: | June 17, 2010 02:12:44 AM |
| Number Hits: | 12 |