Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to send report to TXT file
Message
From
20/07/2010 20:57:15
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Miscellaneous
Thread ID:
01473236
Message ID:
01473257
Views:
42
>>>Do you have report created ? If yes, did you try ASCII clause ?
>>>
>>>If not, you can also take a look at my class File ID: 9684
>>
>>Yes I have the report created. I can see it on preview or to send it to a printer. I would like to send the same report to txt file. I have tried the command You suggested but the content of the file is a set of strange charactes.
>
>Not to file, to FILE ASCII
>
>Take a look at REPORT FORM command in Help for exact syntax.
>
>[FILE] FileName2 [[ADDITIVE] ASCII]
> Specifies the name of a text file to send the report to. The default file name extension for file created is .txt.
>
>When you omit the ASCII keyword or use Visual FoxPro's object-assisted output mode writes PostScript or other printer codes to the text file along with the content of your report. To create an ASCII text file from the report definition file, SET REPORTBEHAVIOR 80 and include the ASCII keyword.
>
>Note
>When you include the ASCII keyword, you can process a report on a computer that has no printer driver setups installed. Without the ASCII keyword, a REPORT FORM command issued on a computer that has no printer driver setups installed generates an error.
>
>
>An ASCII file contains only text. If the report is a character-based layout definition created in FoxPro for MS-DOS, dashes, and plus signs may be included to represent lines and shapes. Otherwise, any font or color settings, graphics, lines, rectangles, or rounded rectangles in the report definition file do not appear in the ASCII text file. You can specify the number of characters to place on each

line and the number of lines to place on each page by using the _ASCIICOLS and _ASCIIROWS system variables. The default values for these system variables correspond to a standard portrait page. For more information, see _ASCIICOLS System Variable and _ASCIIROWS System Variable.
>
>To append new content to an ASCII file instead of overwriting it, precede the ASCII keyword with the ADDITIVE keyword. The ADDITIVE and ASCII keywords must be specified in the order shown.

It was not printing because I was using lines.

Thanks
Antonio Carlos Kleinübing
Systems Analyst
Previous
Reply
Map
View

Click here to load this message in the networking platform