Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Indentation of Printed PRG Listings
Message
From
13/09/2001 12:46:35
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
13/09/2001 09:29:50
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00555639
Message ID:
00556000
Views:
27
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform