Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi Guys facing some problem with IWEB and IHTML. I am trying to show web pages using IWEB and IHTML interface. But before passing the webresp to IHTMLViewer i try to check for table in the response. I am using ISOURCE_Read
first and then IHTMLVIEWER_LoadStream. My problem is that once i use ISOURCE_Read then i m not able to show the page. If I use IHTMLVIEWER_LoadStream first then i am not getting buffer on ISOURCE_Read.
Can any one help on this.
Thanks in Advance.

RG
NB

Hey guys can we use ISOURCE_Read and IHTMLVIEWER_LoadStream one after another

Hey guys can we use ISOURCE_Read and IHTMLVIEWER_LoadStream one after another

It can be used. Some where you are losing the data between these 2. So check the code.

It can be used. Some where you are losing the data between these 2. So check the code.

ISOURCE_Read() consumes the bytes read, so there will be no data for the HTML viewer to read. IHTMLVIEWER_LoadStream() will also consume the data. So no, you can't use both.
You could read the data out of the source into some intermediate buffer, parse the buffer, and then pass the buffer to the viewer as an IMemAStream.
-Erik

ISOURCE_Read() consumes the bytes read, so there will be no data for the HTML viewer to read. IHTMLVIEWER_LoadStream() will also consume the data. So no, you can't use both.
You could read the data out of the source into some intermediate buffer, parse the buffer, and then pass the buffer to the viewer as an IMemAStream.
-Erik

Thnx Ebrowne, i was also thinking same. Do we have other options than reading first and then stream it to IHTML.

Thnx Ebrowne, i was also thinking same. Do we have other options than reading first and then stream it to IHTML.