Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report Form to ASCII file

Status
Not open for further replies.

COBART

MIS
Sep 7, 2000
33
0
0
ID
I have a report.
When Execute with command :
REPORT FORM xxx.frx to File &lcFile ASCII
on the workstation the file TXT is created and succes.

But when the program i execute from NT server the file TXT is not created and not succes !

Why this is happened ?
Anybody can help me pleash ?

Thank's

Rudi

 
Hi Rudi,

If you're not getting an error message you can be pretty sure that the .txt file is being created somewhere. What's the value of lcFile?

Jim
 
Rudi,
If lcFile has a space character anywhere in the path or file name, this can cause problems. If you change the code to read:
REPORT FORM xxx.frx to File "&lcFile" ASCII
this will "fix" this problem.

Also, if lcFile explicitly has a "." anywhere in the filename, the output won't go to a .TXT file. It'll only be .TXT, if no extension is supplied, or if .TXT ends the file name.

Rick
 
Haloo RICK


The problem is not fix with your idea

Maybe you have other Idea ?
This my program line :

Sele dTawarc
Set Order to no_urut
Go top
If !Directory('C:\Eml_twr')
MD C:\Eml_twr
Endi
lcDir = 'C:\Eml_twr'
lcNo = 'PWN'+Left(allt(Notawar),6)
lcFile = lcDir+'\'+lcNo
Repo form Tawar_em To File "&lcFile" ASCII

Best Regards

Rudi
 
Maybe disc C is used exclusively for systems purpose ?
Try disc D, if exist.
System prorammers usually intolerant "garbage"
on system disc...
 
The file is temporary
System c: is not use exclusive

The problem is this report is not working if the program is instal in server. But if the program is running in workstation this program is right. and the TXT file is created. But if this program is running in server the TXT file is not created !

Why ?
Any body can help me please !!

 
Try instead Repo form ...
Copy file Myfile.txt to "&lcFile..txt"
If Myfile.txt not arise in your directory,
your path is wrong.
What is Notawar, why left 6
(is good custom filename 8.3, although at present
may be greater..)
 
Don't know that this is your problem, but if you're on a network be careful of how the drives are assigned. Thus when I'm using Citrix to do work, c: is a drive on the Citrix Server whereas my local C drive is V. And, of course, the C drive of the computer I'd use at work wouldn't be around at all. Just something to keep in mind. --DED
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top