Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Borland > Re: Printing Pr...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 9 Topic 1015 of 1114
Post > Topic >>

Re: Printing Problem

by "BobKellock" <bob@[EMAIL PROTECTED] > Mar 31, 2007 at 10:26 AM

On 28 Mar, 18:18, Jim Higgins <inva...@[EMAIL PROTECTED]
> wrote:

> .............
> uses Dos;
> {$M 8192,0,0}
> procedure PrintFile (Filename : string);
> begin
>   SwapVectors;
>   Exec(getenv('COMSPEC'),'/C notePAD.exe /p '+Filename);{}
>   SwapVectors;
> end;
>
> will do the trick.  Alternatively for a larger file you can use
> wordpad, but you need START to call that program
>
>   exec(getenv('COMSPEC'),'/C start WORDPAD.exe /p '+filename);
> =======

Under XP you need to ensure that DosOnly has been remmed out of
Config.NT (or the custom Config if there is one).

Also it may need SetMemTop(HeapPtr) before the Exec and
SetMemTop(HeapEnd) after.
SetMemTop is normally in BP\RTL\TV\MEMORY.PAS

Bob
 




 9 Posts in Topic:
Printing Problem
"EdMac" <ema  2007-03-27 21:11:15 
Re: Printing Problem
"winston19842005@[EM  2007-03-28 00:44:58 
Re: Printing Problem
Marco van de Voort <ma  2007-03-28 09:49:56 
Re: Printing Problem
"delo" <delo  2007-03-28 12:26:07 
Re: Printing Problem
"Davide Guolo"   2007-03-28 15:05:30 
Re: Printing Problem
Marco van de Voort <ma  2007-03-29 07:04:52 
Re: Printing Problem
Jim Higgins <invalid@[  2007-03-28 17:18:58 
Re: Printing Problem
Dr J R Stockton <jrs@[  2007-03-28 23:08:43 
Re: Printing Problem
"BobKellock" &l  2007-03-31 10:26:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 2:33:19 CDT 2008.