{{tag>category:"OpenInsight 32-Bit" author:"Patrick McCann" author:"dbakke@srpcs.com's Don Bakke" author:"Sean FitzSimons"}}
[[https://www.revelation.com/the-works|Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community]]
==== Twips (OpenInsight 32-Bit) ====
=== At 15 APR 2009 02:22:16AM Patrick McCann wrote: ===
Hi, I was hoping someone here can help me with the following. I am trying to determine the number of characters (printed at a particular font size) that will fit in a column based on twips. As an example, if I have a column length set at 1440 twips (1 inch) and my font is set to Arial 6 how many characters can I fit into the column. If someone can pass along a formula, or if this functionality is already incorporated into OI and I missed I would appreciate any help. Thank you, Patrick
----
=== At 15 APR 2009 04:03AM dbakke@srpcs.com's Don Bakke wrote: ===
Pat,
If you are working with the OIPI then I suggest using the CALCTEXT message. If you doing something else then you should use the TEXTRECT service of the Utility function.
dbakke@srpcs.com
[url=http://www.srpcs.com]SRP Computer Solutions, Inc.[/url]
[img]http://www.srpcs.com/srpicon1.gif[/img]
----
=== At 15 APR 2009 08:24AM Sean FitzSimons wrote: ===
Patrick,
Don is correct, the CALCTEXT/CALCTABLE/CALCMAXLEN messages are used to determine size within OIPI. The Help has examples on their use.
Sean
----
=== At 15 APR 2009 11:39AM Patrick McCann wrote: ===
Thank you both Don and Sean. I started to look at these late last night and will pick it up again this evening. Now I know I am going in the right direction.
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=WORKS_READ&SUMMARY=1&KEY=29B9B35A424B1141852575990022FF72|View this thread on the Works forum...]]