In my web-browser control, I am invoking a click. I just loop through getElementsByTagName("INPUT") and for the submit one, I do obj.Click
All that button does is run a Javascript which does a postback by dynamically creating and posting a form with nothing more than ID=012345.
In Fiddler, the only thing that shows is that POST, though the return ContentType is application/pdf. Exactly what I want.
The kicker is... my WebBrowser is opening that content with Adobe instead of in the control! My goal is to save the PDF dynamically. In IE when I manually click the button, it opens in-window. If that were happening in my WebBrowser, I could save the document. Or, if I could catch the application/pdf return somehow, maybe I could save that?
Assumed Answer (Credit to Rick Mohr):
My team, as confirmed by Rick below, assume that the WebBrowser control uses some 32-bit mode code. So to fix the issue, you would have to be sure you are running your application with Platform Target: x86.
We didn't go through with it because this application interfaces with a lot of things, and we didn't see the ROI of the time to mitigate that. So I can't answer for sure, though I do believe Rick is correct.
So our solution was to use a one-off method using, something along the lines of HTTPWebRequest, to stream the object in. It isn't in-line with the rest of the project, but it certainly didn't break any dependancies, so it's good enough. :^)