Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
How to download Investment web site pdf file
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
moonhk  
View profile  
 More options Nov 5 2009, 9:12 am
Newsgroups: microsoft.public.scripting.wsh
From: moonhk <moon...@gmail.com>
Date: Thu, 5 Nov 2009 01:12:51 -0800 (PST)
Local: Thurs, Nov 5 2009 9:12 am
Subject: How to download Investment web site pdf file
Hi All

IE 6.0, SP2

Open Investment web site, no id and password requeired.
But Need to select some items for download Fact Sheet.

How to using VBS to open the web site upto step 5 and then download
the PDF as below steps ?

Step 1. Open Main Screen
http://www.alliancebernstein.com/investments/ABII/GatewayPage.aspx

Step 2. Select "Asia/Pacific" -> Hongkong -> English

Step 3
Click "I Accept"

Step 4
Cick "Continue"

Step 5 - Input  for AllianceBernstein - Global Growth Trends
Portfolio
http://www.alliancebernstein.com/investments/ABII/FundDetail.aspx?nid...

Step 6 Select Fact Sheets on right hand side link
Fund Fact Sheet

Step 7. Will Open New window for display PDF

Step 8. Save the PDF

Step 9. Close current screen

Step 10. close all Opened windows


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Lavedas  
View profile  
 More options Nov 5 2009, 10:03 pm
Newsgroups: microsoft.public.scripting.wsh
From: Tom Lavedas <tglba...@cox.net>
Date: Thu, 5 Nov 2009 14:03:25 -0800 (PST)
Local: Thurs, Nov 5 2009 10:03 pm
Subject: Re: How to download Investment web site pdf file
On Nov 5, 4:12 am, moonhk <moon...@gmail.com> wrote:

That is a lot to ask of people who volunteer there time.  I played
with it and it's a lot of work.  Plus, I provided you with an example
a couple of days ago that does a lot of what you are asking for.
Instead of saying you need to do this 10 step process, try coding it
and ask for help with specific problems.  Otherwise, I suspect you
will wait a long time for help.
_____________________
Tom Lavedas

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
moonhk  
View profile  
 More options Nov 6 2009, 9:25 am
Newsgroups: microsoft.public.scripting.wsh
From: moonhk <moon...@gmail.com>
Date: Fri, 6 Nov 2009 01:25:09 -0800 (PST)
Local: Fri, Nov 6 2009 9:25 am
Subject: Re: How to download Investment web site pdf file
On 11月6日, 上午6時03分, Tom Lavedas <tglba...@cox.net> wrote:

Hi All

Actually, I want to try, But  I does not know how to  select the
hyperlink and  set box and click the button.
And how to know the variable name in web page ?

Step 2. Select "Asia/Pacific" -> Hongkong -> English

Step 3
Click "I Accept"

Step 4
Cick "Continue"


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Lavedas  
View profile  
 More options Nov 6 2009, 6:56 pm
Newsgroups: microsoft.public.scripting.wsh
From: Tom Lavedas <tglba...@cox.net>
Date: Fri, 6 Nov 2009 10:56:48 -0800 (PST)
Local: Fri, Nov 6 2009 6:56 pm
Subject: Re: How to download Investment web site pdf file
On Nov 6, 4:25 am, moonhk <moon...@gmail.com> wrote:

Remember this from a couple of days ago?

sURL1 = "https://www.google.com/accounts/ServiceLogin?service=finance"
sURL2 = "http://www.google.com/finance/portfolio?action=view&pid=4"
sFilename = "D:\Someplace\somename.html"
with CreateObject("InternetExplorer.Application")
  .Navigate sURL1
  Do until .ReadyState = 4 : WScript.Sleep 100 : Loop
  .visible = true
  With .document.all
    .email.value = "you...@yourdomain.com"
    .passwd.value= "yourpassword" ' or Inputbox to ask the password
    .signin.click
  End With ' document
  .Navigate sURL2
  Do until .ReadyState = 4 : WScript.Sleep 100 : Loop
end with 'IE

Change the first URL to the page yo uare after in steps 1 & 2, that
is ...

http://www.alliancebernstein.com/INVESTMENTS/ABII/ACMShareHolderConfi...

Note that it is reached by adding "country=0285&lang=EN-HK" after the
question mark.  I found that out by observing the full address in the
Address Bar once the browser showed the page.

Then review the actual source for that page by right-clicking in the
window and selecting View Source.  Search for the string 'checkbox'
and you should find the name of the element that you want to check.
Then issue the appropriate instruction.  That is replace the two
statements after the" with .document.all"  line with the following ...

  With .document.all
  .ucAccountHolderCheckBox.click
  .ucContinueImageButton_AggImageButton.click
  end with

