Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 89
Default doesn't anyone here know IE controls?

I have posted this on so many boards I am shocked that noone has an answer.
I have a macro running in excel 2007 that opens many pdf's from different
webpages and saves them. I have no problem navigating around IE through vba,
BUT how can I control printing via the IE window when a pdf is opened INSIDE
the IE window. I would be happy to post a screenshot of the window a) if
thats allowed and b) if someone describes how to do so.

Help!!

thank you
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default doesn't anyone here know IE controls?

I dont' know how you'd do this. I'd suggest maybe useing SENDKEY ?


"thomas donino" wrote:

I have posted this on so many boards I am shocked that noone has an answer.
I have a macro running in excel 2007 that opens many pdf's from different
webpages and saves them. I have no problem navigating around IE through vba,
BUT how can I control printing via the IE window when a pdf is opened INSIDE
the IE window. I would be happy to post a screenshot of the window a) if
thats allowed and b) if someone describes how to do so.

Help!!

thank you

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 89
Default doesn't anyone here know IE controls?

Sendkey is to unreliable. There must be IE controls that allow selecting and
manipulating printers

"Patrick Molloy" wrote:

I dont' know how you'd do this. I'd suggest maybe useing SENDKEY ?


"thomas donino" wrote:

I have posted this on so many boards I am shocked that noone has an answer.
I have a macro running in excel 2007 that opens many pdf's from different
webpages and saves them. I have no problem navigating around IE through vba,
BUT how can I control printing via the IE window when a pdf is opened INSIDE
the IE window. I would be happy to post a screenshot of the window a) if
thats allowed and b) if someone describes how to do so.

Help!!

thank you

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default doesn't anyone here know IE controls?


Post the code you currently use for 'navigating around IE through vba'.
I'd be surprised if IE doesn't expose its objects.
What version of IE?
I had some trouble, but succeeded in the end, with establishing the
right printer to print pdf files to for any machine on a largish company
network, but it depended on which version of Acrobat was installed (and
some of the Adobe object maodel manuals were plain wrong).
I'd guess that you'd have to go through a similar (and simpler) process
with IE with a pdf in an IE window.


--
p45cal

*p45cal*
------------------------------------------------------------------------
p45cal's Profile: http://www.thecodecage.com/forumz/member.php?userid=558
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=130328

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 89
Default doesn't anyone here know IE controls?

Sorry p45cal, I was in transit to the office

The code is below, less the real user pass, and i ended it at the point
where it brings the pdf up in IE

Sub AutomateMornTasks()

Dim ie As InternetExplorer
Dim RegEx As RegExp, RegMatch As MatchCollection
Dim strMainPathdfj As String
Dim strFiletoFind As String
Dim strMainPathstu As String

Dim strDatePart As String
Dim PrinterToUse As String
Dim strNetworkPrinter As String
Dim ipf As Object
Dim Username As String
Dim password As String
Dim my_var As String
Username = "xxxx"
password = "xxxx"


Set ie = New InternetExplorer
Set RegEx = New RegExp
strMainPathdfj = "http://www.elliottwave.com/dfj/archives/"
strMainPathstu = "http://www.elliottwave.com/stu/archives/"

'open Internet Explorer, navigate to Ewave site
Set ie = CreateObject("InternetExplorer.Application")
With ie
.Visible = True
.Navigate "www.elliottwave.com/"
Do While .ReadyState < 4 Or _
.Busy = True
Loop
'check to see if I am already logged in, if not then log in
my_var = .Document.body.innerhtml
If InStr(1, my_var, "Please Login", vbTextCompare) 0 Then
Set ipf = .Document.getElementById( _
"ewiHeader_ucEwiLogin_userid")
ipf.Value = Username

Set ipf = .Document.getElementById( _
"ewiHeader_ucEwiLogin_password")
ipf.Value = password

Set ipf = .Document.all.Item("id")

