Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2003-11

Full-featured output library

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alan Mead

Using FPC, I have created a program to perform a specific type of statistical analysis. It's entirely console-based and it runs on both Linux and Windows.

I currently create text output but I'd like to have tables and graphs. Is there a library that would allow me to create output in a variety of formats like PostScript, PDF, Word, RTF, HTML? I would need it to work on Windows and Linux. This seems like a tall order but I thought I would ask... maybe OOo could be accessed or something. Any advice appreciated.

Thanks!

-Alan Mead

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree

Michael Van Canneyt
to Alan Mead
Alan Mead wrote 10 lines
Using FPC, I have created a program to perform a specific type of statistical analysis. It's entirely console-based and it runs on both Linux and Windows. I currently create text output but I'd like to have tables and graphs. Is there a library that would allow me to create output in a variety of formats like PostScript, PDF, Word, RTF, HTML? I would need it to work on Windows and Linux. This seems like a tall order but I thought I would ask... maybe OOo could be accessed or something. Any advice appreciated.

The beginnings of such a library are in the FCL:

- Wformat : TFormattingWriter - abstract class to write formatted text.
- WHtml - descendent that writes HTML.
- Wtex - descendent that writes LaTeX. (could be used to produce PS, RTF and PDF using existing tools)

Other descendents can easily be added.

- FPImage/fpCanvas is a set of units that allows to 'Draw' on a canvas, producing output to PS/BMP/XPM/PNG. You can create images this way - to be included in your text.

All 100% Object Pascal. Still under development, but usable, and I'm open to suggestions for improvement.

Michael.

Alan Mead
to Michael Van Canneyt
--- Michael Van Canneyt wrote
All 100% Object Pascal. Still under development, but usable, and I'm open to suggestions for improvement.

Thanks for this reply! I'd like to try this but my knowledge of Pascal programming was frozen around TP 5. (Before OOP and before Borland Pascal). How would I get started with the FCL? I printed the FCL reference but it's not a tutorial. Are there any examples using the FCL (I don't see any in the examples directory)?

-Alan

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree

Michael Van Canneyt
to Alan Mead
Alan Mead wrote 12 lines
--- Michael Van Canneyt wrote: > All 100% Object Pascal. Still under development, but usable, and > I'm > open to suggestions for improvement. Thanks for this reply! I'd like to try this but my knowledge of Pascal programming was frozen around TP 5. (Before OOP and before Borland Pascal). How would I get started with the FCL? I printed the FCL reference but it's not a tutorial. Are there any examples using the FCL (I don't see any in the examples directory)?

The fcl/tests directory contains test programs/examples. You need the FCL sources for this, of course.

Michael.