Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

delphi-webbrowser · Delphi: Using IE's WebBrowser

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 4049
  • Category: Delphi
  • Founded: Mar 21, 1999
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 3677 - 3706 of 10292   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#3677 From: "Peter Morris" <pete@...>
Date: Sun Apr 1, 2001 9:13 am
Subject: RE: The Delphi Comunity
pete@...
Send Email Send Email
 
My opinion is quite simple.

Certain services on the internet are easy to use.
Yahoo buys them.
They become difficult.

Yahoo's biggest problem is that they make it too complicated for new people
to sign up for services.  It took me ages to work out the new interface for
webring.com after Yahoo bought it.

I believe Yahoo is trying to become the Internet version of Microsoft (buy
everything, own everything).

I certainly wont post code snippets in future.

DIBComponents, FastStrings, Audio Compression components.
Best of all, they are all open-source.
http://www.stuckindoors.com/delphi

#3678 From: "Work" <skyrider@...>
Date: Sun Apr 1, 2001 9:51 am
Subject: The allframes loop function
skyrider@...
Send Email Send Email
 
hi

I tried the "allframes function" and accessing this site
http://doair.webjump.com I get an access denied popup message, for each
frame it tries and read in. Can anyone explain why this happens? This is the
only example I can remember this happens on. I

Thanks for your time

Cheers

Michael

--
glopro.com
Software Engineer

#3679 From: "Henri Fournier" <hfournier@...>
Date: Sun Apr 1, 2001 1:58 pm
Subject: RE: The allframes loop function
hfournier@...
Send Email Send Email
 
If the contents of the frames are from a different domain, then you won't be
able to access them. It's a security "feature".

--
Henri Fournier
http://members.home.net/hfournier

-----Original Message-----
From: Work [mailto:skyrider@...]
Sent: April 1, 2001 5:51 AM
To: delphi-webbrowser@yahoogroups.com
Subject: [delphi-webbrowser] The allframes loop function


hi

I tried the "allframes function" and accessing this site
http://doair.webjump.com I get an access denied popup message, for each
frame it tries and read in. Can anyone explain why this happens? This is the
only example I can remember this happens on. I

Thanks for your time

Cheers

Michael

--
glopro.com
Software Engineer





Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

#3680 From: "Work" <skyrider@...>
Date: Sun Apr 1, 2001 8:11 pm
Subject: RE: The allframes loop function
skyrider@...
Send Email Send Email
 
is there anyway to solve this problem then? or work around for this
"feature"?

cheers
Michael

-----Original Message-----
From: Henri Fournier [mailto:hfournier@...]
Sent: Sunday, 1 April 2001 11:59
To: delphi-webbrowser@yahoogroups.com
Subject: RE: [delphi-webbrowser] The allframes loop function


If the contents of the frames are from a different domain, then you won't be
able to access them. It's a security "feature".

--
Henri Fournier
http://members.home.net/hfournier

-----Original Message-----
From: Work [mailto:skyrider@...]
Sent: April 1, 2001 5:51 AM
To: delphi-webbrowser@yahoogroups.com
Subject: [delphi-webbrowser] The allframes loop function


hi

I tried the "allframes function" and accessing this site
http://doair.webjump.com I get an access denied popup message, for each
frame it tries and read in. Can anyone explain why this happens? This is the
only example I can remember this happens on. I

Thanks for your time

Cheers

Michael

--
glopro.com
Software Engineer





Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/






Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

#3681 From: gurmidolov@...
Date: Mon Apr 2, 2001 5:51 am
Subject: TMemo
gurmidolov@...
Send Email Send Email
 
Hi all,
I know this theme isn't for here but it's quite simple and I think
you can help me. I have Memo with 1692 lines, but I can see only
1688 of them. The memo has no limits. It has scrollbars, etc.

Thank you all

#3682 From: "Henri Fournier" <hfournier@...>
Date: Mon Apr 2, 2001 6:02 am
Subject: RE: TMemo
hfournier@...
Send Email Send Email
 
If you know that your question is off-topic, then don't ask. This group is
for WebBrowser related questions only.

Please find another forum for your question.

--
Henri "Moderator" Fournier
http://members.home.net/hfournier

-----Original Message-----
From: gurmidolov@... [mailto:gurmidolov@...]
Sent: April 2, 2001 1:52 AM
To: delphi-webbrowser@yahoogroups.com
Subject: [delphi-webbrowser] TMemo


