Advertisement

04.12.2008 at 11:23AM PDT, ID: 23317604
[x]
Attachment Details

Indy 10 delphi 2007 progressbar and pdf problem

Asked by grantfullen in Delphi Programming

1st thing . I can not get this progress bar to work . It downloads the files for sure but progress bar will not work on this idftp

2nd thing is i can download files with the extension .txt , .exe , zip, jpg  . but for some reason it will not downlaod a file with .pdf which is the main file i have to work with uploading and downloading.
What am i doing wrong.
Thanks
GrantStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
var
  i: Integer;
  s: String;
  path, MyListing: TStringList;
begin
  with IdFTP1 do begin
 
    Passive:=True;
 
    if Connected then begin
 
       MyListing:=TStringList.Create;
      List(MyListing,ListView1.Selected.Caption,True);
      for i:=0 to DirectoryListing.Count-1 do
        with DirectoryListing[i] do
        begin
 
          Label1.Caption:='Downloading '+FileName+' ('+IntToStr(Size)+' bytes)';
          Get(FileName, DestinationFolder+'\'+FileName, True, False);
 
            progressbar1.Position:= 0;
 
 
 
           end;
       end;
      //Disconnect;
    end;
 
 
procedure TForm5.IdFTP1Work(ASender: TObject; AWorkMode: TWorkMode;
  AWorkCount: Integer);
begin
 ProgressBar1.Position:=AWorkCount;
  Application.ProcessMessages;
 
 
 
end;
 
procedure TForm5.IdFTP1WorkBegin(ASender: TObject; AWorkMode: TWorkMode;
  AWorkCountMax: Integer);
begin
   ProgressBar1.Max:=AWorkCountMax;
 
 
end;
 
Loading Advertisement...
 
[+][-]04.12.2008 at 02:23PM PDT, ID: 21342532

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Delphi Programming
Sign Up Now!
Solution Provided By: TheRealLoki
Participating Experts: 2
Solution Grade: B
 
 
[+][-]04.12.2008 at 02:53PM PDT, ID: 21342607

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.12.2008 at 03:00PM PDT, ID: 21342626

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.12.2008 at 03:08PM PDT, ID: 21342646

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.17.2008 at 04:17PM PDT, ID: 21382242

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.17.2008 at 06:44PM PDT, ID: 21382735

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.23.2008 at 09:31PM PDT, ID: 21427782

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628