IHtmlViewer problem | developer.brewmp.com IHtmlViewer problem | developer.brewmp.com

Developer

IHtmlViewer problem

Forums:

Hi all,
I have a problem with htmlviewer.

while displaying .htm file in the simulator or in the device using htmlviewer is not showing the whole content of the file(27 kb).Is there any limit for file size in htmlviewer?

IFILE_GetInfo shows the correct size and the same file is passed to IHTMLVIEWER_LoadStream( pApp->m_pHTMLViewer, (IAStream*)pf); I could see only a part of it in the simulator and in the device. :(

can anyone please guide me for this?

Thank you.

Is whole page coming in one screen? if not, set HVP_SCROLLBAR property.

Is whole page coming in one screen? if not, set HVP_SCROLLBAR property.

Hi adhudase,
Thank you.
But I have already set HVP_SCROLLBAR property.I could scroll the page.But could not see the whole content of the file.

Hi adhudase,
Thank you.
But I have already set HVP_SCROLLBAR property.I could scroll the page.But could not see the whole content of the file.

It may happen that the html page you want to render is not having compatible syntax that brew IHTMLViewer renders.
I mean if page is properly loading than this can be the reason.
for example image rendering should be like this:

I have successfully displayed a html page with scrollbar.
Let me know if you are facing any problem.

It may happen that the html page you want to render is not having compatible syntax that brew IHTMLViewer renders.
I mean if page is properly loading than this can be the reason.
for example image rendering should be like this:

I have successfully displayed a html page with scrollbar.
Let me know if you are facing any problem.

Hi Rajni,
Thanks for your reply.
But In our code we are trying to display the web page from server.If the size of the page is less than 10 kb we could display the whole content.If it exceeds then only the page upto 10 kb would be displayed through IHTMLVIEWER_LoadSource.
So can you please try to hit "http://www.google.co.in/search?hl=en&q=brew&meta=" URL through your application and tell me the result?
Because for this URL we are not able to display the whole content.

Hi Rajni,
Thanks for your reply.
But In our code we are trying to display the web page from server.If the size of the page is less than 10 kb we could display the whole content.If it exceeds then only the page upto 10 kb would be displayed through IHTMLVIEWER_LoadSource.
So can you please try to hit "http://www.google.co.in/search?hl=en&q=brew&meta=" URL through your application and tell me the result?
Because for this URL we are not able to display the whole content.

Hi,
I am also facing the same issue. I have tried using the Scrollbar but same.
But I have not tried LoadResource till now.
One solution could be to
Physically Break the HTML in multiple pages
Remove the tags like CSS/Script from the page so as to reduce the size of these unsupported tags
Please let me know if anyone else has found some solution for this.
Thanks
Sam

Hi,
I am also facing the same issue. I have tried using the Scrollbar but same.
But I have not tried LoadResource till now.
One solution could be to
Physically Break the HTML in multiple pages
Remove the tags like CSS/Script from the page so as to reduce the size of these unsupported tags
Please let me know if anyone else has found some solution for this.
Thanks
Sam

I also faced the same problem.
:o

I also faced the same problem.
:o

Hi,
Try to download the entire page within application folder and in "case ISOURCE_END:" load downloaded html file using IHTMLVIEWER_LoadStream
Note: this will take slightly more time compared to loading pages directly using "IHTMLVIEWER_LoadSource".
pMe->m_pIFile = IFILEMGR_OpenFile(pMe->m_pIFileMgr, "response.html", _OFM_READ);
if(pMe->m_pIFile)
IHTMLVIEWER_LoadStream(pMe->m_pIHtmlViewer, (IAStream *)pMe->m_pIFile);

Hi,
Try to download the entire page within application folder and in "case ISOURCE_END:" load downloaded html file using IHTMLVIEWER_LoadStream
Note: this will take slightly more time compared to loading pages directly using "IHTMLVIEWER_LoadSource".
pMe->m_pIFile = IFILEMGR_OpenFile(pMe->m_pIFileMgr, "response.html", _OFM_READ);
if(pMe->m_pIFile)
IHTMLVIEWER_LoadStream(pMe->m_pIHtmlViewer, (IAStream *)pMe->m_pIFile);