PC Review


Reply
Thread Tools Rate Thread

AxWebBrowser not in WinForm

 
 
Djavdet
Guest
Posts: n/a
 
      9th Jan 2005
Hi everyone,
I need to work with web sites from my program but i don't need to show
web site content.. I only need to get web page change something in html
document and either move on or send something back..
Basically pretty much the same what usually people would do with IE but
no windows...
I thought that it would be easier to implement using AxWebBrowser
ActiveX control, but I can't figure out how to set that OCXState field
if I don't create object within WinForm. If don't set it , I get
InvalidActiveXStateException...
So I guess my question is, how to use AxWebBrowser control without
WinForm or maybe there is a better way to solve my problem?
Thanks
D.

 
Reply With Quote
 
 
 
 
Sahil Malik
Guest
Posts: n/a
 
      9th Jan 2005
D,

I am not sure what you mean by ---

> I only need to get web page change something in html
> document and either move on or send something back..


But, I recently posted a little short code snippet on my blog -
http://dotnetjunkies.com/WebLog/sahi.../06/42130.aspx
that lets you easily retreive a URL and save it as MHT. Instead of saving,
you could get a string out of it, and work with it.

That right there is unmanaged code (uses interop), but there are other
managed ways to acheive this goal too. Unfortunately none of them allow you
to save as MHT but you might not need to do that.

- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik




"Djavdet" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi everyone,
> I need to work with web sites from my program but i don't need to show
> web site content.. I only need to get web page change something in html
> document and either move on or send something back..
> Basically pretty much the same what usually people would do with IE but
> no windows...
> I thought that it would be easier to implement using AxWebBrowser
> ActiveX control, but I can't figure out how to set that OCXState field
> if I don't create object within WinForm. If don't set it , I get
> InvalidActiveXStateException...
> So I guess my question is, how to use AxWebBrowser control without
> WinForm or maybe there is a better way to solve my problem?
> Thanks
> D.
>



 
Reply With Quote
 
Ashish Das
Guest
Posts: n/a
 
      9th Jan 2005
Assuming you are only trying to get HTML code of a given site, you can do a
Get request using HTTP protocol to get the code of HTML on the page.



"Djavdet" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi everyone,
> I need to work with web sites from my program but i don't need to show
> web site content.. I only need to get web page change something in html
> document and either move on or send something back..
> Basically pretty much the same what usually people would do with IE but
> no windows...
> I thought that it would be easier to implement using AxWebBrowser
> ActiveX control, but I can't figure out how to set that OCXState field
> if I don't create object within WinForm. If don't set it , I get
> InvalidActiveXStateException...
> So I guess my question is, how to use AxWebBrowser control without
> WinForm or maybe there is a better way to solve my problem?
> Thanks
> D.
>



 
Reply With Quote
 
Djavdet
Guest
Posts: n/a
 
      9th Jan 2005
Well,
yeah, but that gives me kinda read only access to the web site...
I need also interact with web site or send something back...

D.

 
Reply With Quote
 
Ashish Das
Guest
Posts: n/a
 
      9th Jan 2005
Solution depends on scenario you have. If webserver is local to you, or you
can access it directly and you have read/write rights then you can make
small FTP application to put html files (publishing folder). In that case
you really do not need to use HTTP protocol, you can directly access the
file you want to change. What is your scenario?


"Djavdet" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Well,
> yeah, but that gives me kinda read only access to the web site...
> I need also interact with web site or send something back...
>
> D.
>



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      9th Jan 2005
Djavdet

Maybe this is the page for you to start reading

http://msdn.microsoft.com/library/de...classtopic.asp

I hope this helps to find your solution?

Cor


 
Reply With Quote
 
Djavdet
Guest
Posts: n/a
 
      10th Jan 2005
Hi,
no it is not the case.
My web servers are all in the internet...
I am surprised that there is no other objects then IE ActiveX
control...
D.

 
Reply With Quote
 
Djavdet
Guest
Posts: n/a
 
      10th Jan 2005
Thanks,
no, this is not what i need.
Like i said this is too much low level..
I guess i was looking for somethig like AxWebBrowser but without HTML
renderer..
D.

 
Reply With Quote
 
Ashish Das
Guest
Posts: n/a
 
      10th Jan 2005
Please explain your need in detail to get correct solution.

Thanks,
Ashish Das

"Djavdet" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
> no it is not the case.
> My web servers are all in the internet...
> I am surprised that there is no other objects then IE ActiveX
> control...
> D.
>



 
Reply With Quote
 
Djavdet
Guest
Posts: n/a
 
      10th Jan 2005
Hi thanks for your interest.
I sort of solved the problem by using AxWebBrowser control.
It's kinda bulky awkward solution but it works that's what matters.
D.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
axWebBrowser tamarindm Microsoft ASP .NET 4 30th Apr 2007 03:02 AM
AxSHDocVw.AxWebBrowser Error (on VB.NET 1.1 Winform) greg_slavin@hotmail.com Microsoft Dot NET Framework Forms 0 18th Nov 2005 08:51 PM
AxWebBrowser and its api harry kitaun Microsoft C# .NET 5 10th Oct 2004 02:35 AM
Winform>GUI>hide the frame in winform ? Tom Microsoft C# .NET 3 13th Sep 2004 02:25 PM
AxWebBrowser Jonas Microsoft Dot NET Framework 1 17th May 2004 10:38 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:57 AM.