|
Answer» Hi,
I am having a very dificult time getting it right to PRINT a webbrowser form to printer.
On Error Resume Next If ActiveForm Is Nothing Then Exit Sub
With dlgCommonDialog .DialogTitle = "Print" .CancelError = TRUE .Flags = cdlPDReturnDC + cdlPDNoPageNums If ActiveForm.rtfText.SelLength = 0 Then .Flags = .Flags + cdlPDAllPages Else .Flags = .Flags + cdlPDSelection End If .ShowPrinter If Err <> MSComDlg.cdlCancel Then ActiveForm.rtfText.SelPrint .hDC End If End With
The above code can print my rtf docs, but I am really having a bad DAY trying to print the web page in my browser I have in VB. Can anyone please help me with this.
Regards ChristoI KNOW this is an old topic but no one as given an answer.
What I do when I want to print a webbrowser is just right-click on the browser and select Print.
|