Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I print a text file to printer without FILETOSTR
Message
 
 
To
22/08/2005 07:28:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01042627
Message ID:
01042672
Views:
23
Andrei,

You have a couple of options

1) ??? filetostr(...)

or

2) SET MEMOWIDTH TO 100

??? ignores the memowidth setting, ??/? use the memowidth when outputting the data so you have to make sure it is set to a value larger than your widest output line.

>I try to print a text file with this procedure:
>
>cPrinter = GETPRINTER()
>IF NOT EMPTY(cPrinter) && Printer selected
> lsOldDefault = SET("Printer",2)
> SET PRINTER TO NAME (cPrinter)
> SET PRINTER ON
> SET CONSOLE OFF
> ?? FILETOSTR(YourFile)
> SET PRINTER TO NAME (lsOldDefault)
> SET PRINTER OFF
> SET CONSOLE ON
>ENDIF
>
>but in text file I have line with 80 char length and on the page printed result lines with 37char length.
>how can I fix that?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform