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,a1c5bd2ce0a64af3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-09 12:50:34 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Printing from within a program Date: Tue, 9 Jul 2002 14:48:31 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <52oW8.863$oZ4.77897@newsfep2-win.server.ntli.net> X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3719.2500 X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:26978 Date: 2002-07-09T14:48:31-05:00 List-Id: Fraz wrote in message <52oW8.863$oZ4.77897@newsfep2-win.server.ntli.net>... >Hello > >I am using an execute procedure from within an ada program to launch the >Windows PRINT command and print a series of text files. However, Windows >brings up the print dialog box for each file - is there any way to bypass >this and just print directly ala print icon in Word etc? > >Also, Can i set the layout to be landscape automatically?? > >I want the files to print and in the correct aspect without any user >interaction? How do i do this? You'll need to use Claw (www.rrsoftware.com) or one of the other Windows interfaces to do this. The easiest way to print a text file in Claw is to load the file into a rich edit control, then use the built-in printing functions of the control. (Note: This functionality is not in the Claw Introductory version.) You don't even need to have the control visible on the screen if you don't want the user to see it. Randy Brukardt.