Mathias Röllig wrote:
If one export a calc sheet as a text file with "fixed text width" "the column width is calculated in characters of a standard font, and follow the actual column widths of the document."
Special applications need text files with a defined fixed number of characters in each column to read in.
Question(s): How can i get or see the number of characters that will be used for the export? Is there a (undocumented) way to set the width of a column as numbers of characters? Or will there be a enhanced export dialog where the numbers can be set for each column (so that there is a preview of the (truncated) contents)?
The number of characters is calculated in the function lcl_ScDocShell_GetColWidthInChars in sc/source/ui/docshell/docsh.cxx (nWidth is in twips). You can do the same calculation, it doesn't depend on any internals. There's no real guarantee that it will stay that way forever, but for now it's the best you can do. Changes to the dialog are not planned at the moment.
Niklas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