Set ipf = .Document.getElementById( _
"ewiHeader_ucEwiLogin_ibGo")
ipf.Select
ipf.Click
End If
End With
'create string for filename
If Weekday(Date) = 1 Then
strDatePart = Replace(Format(Date - 2, "mmdd"), "/", "")
strFiletoFind = strMainPathdfj & strDatePart & "dfjww" & ".pdf"
Else
If Weekday(Date) = 7 Then
strDatePart = Replace(Format(Date - 1, "mmdd"), "/", "")
strFiletoFind = strMainPathdfj & strDatePart & "dfjww" & ".pdf"
Else
strDatePart = Replace(Format(Date, "mmdd"), "/", "")
strFiletoFind = strMainPathdfj & strDatePart & "dfj" & ".pdf"
End If
End If
With ie
..Visible = True
..Navigate2 strFiletoFind
end with
end sub

"p45cal" wrote:


Post the code you currently use for 'navigating around IE through vba'.
I'd be surprised if IE doesn't expose its objects.
What version of IE?
I had some trouble, but succeeded in the end, with establishing the
right printer to print pdf files to for any machine on a largish company
network, but it depended on which version of Acrobat was installed (and
some of the Adobe object maodel manuals were plain wrong).
I'd guess that you'd have to go through a similar (and simpler) process
with IE with a pdf in an IE window.


--
p45cal

*p45cal*
------------------------------------------------------------------------
p45cal's Profile: http://www.thecodecage.com/forumz/member.php?userid=558
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=130328




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default doesn't anyone here know IE controls?


OK. Clearly I can't get to the same pdf files, nor to the page they
might be on because of login and passwords. Do you know of either:
- demo pdfs or similar pdfs accessible in the same way at that site
or
-elsewhere on the web where pdfs are available in the same way as the
pdfs on the elliottwave site?

so that I can experiment.


--
p45cal

*p45cal*
------------------------------------------------------------------------
p45cal's Profile: http://www.thecodecage.com/forumz/member.php?userid=558
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=130328

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 89
Default doesn't anyone here know IE controls?

Open a pdf that opens in explorer from any website. its the same thesis, a
pdf thats open in explorer. I perused the site in question but i dont see any
free pdf's to download.

"p45cal" wrote:


OK. Clearly I can't get to the same pdf files, nor to the page they
might be on because of login and passwords. Do you know of either:
- demo pdfs or similar pdfs accessible in the same way at that site
or
-elsewhere on the web where pdfs are available in the same way as the
pdfs on the elliottwave site?

so that I can experiment.


--
p45cal

*p45cal*
------------------------------------------------------------------------
p45cal's Profile: http://www.thecodecage.com/forumz/member.php?userid=558
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=130328


  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 149
Default doesn't anyone here know IE controls?

Thomas,

See my previous post in your "testing url string" subject line post (thread
link below) and let me know if that does the trick.

Best,

Matthew Herbert

http://www.microsoft.com/communities...d-b69d6540aa52

"thomas donino" wrote:

Open a pdf that opens in explorer from any website. its the same thesis, a
pdf thats open in explorer. I perused the site in question but i dont see any
free pdf's to download.

"p45cal" wrote:


OK. Clearly I can't get to the same pdf files, nor to the page they
might be on because of login and passwords. Do you know of either:
- demo pdfs or similar pdfs accessible in the same way at that site
or
-elsewhere on the web where pdfs are available in the same way as the
pdfs on the elliottwave site?

so that I can experiment.


--
p45cal

*p45cal*
------------------------------------------------------------------------
p45cal's Profile: http://www.thecodecage.com/forumz/member.php?userid=558
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=130328


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Controls Spike Excel Programming 4 March 4th 09 11:06 AM
Excel controls vs vba controls cmpcwil2[_6_] Excel Programming 3 April 19th 06 03:33 PM
ActiveX Controls vs Form Controls Alex Excel Discussion (Misc queries) 1 January 11th 06 08:46 AM
VB Controls Simon Shaw Excel Programming 2 November 18th 05 05:15 PM
Event procedures for controls added with Controls.Add John Austin[_4_] Excel Programming 1 March 9th 05 03:31 PM


All times are GMT +1. The time now is 06:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"