Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FILES IN APLICATION SIDE #35

Open
Numerabilis opened this issue Jun 24, 2023 · 0 comments
Open

FILES IN APLICATION SIDE #35

Numerabilis opened this issue Jun 24, 2023 · 0 comments

Comments

@Numerabilis
Copy link

Numerabilis commented Jun 24, 2023

I had these 2 issues:
IF oFTP:DOWNLOADFILE("controli.txt", cFTPFILE)
If I download a file it will be in aplication side (It won´t be in letodb.ini DATAPATH) .
I need to download and memoread it:

cLICENCAS := MEMOREAD(cAMBI+"controli.txt") // return ""
cLICENCAS := MEMOREAD("controli.txt") // return ""

and
SET PRINTER TO (ARQUIVO)
If I save a report to a file it will be in aplication side too.

cAMBI := CURDRIVE()+":\"+CURDIR()+"\"
SET DEFAULT TO .
SET PATH TO	(cAMBI)

I tryed that above but didn´t work.
I am using:

	#include "rddleto.ch"  // defines do RDD
	#include "dbinfo.ch"   // Header file for the RDD API Index OrderInfo and DBInfo support
	#include "leto_std.ch" // traduz os comandos para o LETO
	#define __LETO_TRANSLATE_FILE_ALL
	#include "letofile.ch" // traduz todas as funções para o LETO
	REQUEST RDDLETO
	REQUEST RDDInfo

I expected to find the local files using application path in SET PATH but not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant