Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Indentation of Printed PRG Listings
Message
De
13/09/2001 12:46:35
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
13/09/2001 09:29:50
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00555639
Message ID:
00556000
Vues:
26
This message has been marked as the solution to the initial question of the thread.
>guess i didn't say that right. the relative indentation is correct,
>it's just that the left-most character of un-indented lines are way
>too close to the left side of the page, when printed. (less than a
>quarter inch). was hoping to find some way to specify a larger left
>margin size.
>
>appreciate your suggestion for TYPE MYPROG.PRG TO PRINTER PROMPT,
>but i have the same situation when printing event code for a form
>control, for example, which is not in a separate file.

Try using this for separate files, or contents of clipboard if file is not specified:
LPARAMETERS cFile
if empty(cFile)
   cText=_cliptext
else
   cText=FILETOSTR(cFile)
endif
* at 10cpi this would give one inch margin:
_pretext=SPACE(10)
=ALINES(aRows,cText)
SET TEXTMERGE TO dum.txt
SET TEXTMERGE ON noshow
*  this is just to prevent HTML rendering here:
SET TEXTMERGE DELIMITERS TO "{{","}}"   
FOR i=1 TO ALEN(aRows)
\{{aRows[i]}}
ENDFOR
SET TEXTMERGE off
SET TEXTMERGE to
MODIFY COMMAND dum.txt

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform