GerryL
02-27-2000, 10:04 PM
Hi:
Has anybody done any work on web browser control? I am modifying the WebBrowseWeb form that comes with the Solutions.mdb. My requirement is that I need to print the content of the browser control but the control does not support the Print method as confirmed by Microsoft at http://support.microsoft.com/support/kb/articles/Q156/7/32.ASP. The offered a workaround of setting the focus to the control and sending the keys Ctrl+P. However, the workaround is for C++ and when I tried it in Access, nothing happened. The syntax I used follows:
Private Sub cmdPrint_Click()
ActiveXCtl1.SetFocus
SendKeys "^(P)", True 'send Ctrl+P to print
End Sub
TIA.
Has anybody done any work on web browser control? I am modifying the WebBrowseWeb form that comes with the Solutions.mdb. My requirement is that I need to print the content of the browser control but the control does not support the Print method as confirmed by Microsoft at http://support.microsoft.com/support/kb/articles/Q156/7/32.ASP. The offered a workaround of setting the focus to the control and sending the keys Ctrl+P. However, the workaround is for C++ and when I tried it in Access, nothing happened. The syntax I used follows:
Private Sub cmdPrint_Click()
ActiveXCtl1.SetFocus
SendKeys "^(P)", True 'send Ctrl+P to print
End Sub
TIA.