Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_ASCIICOLS problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01033980
Message ID:
01034038
Vues:
26
The help is not telling the whole truth. Only some system variables can be set through config.fpw and _ASCIICOLS is not one of them. You've to put it your startup program or right before report.
_ASCIICOLS=160
>
>Todays problem is this...............
>
>I have some Reports I want to not only output to the Printer and Display, but also to a Text File.
>
>The code uses this..................
>
>
>Do Case
>		Case mdisprt = "D"
>			Report Form (lcFile) To Printer Prompt Preview &lcExtra
>		Case mdisprt = "P"
>			Report Form (lcFile) To Print Prompt Noconsole &lcExtra
>		Case mdisprt = "F"
>			Local lcOut
>			lcOut  = Putfile()
>			If Not Empty(lcOut)
>				Report Form (lcFile) To File (lcOut) Ascii &lcExtra
>			Endif
>	Endcase
>
>
>Printer and Display output great!
>
>BUT...................
>
>The File output is all scrunched up!!! Columns of data are cut off so that each row will fit in under 80 columns in the text file output.
>
>Searching the help gives this.... the output for the text file is contolled by
>_ASCIICOLS = somenumber.... where the default is 80.
>
>The help says I can change this value and put it in the config.fpw file.
>
>I tried that, but it didn't seem to have any effect (I set the output to 160 columns).
>
>I even placed the _ASCIICOLS value on the report, so I could see its value.
>
>Here is the config.fpw
>
>
>MVCOUNT=3600
>TITLE="Loading Horizon Application..."
>SCREEN=OFF
>STATUSBAR=OFF
>TABLEVALIDATE=0
>REPROCESS=30
>_ASCIICOLS=160
>
>
>And I made sure that the program used this config.fpw file on startup.
>
>OK Gurus.... any ideas? Thanks!
>
>Tommy
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform