>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
_pretext=SPACE(10)
=ALINES(aRows,cText)
SET TEXTMERGE TO dum.txt
SET TEXTMERGE ON noshow
SET TEXTMERGE DELIMITERS TO "{{","}}"
FOR i=1 TO ALEN(aRows)
\{{aRows[i]}}
ENDFOR
SET TEXTMERGE off
SET TEXTMERGE to
MODIFY COMMAND dum.txt