From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8cc649f593606ebf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-02 07:08:33 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news-xfer.cox.net!cox.net!cyclone1.gnilink.net!spamkiller.gnilink.net!nwrddc04.gnilink.net.POSTED!da33a4ab!not-for-mail From: Fionn mac Cuimhaill Newsgroups: comp.lang.ada Subject: Re: Prettty printed reports in MSWindows Message-ID: <05u4bvkvvh6r048psivlsa09fs90atisfp@4ax.com> References: <3EB1A07A.6050108@dontspam.net> X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 02 May 2003 14:08:32 GMT NNTP-Posting-Host: 4.63.124.250 X-Complaints-To: abuse@verizon.net X-Trace: nwrddc04.gnilink.net 1051884512 4.63.124.250 (Fri, 02 May 2003 10:08:32 EDT) NNTP-Posting-Date: Fri, 02 May 2003 10:08:32 EDT Xref: archiver1.google.com comp.lang.ada:36856 Date: 2003-05-02T14:08:32+00:00 List-Id: On Thu, 01 May 2003 17:32:26 -0500, Mark wrote: >I'm not used to working in MSWindows, and I'm not used to printing paper. > >However, I am currently trying to figure out a good way to print some >formatted business reports. So far it looks like I could write the data >in RTF format and get Notepad to do the printing. Or I could write it >out in PS and use ghostscript ... maybe use groff to create the >postscript? > >How do others print out formatted reports with Ada? > >Mark Sigh. I am in exactly same position. I am using David Botton's GWindows to do Windows programming in Ada. It has printing support that will handle all the font control that you would want to do, but it is a very thin binding that is still very close to the underlying Windows printing API, i.e., using it to produce a usable document is a very tedious business. There is a very nice ActiveX dll written in Visual Basic called qPrinter (do a Google search and you will find it quickly) It is much easier to use than the raw Windows API if you are using Visual Basic. In principle, as it is an ActiveX dll, it can be called from GWindows. I have no plans to use it myself this way, because it does have some bugs and limitations that make it difficult to use for what I need to do, but it may work for you. I have no idea how hard it would be to call this from GWindows; I am also considering writing output as TeX or LaTex and using a Windows implementation of TeX, such as MikTeX to handle the details of printing. David Gressett gxrxexsxsxextx1x@xaxixrxmxaxixlx.xnxext Remove all instances of 'x' to get the e-mail address