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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a1c5bd2ce0a64af3,start X-Google-Attributes: gid103376,public X-Google-Thread: fd7d7,a1c5bd2ce0a64af3,start X-Google-Attributes: gidfd7d7,public X-Google-ArrivalTime: 2002-07-08 15:07:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!kibo.news.demon.net!demon!newspeer1-gui.server.ntli.net!ntli.net!newsfep2-win.server.ntli.net.POSTED!not-for-mail From: "Fraz" Newsgroups: alt.os.windows-xp,comp.lang.ada Subject: Printing from within a program X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <52oW8.863$oZ4.77897@newsfep2-win.server.ntli.net> Date: Mon, 8 Jul 2002 23:05:27 +0100 NNTP-Posting-Host: 62.252.137.14 X-Complaints-To: abuse@ntlworld.com X-Trace: newsfep2-win.server.ntli.net 1026166017 62.252.137.14 (Mon, 08 Jul 2002 23:06:57 BST) NNTP-Posting-Date: Mon, 08 Jul 2002 23:06:57 BST Organization: ntlworld News Service Xref: archiver1.google.com alt.os.windows-xp:129911 comp.lang.ada:26951 Date: 2002-07-08T23:05:27+01:00 List-Id: 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? Cheers Fraz P.s (Sorry for the Crosspost but i thot it was relevant in both groups)