General information
Category:
Reports & Report designer
>Thanks I'll go through your article. TO PRINT ASCII clause in REPORT command does not serve the purpose.
Hello Sudhir,
With the help of many here I have learned how to make REPORT FORM ASCII work:
1 - _ASCIICOLS has to be of the appropriate length. It has to accomodate the width of the report. VFP tries to fit the report within the columns indicated by _ASCIICOLS, either bunching up or spreading out the fields.
2 - Equally important, the default printer matters, either the SET('printer',3) or the one saved within the report (I think). Please note that Generic/Tect printer *doesn't* work, contrary to what may seem logical.
3 - What I find works is this:
- Make a copy of the report.
- Erase DEVICE = x from Expr field and blank Tag and Tag2 in the record WHERE objType = 1 AND objCode = 53.
- Save current _ASCIICOLS and default printer. Set approprate _ASCIICOLS and default printer one with a driver that you know works (I set up one with a known name).
- REPORT FORM xxxx TO FILE ASCII
- Restore values
I am creating a screen that encapsulates these rules. It is not finished, but can send you a copy.
Alex
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only