gypsyjoe11
Registered User.
- Local time
- Today, 17:52
- Joined
- Feb 19, 2010
- Messages
- 46
Hello Everyone,
My customer has to log-in to a website and enter a page with 2 frames in it. Inside of one of the frames is a table where they cut & paste the info to get it out. I'm trying to find a way to get that info for them once they see what they want on the screen. The problem is that the users are missing stuff when they cut & paste.
The table is inside of a frame and it doesn't list the table name. All the stuff I've found doesn't deal with info inside of frames. I found one entry here about it, but it talked about coding from inside IE which I can't do. They talked about referencing "Me.WebBrowser0.Document.documentElement.all" which doesn't work from inside of Access. I'm using access 2003 and IE6 by the way. Don't have a choice about it.
Below is the HTML source. I've xxxed out the paths for company privacy reasons.
Below is the test sub. All I've been able to do is find the correct webpage and then print it to the printer. I can't figure out how to do more than that.
Any help would be greatly appreciated,
Joe
My customer has to log-in to a website and enter a page with 2 frames in it. Inside of one of the frames is a table where they cut & paste the info to get it out. I'm trying to find a way to get that info for them once they see what they want on the screen. The problem is that the users are missing stuff when they cut & paste.
The table is inside of a frame and it doesn't list the table name. All the stuff I've found doesn't deal with info inside of frames. I found one entry here about it, but it talked about coding from inside IE which I can't do. They talked about referencing "Me.WebBrowser0.Document.documentElement.all" which doesn't work from inside of Access. I'm using access 2003 and IE6 by the way. Don't have a choice about it.
Below is the HTML source. I've xxxed out the paths for company privacy reasons.
Code:
<LINK REL="SHORTCUT ICON" HREF="/xxx/xxx.ico">
<frameset rows="82,*" border="0" frameborder="0">
<frame name="header" title="Portal Header" SRC="/xxx/xxx/xxx/?ICType=Script&ICScriptProgramName=WEBLIB_MENU.ISCRIPT3.FieldFormula.IScript_GetMenuHeader" FRAMEBORDER="0" marginheight="0" scrolling="no">
<frame name="main" title="Main Content" SRC="/xxx/xxx/xxx/?ICType=Script&ICScriptProgramName=WEBLIB_MENU.ISCRIPT3.FieldFormula.IScript_RedirectToDrillDown" FRAMEBORDER="0" marginheight="0">
</frameset>
</html>
Below is the test sub. All I've been able to do is find the correct webpage and then print it to the printer. I can't figure out how to do more than that.
Code:
Private Sub Test_Click()
Debug.Print
Debug.Print "---------------"
Dim SWs As New SHDocVw.ShellWindows
Dim vIE As SHDocVw.InternetExplorer
Dim HTMLDoc As MSHTML.HTMLDocument
'Dim objExplorer As New SHDocVw.InternetExplorer
'Dim objDoc As IHTMLDocument2
'Dim IEframes As FramesCollection
Set SWs = New SHDocVw.ShellWindows
For Each vIE In SWs
If Left(vIE.LocationURL, 27) = "[URL="https://hr.direct-access.us/"]https://hr.direct-access.us[/URL]" Then
vIE.Visible = True
Set HTMLDoc = vIE.Document
Debug.Print vIE.LocationURL
End If
Next
Debug.Print HTMLDoc.Frames(1).Print
End Sub
Any help would be greatly appreciated,
Joe