Simon Strandgaard
9/4/2003 10:44:00 PM
On Thu, 04 Sep 2003 23:08:57 +0900, Sabyasachi Mustafi wrote:
> I made a simple thing in ruby for printing to the printer.
> Make the output in a file and then print it.
>
> pp=File.open(''C:\test.doc'',''w'')
> pp.print "hello print"
> pp.close
> system(''D:\Program Files\Microsoft Office\Office10\Winword
> "C:\test.doc"'')
>
> It works fine in Windows or Linux with the system.
> But I don''t know if there is any other simple solution. Actually I
> need to make a report, so there are some formatted text, also
> different sizes of papers etc. Any other solution for this?
DocBook-xml is a nice open-standard format. It can output a huge range
of formats (html, pdf, ps, man, rtf, xhtml, winhelp, others?).
There is also many free tools for processing docbook.
<section><title>Hello World</title>
<para>This is DocBook-xml.</para>
</section>
Quite nice, I love it.
--
Simon Strandgaard