I got the second name from looking a little further on in the source
to see what the element that represented the Continue button was
called.

That should get you to the next page, from which it will be possible
to navigate to the next page ...

http://www.alliancebernstein.com/investments/ABII/FundDetail.aspx?nid...

Then that source of page needs to be parsed to find the proper URL for
the document you want, something like this ...

  sText = .document.body.innerHTML
  nPos = Instr(sText, "cid=") + 4
  nCid = Mid(sText, nPos,5)
  sUrlpdf = "http://www.alliancebernstein.com/investments/ABII/" _
            &  "DisplayFile.aspx?cid=" & nCID & "&listType=Fact
Sheet&download=true"

That should get you to the page.

See if you can get that far.
______________________
Tom Lavedas


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Fawcett  
View profile  
 More options Nov 14 2009, 9:37 am
Newsgroups: microsoft.public.scripting.wsh
From: "Joe Fawcett" <joefawc...@newsgroup.nospam>
Date: Sat, 14 Nov 2009 09:37:36 -0000
Local: Sat, Nov 14 2009 9:37 am
Subject: Re: How to download Investment web site pdf file

"moonhk" <moon...@gmail.com> wrote in message

news:6b038383-1f27-49ef-b3fe-cf55e7823ffd@a39g2000pre.googlegroups.com...

I suggest you get hold of Fiddler from Microsoft. You can then record the
steps needed to retrieve your file and examine them to see exactly what URLs
and data need to be sent to the server.

--

Joe Fawcett
http://joe.fawcett.name


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jonny  
View profile  
 More options Nov 15 2009, 8:28 am
Newsgroups: microsoft.public.scripting.wsh
From: "jonny" <jo...@what.com>
Date: Sun, 15 Nov 2009 03:28:15 -0500
Local: Sun, Nov 15 2009 8:28 am
Subject: Re: How to download Investment web site pdf file
There seems to have been an ie8  'wsh'  5.8 update with last windows update.

Please inform your clients, audience, 'dejavu' readers if necessary.

Thank You.

"Tom Lavedas" <tglba...@cox.net> wrote in message

news:3e065e0d-e3e9-41ea-aeb4-35cd2e8f735c@p23g2000vbl.googlegroups.com...
On Nov 6, 4:25 am, moonhk <moon...@gmail.com> wrote:

Remember this from a couple of days ago?

sURL1 = "https://www.google.com/accounts/ServiceLogin?service=finance"
sURL2 = "http://www.google.com/finance/portfolio?action=view&pid=4"
sFilename = "D:\Someplace\somename.html"
with CreateObject("InternetExplorer.Application")
  .Navigate sURL1
  Do until .ReadyState = 4 : WScript.Sleep 100 : Loop
  .visible = true
  With .document.all
    .email.value = "you...@yourdomain.com"
    .passwd.value= "yourpassword" ' or Inputbox to ask the password
    .signin.click
  End With ' document
  .Navigate sURL2
  Do until .ReadyState = 4 : WScript.Sleep 100 : Loop
end with 'IE

Change the first URL to the page yo uare after in steps 1 & 2, that
is ...

http://www.alliancebernstein.com/INVESTMENTS/ABII/ACMShareHolderConfi...

Note that it is reached by adding "country=0285&lang=EN-HK" after the
question mark.  I found that out by observing the full address in the
Address Bar once the browser showed the page.

Then review the actual source for that page by right-clicking in the
window and selecting View Source.  Search for the string 'checkbox'
and you should find the name of the element that you want to check.
Then issue the appropriate instruction.  That is replace the two
statements after the" with .document.all"  line with the following ...

  With .document.all
  .ucAccountHolderCheckBox.click
  .ucContinueImageButton_AggImageButton.click
  end with

I got the second name from looking a little further on in the source
to see what the element that represented the Continue button was
called.

That should get you to the next page, from which it will be possible
to navigate to the next page ...

http://www.alliancebernstein.com/investments/ABII/FundDetail.aspx?nid...

Then that source of page needs to be parsed to find the proper URL for
the document you want, something like this ...

  sText = .document.body.innerHTML
  nPos = Instr(sText, "cid=") + 4
  nCid = Mid(sText, nPos,5)
  sUrlpdf = "http://www.alliancebernstein.com/investments/ABII/" _
            &  "DisplayFile.aspx?cid=" & nCID & "&listType=Fact
Sheet&download=true"

That should get you to the page.

See if you can get that far.
______________________
Tom Lavedas


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google