mgm75 Posted November 23, 2016 Posted November 23, 2016 I'm taking on a client the has been using MS Word.Obviously with word you can auto number lines. In their reports that go to another agency they are required to have a text narrative where each line in numbered. i.e. 1. something here is writen 2. by the user and it could go 3. on for several pages. how can this be accomplished ?
comment Posted November 23, 2016 Posted November 23, 2016 (edited) In what format is this report? And by "line" do you also mean lines created by automatic wrapping of the text? Edited November 23, 2016 by comment
mgm75 Posted November 23, 2016 Author Posted November 23, 2016 Yes, this includes wrapping text lines. IT really needs to print this way. it a police report that has to go to court.
comment Posted November 24, 2016 Posted November 24, 2016 (edited) I would prefer not to do this within Filemaker and look for a way to export the text to another application (e.g. Word) that can do it more elegantly. The real problem here is not line numbering, but line breaking. Filemaker has no idea where the automatic line breaks are - so if you want to number the lines yourself, you also need to break them yourself. And your tool set for this task is severely limited, because the most you can do is count the characters. That's woefully inadequate when dealing with a proportional font. If you do decide to go this way, I would suggest you do the line breaking and numbering only at the end, and in a separate field. Otherwise you will run into problems if the user wants to edit the original text. If you have the Advanced version, you can utilize two existing custom functions: Abscind() by Ray Cologon and LineNumbering() by Daniele Raybaudi for this. I am attaching a simple demo showing how (with a slight modification to the latter). Otherwise you will have to rewrite them as looping scripts (or get someone to install the custom functions for you). NumberedLines.fp7 Edited November 24, 2016 by comment
Recommended Posts
This topic is 2921 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now