Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Output of a report file - for DOS
Message
From
24/03/2004 22:37:53
 
 
To
24/03/2004 05:16:02
Sudhir Arora
Userease Software Pvt. Ltd.
New Delhi, India
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00888199
Message ID:
00889487
Views:
13
>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
Map
View

Click here to load this message in the networking platform