Hi all,
I know this theme isn't for here but it's quite simple and I think
you can help me. I have Memo with 1692 lines, but I can see only
1688 of them. The memo has no limits. It has scrollbars, etc.

Thank you all





Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

#3683 From: Ray Bell <ray.bell@...>
Date: Mon Apr 2, 2001 6:05 am
Subject: RE: TMemo
ray.bell@...
Send Email Send Email
 
That's not very nice Henri.....you could be a bit more helpful and then say
to try another group!!!

-----Original Message-----
From: Henri Fournier [mailto:hfournier@...]
Sent: Monday, 2 April 2001 4:02 PM
To: delphi-webbrowser@yahoogroups.com
Subject: RE: [delphi-webbrowser] TMemo


If you know that your question is off-topic, then don't ask. This group is
for WebBrowser related questions only.

Please find another forum for your question.

--
Henri "Moderator" Fournier
http://members.home.net/hfournier <http://members.home.net/hfournier>

-----Original Message-----
From: gurmidolov@... [mailto:gurmidolov@...]
Sent: April 2, 2001 1:52 AM
To: delphi-webbrowser@yahoogroups.com
Subject: [delphi-webbrowser] TMemo


Hi all,
I know this theme isn't for here but it's quite simple and I think
you can help me. I have Memo with 1692 lines, but I can see only
1688 of them. The memo has no limits. It has scrollbars, etc.

Thank you all





Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
<http://docs.yahoo.com/info/terms/>




Yahoo! Groups Sponsor

