Recent

Author Topic: TMemo lines or TXT file to PDF  (Read 1940 times)

TomTom

  • Full Member
  • ***
  • Posts: 170
TMemo lines or TXT file to PDF
« on: March 19, 2018, 01:06:40 pm »
Hi :)
What do I need to create PDF from TMemo lines or from a TXT file hm?
Or how can I export StringGrid to excel spreadsheet or openoffice spreadsheet ?

I have program which grinds through hundreds of image files and writes down statistics (file count, file size etc) I need to make a report from that. What is the easiest way to achieve this?

Thank You in advance :)

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: TMemo lines or TXT file to PDF
« Reply #1 on: March 19, 2018, 06:38:14 pm »
The attached project gives you a skeleton you can adapt as required.
The resulting CSV file can be opened directly in Excel or Calc.

TomTom

  • Full Member
  • ***
  • Posts: 170
Re: TMemo lines or TXT file to PDF
« Reply #2 on: March 19, 2018, 09:39:54 pm »
Thank You :) I forgot about CSV files :P. It would be better for me to save reports in PDF format since I have to show them to people without MOffice or OOffice but I can load my CSV file and then export it to PDF file in OOffice:) Now I need to figure out how to format and compose those information I need (as I mentioned earlier, files count, total size, folders, time elapsed on conversion, errors  etc ) :) 
I though that there are some components like ComponentName.SaveToPDF(Memo1.lines) :P

Thanks for reminding me about CSV file :P and Your sample project :)
« Last Edit: March 20, 2018, 09:25:06 am by TomTom »

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: TMemo lines or TXT file to PDF
« Reply #3 on: March 20, 2018, 12:18:34 am »
You might want to consider using fcl-pdf in your installation.

Or, better, fcl-report, which is able to produce PDF files, from trunk.

 

TinyPortal © 2005-2018