Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Issue with copying PDF in a Webbrowser

$
0
0

God Morning,

I am trying to select all and copy a PDF i have opened in a webbrowser docked in a form in my application. I keep getting the error message "NullReferenceException was unhandled object reference not set to an instance of an object". I have tried the following:

WebBrowser1.Document.ExecCommand("SelectAll", True, vbNull) got error message

Dim myrptAsString = Me.WebBrowser1.Document.ActiveElement.InnerText

Clipboard.SetText(myrpt)also got error message

Any advice would be very helpful

Thank you,

John


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>