<http://rd.yahoo.com/M=162801.1342280.2934645.1280039/D=egroupmail/S=1700115
362:N/A=599121/*http://www.knowledgestorm.com/jump_white.html?c=Yahoo&n=eLer
t_ComputersInternet_ProgrammingLang_WhiteGridOptions&t=ad> Click Here to
Find Software Faster
Click Here to Find Software Faster

<http://us.adserver.yahoo.com/l?M=162801.1342280.2934645.1280039/D=egroupmai
l/S=1700115362:N/A=599121/rand=593487946>

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .




[Non-text portions of this message have been removed]

#3684 From: "Henri Fournier" <hfournier@...>
Date: Mon Apr 2, 2001 6:24 am
Subject: RE: TMemo
hfournier@...
Send Email Send Email
 
If someone is not aware or unsure that they are asking an off-topic
question, then I ask them nicely to look elsewhere. But, when someone
deliberately ignores the guidelines for this group, then, IMO, they have
very little respect for this group and its members and I'm less inclined to
treat that kindly.

Check the Polls section of the site. Almost a year ago, over 70% of
respondents voted for the group to continue to be moderated for WebBrowser
related questions only.

Another example, on the 29th, I posted a message about NOT sending
"unsubscribe" messages to the entire group. Yet, the very next day, someone
did.

And now... we have 4 off-topic messages in an off-topic thread.

--
Henri Fournier
http://members.home.net/hfournier

-----Original Message-----
From: Ray Bell [mailto:ray.bell@...]
Sent: April 2, 2001 2:05 AM
To: 'delphi-webbrowser@yahoogroups.com'
Subject: RE: [delphi-webbrowser] TMemo


That's not very nice Henri.....you could be a bit more helpful and then say
to try another group!!!

#3685 From: "Bart Thomas" <Bart@...>
Date: Mon Apr 2, 2001 8:41 am
Subject: RE: APP and Threads
Bart@...
Send Email Send Email
 
Hello,

This is just an idea, but why don't you create one thread
that retrieves all data. Give it a TQueue (unit contnrs)
that activates the thread when data is inserted.

Bart Thomas

-----Original Message-----
From: sjimenez@... [mailto:sjimenez@...]
Sent: Thursday, March 29, 2001 4:02 PM
To: delphi-webbrowser@yahoogroups.com
Subject: [delphi-webbrowser] APP and Threads


Hello everybody.

I'm surprised very few people have thread problems with asynchronous
pluggable protocols. Here is what I have understood (I have just
discovered APP), please tell me if I am wrong somewhere.
When a page has pictures or other elements that must be downloaded,
webbrowser creates some threads that call yourt Start method first.
In this Start method, if you need to access some global variables,
you need to use CriticalSections. If you need to access the VCL, you
have to SendMessage to the main thread (same as Synchronize).
Am I right ?
Now I have a problem... On some very simple pages, (perhaps they have
often the same pictures ?), my app enters an infinite loop; 5 or 6
threads are active, but I'm not in any accessible source code. If I
try to debug step by step, the problem doesn't occur, so perhaps it's
a thread problem ?
I have read somewhere that I had to implement a message pump in my
thread, but I don't know how to do that.
My source is derived from the AppVcl, I have tried with
Switch/Continue (what is it's goal), and without.
Oh, something important : many of the img src asked are missing, so I
use Abort(0,0) to tell WebBrowser they are missing.

I use IE4.01 under NT, Delphi 5.

Note : is the AppVCL project dead ? If not, where can I send my
comments/suggestions ?
Re-note : The problem occurs with EmbeddedWB and WebBrowser.

Serge.
sjimenez@...






Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

#3686 From: "Charlie Chambers" <chambers@...>
Date: Mon Apr 2, 2001 12:47 pm
Subject: PressButton & PushButton.zip File
chambers@...
Send Email Send Email
 
Greetings to All,
I've just found your group and joined.
The posting on Buttons (3653) and the file
PushButton.zip (post 3654) was just what i
was wanting! Many thanks!
Only one problem for me, in that i'm not
finding SHDocVw.pas/dcu or SHDocVw_TBL.pas/dcu
on my drive -
could someone point me as to where to locate
these file?
TIA
Charlie

#3687 From: "Manuel Fernandes" <mfernandes.wedo@...>
Date: Mon Apr 2, 2001 12:53 pm
Subject: RE: PressButton & PushButton.zip File
mfernandes.wedo@...
Send Email Send Email
 
Hello Charlie,

there is an excellent site that explains everything. The URL is:
http://www.euromind.com/iedelphi/gettingstarted/started_d5.htm

Kind regards,
Manuel Fernandes

> -----Original Message-----
> From: Charlie Chambers [mailto:chambers@...]
> Sent: segunda-feira, 2 de Abril de 2001 13:48
> To: delphi-webbrowser@yahoogroups.com
> Subject: [delphi-webbrowser] PressButton & PushButton.zip File
>
>
> Greetings to All,
> I've just found your group and joined.
> The posting on Buttons (3653) and the file
> PushButton.zip (post 3654) was just what i
> was wanting! Many thanks!
> Only one problem for me, in that i'm not
> finding SHDocVw.pas/dcu or SHDocVw_TBL.pas/dcu
> on my drive -
> could someone point me as to where to locate
> these file?
> TIA
> Charlie
>
>
>
> ------------------------ Yahoo! Groups Sponsor
> ---------------------~-~>
> Do you have 128-bit SSL encryption server security?
> Get VeriSign's FREE Guide, "Securing Your
> Web Site for Business." Get it now!
> http://us.click.yahoo.com/EVNB7A/c.WCAA/bT0EAA/iObVlB/TM
> --------------------------------------------------------------
> -------_->
>
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/

#3688 From: kristinchurch@...
Date: Mon Apr 2, 2001 4:00 pm
Subject: UI-Less
kristinchurch@...
Send Email Send Email
 
Is there a way to use the WebBrowser in a UI-Less application?

#3689 From: "Henri Fournier" <hfournier@...>
Date: Mon Apr 2, 2001 4:03 pm
Subject: RE: UI-Less
hfournier@...
Send Email Send Email
 
No. WebBrowser has to be visible to work.

You can use WinInet or http components (Indy or ICS) to get the documents
and look at Per's UI-Less Parser for some help in processing documents.
http://www.euromind.com/iedelphi/uilessparser.htm

--
Henri Fournier
http://members.home.net/hfournier

-----Original Message-----
From: kristinchurch@... [mailto:kristinchurch@...]
Sent: April 2, 2001 12:00 PM
To: delphi-webbrowser@yahoogroups.com
Subject: [delphi-webbrowser] UI-Less


Is there a way to use the WebBrowser in a UI-Less application?





Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

#3690 From: "Pedro Estrada" <pedro.estrada@...>
Date: Mon Apr 2, 2001 10:11 pm
Subject: FTP/HTTP Download
pedro.estrada@...
Send Email Send Email
 
Hi all:

In the TWebBrowser object, is there any way to prevent the user from
downloading a file using FTP/HTTP?

I have tryed the event OnFileDownload setting the Cancel to True but it
looks like there is more to than that. Anybody can give me a hand?

Thanks in advance

Pedro Estrada
Email: pedro.estrada@...
Web site: http://www.pedroestrada.net
Yahoo messenger ID: pedroestrada

#3691 From: "Chambers" <chambers@...>
Date: Tue Apr 3, 2001 12:38 am
Subject: Re: PressButton & PushButton.zip File
chambers@...
Send Email Send Email
 
Hi Manuel,
Many thanks for that - it did the trick!
Cheers,
Charlie
   ----- Original Message -----
   From: Manuel Fernandes
   To: delphi-webbrowser@yahoogroups.com
   Sent: Monday, April 02, 2001 7:53 AM
   Subject: RE: [delphi-webbrowser] PressButton & PushButton.zip File


   Hello Charlie,

   there is an excellent site that explains everything. The URL is:
   http://www.euromind.com/iedelphi/gettingstarted/started_d5.htm

   Kind regards,
   Manuel Fernandes

   > -----Original Message-----
   > From: Charlie Chambers [mailto:chambers@...]
   > Sent: segunda-feira, 2 de Abril de 2001 13:48
   > To: delphi-webbrowser@yahoogroups.com
   > Subject: [delphi-webbrowser] PressButton & PushButton.zip File
   >
   >
   > Greetings to All,
   > I've just found your group and joined.
   > The posting on Buttons (3653) and the file
   > PushButton.zip (post 3654) was just what i
   > was wanting! Many thanks!
   > Only one problem for me, in that i'm not
   > finding SHDocVw.pas/dcu or SHDocVw_TBL.pas/dcu
   > on my drive -
   > could someone point me as to where to locate
   > these file?
   > TIA
   > Charlie
   >
   >
   >
   > ------------------------ Yahoo! Groups Sponsor
   > ---------------------~-~>
   > Do you have 128-bit SSL encryption server security?
   > Get VeriSign's FREE Guide, "Securing Your
   > Web Site for Business." Get it now!
   > http://us.click.yahoo.com/EVNB7A/c.WCAA/bT0EAA/iObVlB/TM
   > --------------------------------------------------------------
   > -------_->
   >
   >
   >
   > Your use of Yahoo! Groups is subject to
   http://docs.yahoo.com/info/terms/




         Yahoo! Groups Sponsor



   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]

#3692 From: Valery Shestakov <vsh@...>
Date: Tue Apr 3, 2001 6:46 am
Subject: Copy TWebBrowser to bitmap if TWebBrowser is located on a hidden TForm
vsh@...
Send Email Send Email
 
Created 02.04.2001, 18:10
Subject: Copy TWebBrowser to bitmap if TWebBrowser is located on a hidden TForm

  Dear delphi-webbrowser,

   I have a hidden TForm with a TWebBrowser (visible).

   I do so:

procedure TForm1.Button1Click(Sender: TObject);
var
   ViewObject: IViewObject;
   sourceDrawRect: TRect;
begin
   Form2.Height:=Screen.Height;
   Form2.Width:=Screen.Width;
   Form2.WebBrowser.Navigate(Edit1.Text);

   while Form2.WebBrowser.Busy do Application.ProcessMessages;

   try
     WebBrowser.Document.QueryInterface('IViewObject', ViewObject);
     if ViewObject <> nil then
       try
         sourceDrawRect := Rect(0, 0, Image1.Width, Image1.Height);
         ViewObject.Draw(DVASPECT_CONTENT, 1, nil, nil, Self.Handle,
           image1.Canvas.Handle, @sourceDrawRect, nil, nil, 0);
       finally
         ViewObject._Release;
       end;
   except
   end;
end;


  But this example works correctly only if Form2 is visible, if Form2 is
  not visible this example does not work correctly.


  Please Help me!



  Best regards.

--
E-mail: vsh@...

#3693 From: Valery Shestakov <vsh@...>
Date: Tue Apr 3, 2001 6:48 am
Subject: Disable automatic creating windows
vsh@...
Send Email Send Email
 
Created 02.04.2001, 18:16
Subject: Disable automatic created window

  Dear delphi-webbrowser,

   I use a TWebBrowser.

   How can I disable automatic creating windows when I call
   TWebBrowser.Navigate('myurl').

   Some pages can create some additional windows.
   (like as 'window.open();' in JavaScript)



  Best regards.

--
E-mail: vsh@...
WWW: http://www.vshsoft.com
>   ______________      · Good luck   ,     --     [Team -FUTURE-]

#3694 From: "Henri Fournier" <hfournier@...>
Date: Tue Apr 3, 2001 7:01 am
Subject: RE: Copy TWebBrowser to bitmap if TWebBrowser is located on a hidden TForm
hfournier@...
Send Email Send Email
 
If the form is not visible, then the WebBrowser is not visible, and
therefore the document won't load. WebBrowser must be visible, not just have
its Visible property set to true.

--
Henri Fournier
http://members.home.net/hfournier

-----Original Message-----
From: Valery Shestakov [mailto:vsh@...]
Sent: April 3, 2001 2:46 AM
To: delphi-webbrowser@yahoogroups.com
Subject: [delphi-webbrowser] Copy TWebBrowser to bitmap if TWebBrowser
is located on a hidden TForm


Created 02.04.2001, 18:10
Subject: Copy TWebBrowser to bitmap if TWebBrowser is located on a hidden
TForm

  Dear delphi-webbrowser,

   I have a hidden TForm with a TWebBrowser (visible).

   I do so:

procedure TForm1.Button1Click(Sender: TObject);
var
   ViewObject: IViewObject;
   sourceDrawRect: TRect;
begin
   Form2.Height:=Screen.Height;
   Form2.Width:=Screen.Width;
   Form2.WebBrowser.Navigate(Edit1.Text);

   while Form2.WebBrowser.Busy do Application.ProcessMessages;

   try
     WebBrowser.Document.QueryInterface('IViewObject', ViewObject);
     if ViewObject <> nil then
       try
         sourceDrawRect := Rect(0, 0, Image1.Width, Image1.Height);
         ViewObject.Draw(DVASPECT_CONTENT, 1, nil, nil, Self.Handle,
           image1.Canvas.Handle, @sourceDrawRect, nil, nil, 0);
       finally
         ViewObject._Release;
       end;
   except
   end;
end;


  But this example works correctly only if Form2 is visible, if Form2 is
  not visible this example does not work correctly.


  Please Help me!



  Best regards.

--
E-mail: vsh@...






Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

#3695 From: Valery Shestakov <vsh@...>
Date: Tue Apr 3, 2001 7:43 am
Subject: Re[2]: Copy TWebBrowser to bitmap if TWebBrowser is located on a hidden TForm
vsh@...
Send Email Send Email
 
Created 03.04.2001, 10:39
Answer to message from 03.04.2001, 10:01
Subject: [delphi-webbrowser] Copy TWebBrowser to bitmap if TWebBrowser is
located on a hidden TForm

  Dear Henri,

HF> If the form is not visible, then the WebBrowser is not visible, and
HF> therefore the document won't load. WebBrowser must be visible, not just have
HF> its Visible property set to true.

   Understand, I need to copy image of the Webrowser to a bitmap
   without to show on the screen, naturally I need to load url before.




  Best regards.

--
E-mail: vsh@...
WWW: http://www.vshsoft.com
>   ______________      · Good luck   ,     --     [Team -FUTURE-]

#3696 From: "Henri Fournier" <hfournier@...>
Date: Tue Apr 3, 2001 7:51 am
Subject: RE: Re[2]: Copy TWebBrowser to bitmap if TWebBrowser is located on a hidden TForm
hfournier@...
Send Email Send Email
 
WebBrowser will NOT load the document if it is not visible. That's just the
way it is. I guess the developers at MS never thought that someone would
want to use a browser and not display it.

You can hide it behind a TPanel or something, but it and its parent have to
be visible (but not necessarily to the user).

--
Henri Fournier
http://members.home.net/hfournier

-----Original Message-----
From: Valery Shestakov [mailto:vsh@...]
Sent: April 3, 2001 3:43 AM
To: Henri Fournier
Subject: Re[2]: [delphi-webbrowser] Copy TWebBrowser to bitmap if
TWebBrowser is located on a hidden TForm


Created 03.04.2001, 10:39
Answer to message from 03.04.2001, 10:01
Subject: [delphi-webbrowser] Copy TWebBrowser to bitmap if TWebBrowser is
located on a hidden TForm

  Dear Henri,

HF> If the form is not visible, then the WebBrowser is not visible, and
HF> therefore the document won't load. WebBrowser must be visible, not just
have
HF> its Visible property set to true.

   Understand, I need to copy image of the Webrowser to a bitmap
   without to show on the screen, naturally I need to load url before.




  Best regards.

--
E-mail: vsh@...
WWW: http://www.vshsoft.com
>   ______________      · Good luck   ,     --     [Team -FUTURE-]

#3697 From: Valery Shestakov <vsh@...>
Date: Tue Apr 3, 2001 7:58 am
Subject: Re[4]: Copy TWebBrowser to bitmap if TWebBrowser is located on a hidden TForm
vsh@...
Send Email Send Email
 
Created 03.04.2001, 10:57
Answer to message from 03.04.2001, 10:51
Subject: [delphi-webbrowser] Copy TWebBrowser to bitmap if TWebBrowser is
located on a hidden TForm

  Dear Henri,

HF> WebBrowser will NOT load the document if it is not visible. That's just the
HF> way it is. I guess the developers at MS never thought that someone would
HF> want to use a browser and not display it.

HF> You can hide it behind a TPanel or something, but it and its parent have to
HF> be visible (but not necessarily to the user).

   Ok... It's not good...

   Thank you!




  Best regards.

--
E-mail: vsh@...
WWW: http://www.vshsoft.com
>   ______________      · Good luck   ,     --     [Team -FUTURE-]

#3698 From: Valery Shestakov <vsh@...>
Date: Tue Apr 3, 2001 1:30 pm
Subject: Document in the WebBrowser is succesfully painted
vsh@...
Send Email Send Email
 
Created 03.04.2001, 16:28
Subject: Document in the WebBrowser is succesfully painted

  Dear All,

   How can I know that document in the WebBrowser is succesfully
   painted? (is not downloaded or navigated)



  Best regards.

--
E-mail: vsh@...
WWW: http://www.vshsoft.com
>   ______________      · Good luck   ,     --     [Team -FUTURE-]

#3699 From: "Juan Antonio Aguilar" <jaaguilar@...>
Date: Tue Apr 3, 2001 2:55 pm
Subject: Who have tested EmbeddedWB.GetThumbnail?
jaaguilar@...
Send Email Send Email
 
I have test th EmbeddedWB.GetThumbnail method and noted that the behevior isn't
the waited.
This method do the Webbrowser malfunction.

There is anybody that have investigated about this?

Thank u.


[Non-text portions of this message have been removed]

#3700 From: Valery Shestakov <vsh@...>
Date: Tue Apr 3, 2001 2:57 pm
Subject: Re[4]: Copy TWebBrowser to bitmap if TWebBrowser is located on a hidden TForm
vsh@...
Send Email Send Email
 
Created 03.04.2001, 17:51
Answer to message from 03.04.2001, 10:51
Subject: [delphi-webbrowser] Copy TWebBrowser to bitmap if TWebBrowser is
located on a hidden TForm

  Dear Henri,

HF> WebBrowser will NOT load the document if it is not visible. That's just the
HF> way it is. I guess the developers at MS never thought that someone would
HF> want to use a browser and not display it.

HF> You can hide it behind a TPanel or something, but it and its parent have to
HF> be visible (but not necessarily to the user).

   Yahoo! You are not right!

   I can copy the WebBrowser to a bitmap if I put it to hidden TForm.
   So user cannot see as WebBrowser so and TForm.

   But I collide with new problem:

   How can I know that document in the WebBrowser is succesfully
   painted? (is not downloaded or navigated)



  Best regards.

--
E-mail: vsh@...
WWW: http://www.vshsoft.com
>   ______________      · Good luck   ,     --     [Team -FUTURE-]

#3701 From: Valery Shestakov <vsh@...>
Date: Tue Apr 3, 2001 3:17 pm
Subject: Re: Who have tested EmbeddedWB.GetThumbnail?
vsh@...
Send Email Send Email
 
Created 03.04.2001, 18:16
Answer to message from 03.04.2001, 17:55
Subject: [delphi-webbrowser] Who have tested EmbeddedWB.GetThumbnail?

  Dear Juan,

JAA> I have test th EmbeddedWB.GetThumbnail method and noted that the behevior
isn't the waited.
JAA> This method do the Webbrowser malfunction.

JAA> There is anybody that have investigated about this?

   I have got the same situation.



  Best regards.

--
E-mail: vsh@...
WWW: http://www.vshsoft.com
>   ______________      · Good luck   ,     --     [Team -FUTURE-]

#3702 From: "Henri Fournier" <hfournier@...>
Date: Tue Apr 3, 2001 3:16 pm
Subject: RE: Re[4]: Copy TWebBrowser to bitmap if TWebBrowser is located on a hidden TForm
hfournier@...
Send Email Send Email
 
I'm very surprised to hear that. I've never heard of anyone being able to
load a document in WebBrowser without it being made visible first. Even a
developer on the IE team told me that a few years ago. What version of IE
are you using?

Why not put your "copy to bitmap" code in the OnDocumentComplete event
handler?

--
Henri Fournier
http://members.home.net/hfournier

-----Original Message-----
From: Valery Shestakov [mailto:vsh@...]
Sent: April 3, 2001 10:58 AM
To: Henri Fournier
Subject: Re[4]: [delphi-webbrowser] Copy TWebBrowser to bitmap if
TWebBrowser is located on a hidden TForm


Created 03.04.2001, 17:51
Answer to message from 03.04.2001, 10:51
Subject: [delphi-webbrowser] Copy TWebBrowser to bitmap if TWebBrowser is
located on a hidden TForm

  Dear Henri,

HF> WebBrowser will NOT load the document if it is not visible. That's just
the
HF> way it is. I guess the developers at MS never thought that someone would
HF> want to use a browser and not display it.

HF> You can hide it behind a TPanel or something, but it and its parent have
to
HF> be visible (but not necessarily to the user).

   Yahoo! You are not right!

   I can copy the WebBrowser to a bitmap if I put it to hidden TForm.
   So user cannot see as WebBrowser so and TForm.

   But I collide with new problem:

   How can I know that document in the WebBrowser is succesfully
   painted? (is not downloaded or navigated)



  Best regards.

--
E-mail: vsh@...
WWW: http://www.vshsoft.com
>   ______________      · Good luck   ,     --     [Team -FUTURE-]






Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

#3703 From: "Christian Lovis" <christian.lovis@...>
Date: Tue Apr 3, 2001 3:23 pm
Subject: RE: Re[4]: Copy TWebBrowser to bitmap if TWebBrowser is located on a hidden TForm
christian.lovis@...
Send Email Send Email
 
I saw the same effect than Valery.
The page will be loaded after the IW made visible, even if the navigate has
been exectued much much before.

Chris

-----Original Message-----
From: Henri Fournier [mailto:hfournier@...]
Sent: 04 17:17
To: delphi-webbrowser@yahoogroups.com
Subject: RE: Re[4]: [delphi-webbrowser] Copy TWebBrowser to bitmap if
TWebBrowser is located on a hidden TForm


I'm very surprised to hear that. I've never heard of anyone being able to
load a document in WebBrowser without it being made visible first. Even a
developer on the IE team told me that a few years ago. What version of IE
are you using?

Why not put your "copy to bitmap" code in the OnDocumentComplete event
handler?

--
Henri Fournier
http://members.home.net/hfournier

-----Original Message-----
From: Valery Shestakov [mailto:vsh@...]
Sent: April 3, 2001 10:58 AM
To: Henri Fournier
Subject: Re[4]: [delphi-webbrowser] Copy TWebBrowser to bitmap if
TWebBrowser is located on a hidden TForm


Created 03.04.2001, 17:51
Answer to message from 03.04.2001, 10:51
Subject: [delphi-webbrowser] Copy TWebBrowser to bitmap if TWebBrowser is
located on a hidden TForm

  Dear Henri,

HF> WebBrowser will NOT load the document if it is not visible. That's just
the
HF> way it is. I guess the developers at MS never thought that someone would
HF> want to use a browser and not display it.

HF> You can hide it behind a TPanel or something, but it and its parent have
to
HF> be visible (but not necessarily to the user).

   Yahoo! You are not right!

   I can copy the WebBrowser to a bitmap if I put it to hidden TForm.
   So user cannot see as WebBrowser so and TForm.

   But I collide with new problem:

   How can I know that document in the WebBrowser is succesfully
   painted? (is not downloaded or navigated)



  Best regards.

--
E-mail: vsh@...
WWW: http://www.vshsoft.com
>   ______________      · Good luck   ,     --     [Team -FUTURE-]






Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/







Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

#3704 From: "Karol Sudnik" <ksudnik@...>
Date: Tue Apr 3, 2001 8:28 pm
Subject: Access violation error when using FAQ's tip !
ksudnik@...
Send Email Send Email
 
Hello,
I am using the hint from H.Fournier's FAQ on how to  load a string into the
WebBrowser without Navigating to a file.
var
   v: Variant;
   HTMLDocument: IHTMLDocument2;
begin
   HTMLDocument := WebBrowser1.Document as IHTMLDocument2;
   v := VarArrayCreate([0, 0], varVariant);
   v[0] := HTMLString; // Here's your HTML string
   HTMLDocument.Write(PSafeArray(TVarData(v).VArray));
   HTMLDocument.Close;
end;

When I run it I get access violation in line :
HTMLDocument.Write(PSafeArray(TVarData(v).VArray));
Does anyone know why?
I would appreciate any help .
Karol

#3705 From: devon <devonm@...>
Date: Tue Apr 3, 2001 9:38 pm
Subject: Re: Access violation error when using FAQ's tip !
devonm@...
Send Email Send Email
 
I had a similar question for this list a few months back, Kelly Salvage
responded:

************************************************************
I also make quite extensive use of the webbrowser for reporting
purposes.
What I have found to be the most simple and effective way of doing
this, is
to navigate to about:blank on the onshow event of the form to
initialise the
document, then use the webbrowser.oleobject.document.write method
to write
to the document, and the webbrowser.oleobject.document.clear
method to clear
the current html.

Regards
Kelly
************************************************************

Hope this helps, got me going...


Karol Sudnik wrote:

> Hello,
> I am using the hint from H.Fournier's FAQ on how to  load a string into the
> WebBrowser without Navigating to a file.
> var
>   v: Variant;
>   HTMLDocument: IHTMLDocument2;
> begin
>   HTMLDocument := WebBrowser1.Document as IHTMLDocument2;
>   v := VarArrayCreate([0, 0], varVariant);
>   v[0] := HTMLString; // Here's your HTML string
>   HTMLDocument.Write(PSafeArray(TVarData(v).VArray));
>   HTMLDocument.Close;
> end;
>
> When I run it I get access violation in line :
> HTMLDocument.Write(PSafeArray(TVarData(v).VArray));
> Does anyone know why?
> I would appreciate any help .
> Karol
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

--

****************************************************
Devon McDormand
Software Developer
Adventus Inc. (http://www.adventus.com)
phone: (902) 543-4134   toll free: (888) 999-6434
fax: (902) 543-4127
devonm@...
****************************************************

#3706 From: support@...
Date: Wed Apr 4, 2001 3:17 am
Subject: Web Page to Bitmap
support@...
Send Email Send Email
 
Hello,

I am trying to capture a web page to a bitmap, and have tried the
examples that are posted in this forum and on Henri's FAQ's, however
I am only getting the portion of the screen that is visible, if the
document is to large for the window and there are scroll bars then I
get the scroll bars in the image.

Thanks for any help,
Duffy

Here is the code that I am using:

Procedure CopyImagetoClipboard;
var
   ViewObject: IViewObject;
   sourceDrawRect: TRect;
   image1:timage;
begin
   image1:=timage.create(nil);
   try
     ie.Document.QueryInterface(IViewObject, ViewObject);
     image1.picture.bitmap.width := ie.width;
     image1.picture.bitmap.height := ie.height;
     image1.height := ie.height;
     image1.width := ie.width;
     if ViewObject <> nil then
     begin
       try
         sourceDrawRect := Rect(0, 0, ie.Height, ie.Width);
         ViewObject.Draw(DVASPECT_CONTENT, 1, nil, nil, ie.HWND,
           image1.Canvas.Handle, @sourceDrawRect, nil, nil, 0);
       finally
         ViewObject._Release;
       try
         clipboard.assign(image1.picture.bitmap);
       finally
       end;
       image1.picture.SaveToFile('C:\junk.bmp');
       image1.free;
       end;
     end;
   except
   end;

end;

Messages 3677 - 3706 of 10292   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help