comp.lang.ada
 help / color / mirror / Atom feed
From: Al Christians <achrist@easystreet.com>
Subject: Re: Laser printing from ADA (Windows)
Date: 1998/10/24
Date: 1998-10-24T00:00:00+00:00	[thread overview]
Message-ID: <36317DF5.3704A493@easystreet.com> (raw)
In-Reply-To: Pine.A41.3.96-heb-2.07.981023180016.70444B-100000@pluto.mscc.huji.ac.il

Ehud Lamm wrote:
> 
> Is there a package/binding that gives you easy printing functionallity
> from Windows. I basically want to be able to draw rectangels, print text
> etc. I do not want to deal with low level details.
> 

I would also be interested in whatever solutions might be available or
easily devised for preparing good-looking documents programmatically 
from Ada code under MS Win32.  

The basic idea of Windows is that you're not supposed to have to worry 
too much about it.  If you can put it onto the screen, Windows and the
(printer, etc) drivers are supposed to be able to print it, fax it, 
or whatever.  There are standard editor and viewer routines and programs 
(not in Ada) that should be easy to call from Ada that can handle the 
display and printing of the data. The problem is preparing the document 
in the right format.  Here are some things that might work under 
Windows: 

1. Ascii text -- This is very limited, but the easiest to create.
  
2. HTML --  Any good general purpose Ada HTML generator packages?	
Unfortunately, HTML is not particularly strong at specifying the
appearance of a printed page. Will XML be any improvement for that
purpose?
	
3. RTF  --  Maybe only a little more complicated to generate than 
HTML.  It has facilities for mail-merge type document creation, 
embedded graphics, etc.  This was my best choice for rapid mass-
customization of documents.  Unfortunately, I have not found that
there is much code available for generating RTF programmatically.        
Would this be a good use for Ada?  

4.  PS and PDF -- These are more complicated.  There is a 
C program called Lout that can generate these from specially marked-up
Ascii text.  You could generate the Lout input in Ada. 

5. Crystal Reports --  Set up your document as a report. Put the custom
data in a text database written from your (Ada) program. Call Crystal as 
a DLL (from Ada or otherwise). 

The conventional (non-Ada, off-the-shelf) solutions are fairly
competitive if you have adequate money, adequate bandwidth to the user's
desktop, and performance is not a problem.  I had an application 
recently where all that was not quite true.  We were supposed to come
up with a program that could be distributed on diskettes and would 
put a good-looking report of about 10 pages with about 1000 customized 
fields on the screen in about 10 seconds with wysiwyg printing. TIA
for any suggestions about how to meet such requirements.

Al




  parent reply	other threads:[~1998-10-24  0:00 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-23  0:00 Laser printing from ADA (Windows) Ehud Lamm
1998-10-24  0:00 ` Jerry van Dijk
1998-10-24  0:00 ` Al Christians [this message]
1998-10-24  0:00 ` Tom Moran
1998-10-25  0:00   ` Ehud Lamm
1998-10-25  0:00     ` Tom Moran
1998-10-25  0:00       ` Ehud Lamm
1998-10-26  0:00         ` Tom Moran
1998-10-26  0:00           ` Ehud Lamm
1998-10-26  0:00             ` Tom Moran
1998-10-26  0:00               ` Ehud Lamm
1998-10-27  0:00               ` dennison
1998-10-28  0:00                 ` Ehud Lamm
1998-10-28  0:00                   ` Arun Mangalam
1998-10-28  0:00                     ` dennison
1998-11-06  0:00                       ` Ehud Lamm
1998-10-28  0:00                     ` Tom Moran
1998-10-28  0:00                       ` Ehud Lamm
1998-10-29  0:00                         ` Tom Moran
1998-10-28  0:00                       ` Arun Mangalam
1998-10-28  0:00                         ` Tom Moran
1998-10-28  0:00                     ` Ehud Lamm
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox