For some reason the ODT file wants to know if I want to translate it from French, and while the font is “Courier New” for anything I would type into the document, the font of the text itself is “Liberation Serif” If I change the font manually to “Courier New” I get gaps in the vertical lines, but if I change it to “Consolas” there are no gaps and it looks perfect. So I thought I should be able to just save a template with the font set to “Consolas” and the spacing set to “No Spacing” which is basically single spacing it.. Well when I save it like that, when I try to run it I get: Unable to Open File: C:\Users\James\AppData\Local\Temp\Fi8004.odt Press OK and risk data corruption or press abort to kill the program I think it must have something to do with using Microsoft Word to save the template. James From: fpc-pascal <fpc-pascal-boun...@lists.freepascal.org> On Behalf Of Jean SUZINEAU via fpc-pascal Sent: Wednesday, April 21, 2021 6:21 PM To: fpc-pascal@lists.freepascal.org Cc: Jean SUZINEAU <jean.suzin...@wanadoo.fr> Subject: Re: [fpc-pascal] Directory Tree Another way of seeing is to generate and odt file with the generated text. You get a slightly better rendering because I could define Courier New as default font in the new template: FileVirtualTree_txt_to_odt.odt >From the OpenOffice "File" menu, you can generate a pdf file. There is a way too, to execute LibreOffice/OpenOffice from command line to convert directly the odt to pdf. I have some code for this at https://github.com/jsuzineau/pascal_o_r_mapping/blob/master/OOo/uOD.pas, in methods - function TOD.Executable_soffice: String; - function TOD.Format_Sortie_from_(_Nom_ODT: String): String; - function TOD.PDF_from_(_Nom_ODT: String): String; but it can't be used as is for the current case.
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal