OCX for Navision Financials ?

kszymanskikszymanski Member Posts: 42
edited 2002-07-13 in Navision Financials
Hi,

i'm looking for a ocx that i can use to
transfer/receive files from c/al.

Exists there one ?

Thanks.

Best regards,
Kai.
--
Kai Szymanski
Abt. eBusiness
D. Schuricht GmbH & Co. KG

Comments

  • kszymanskikszymanski Member Posts: 42
    Hi once again,

    sorry, sometimes i'am a bit stupid <img border="0" title="" alt="[Smile]" src="images/smiles/icon_smile.gif" /> I
    forget to say that i mean an ocx for FTP-Transfers.

    Thanks,
    Kai.
    --
    Kai Szymanski
    Abt. eBusiness
    D. Schuricht GmbH & Co. KG
  • StefanZimmerStefanZimmer Member Posts: 9
    Hy Kay
    Sorry no OCX buuuttt...

    i had solved this problem using "standard" FTP and FTP-Script.

    It works, but take care to delete the Script after the execution. The Script contains readable USERID and PASSWORD!!!

    Here's my solution:

    //Create FTP Script
    FtpScript.CREATE('C:\temp\script.txt');
    FtpScript.TEXTMODE(TRUE);
    FtpScript.WRITE(FtpUser); //Variables with USERID
    FtpScript.WRITE(FtpPW); //Variable with FTP PW
    FtpScript.WRITE('binary');
    FtpScript.WRITE('cd /' + DistriPricelist.FTP); //set target folder (stored in ".FTP")
    FtpScript.WRITE('Put ' +filereference);
    FtpScript.WRITE('quit');
    FtpScript.CLOSE;

    //Exec FTP Transfer
    SHELL('ftp','-s:c:\temp\script.txt','ftp.hitex.de');

    //Clear TMP-Folder
    //Clear Script because readable password!!
    IF EXISTS('c:\temp\script.txt') THEN FILE.ERASE('c:\temp\script.txt');

    <img border="0" title="" alt="[Big Grin]" src="images/smiles/icon_biggrin.gif" />

    <small>[ 01-07-2002, 19:38: Message edited by: StefanZimmer ]</small>
  • Lars_WestmanLars_Westman Member Posts: 116
    Try Cute FTP Pro. It comes with an OCX which You can use in Navision. It works great.

    Here's some code:

    CuteFTPAut.Host := 'myHost';
    CuteFTPAut.Login := 'myUserName';
    CuteFTPAut.Password := 'myPassword';
    CuteFTPAut.Connect;
    CuteFTPAut.LocalFolder := 'myLocalFolder';
    CuteFTPAut.RemoteFolder := 'theRemoteFolder';
    CuteFTPAut.UploadAsync := 'myFile';

    It's a shareware for 59$

    //Lars
Sign In or Register to comment.