Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Webbrowser control not loading Html string

i have this routine [attached Generate_employee_list.txt --1.32 Kb]

Wich generates a string with the data in a Xl sheet, then i load with ..Navigate from a webbrowser control i have in a form, if the sheet has only three rows with data the webbrowser works fine [ attached Mypage.Html 530 b], however , if the rows are larger than three, the control doesn't load the StrURL variable where i keep the string.[attached Mypage2.Html 811 Bytes].

i have already tried changing the Line variable data type [just in case the memory in the string datatype was not enough for the string to load the entire amount of characters], Non sucessfull, but i check out the code in both pages and cannot seem to be anything weird, [ besides the poor design, to implicate that the document is not well formed]

hereby i let the attachments so somebody can tear my poor programming skills :(

Gracias /thanks and regards...

--
PD: i also posted this msg to Ms.Public.es.Excel
--
--
Tambien puedes visitar
--
Walter R . [zz]

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Webbrowser control not loading Html string

There is a limit to the length of a URL in IE - think it's around 2k
characters or just over. If your HTML is longer than this then it won't
load.
Try navigating to "about:blank" then opening the document and writing your
string.

You might want to allow some time for the page to load before opening it to
write the HTML

Haven't looked at your code - most here will not download attachments.

Tim


"zz" wrote in message
...
i have this routine [attached Generate_employee_list.txt --1.32 Kb]

Wich generates a string with the data in a Xl sheet, then i load with
..Navigate from a webbrowser control i have in a form, if the sheet has only
three rows with data the webbrowser works fine [ attached Mypage.Html 530
b], however , if the rows are larger than three, the control doesn't load
the StrURL variable where i keep the string.[attached Mypage2.Html 811
Bytes].

i have already tried changing the Line variable data type [just in case the
memory in the string datatype was not enough for the string to load the
entire amount of characters], Non sucessfull, but i check out the code in
both pages and cannot seem to be anything weird, [ besides the poor design,
to implicate that the document is not well formed]

hereby i let the attachments so somebody can tear my poor programming skills
:(

Gracias /thanks and regards...

--
PD: i also posted this msg to Ms.Public.es.Excel
--
--
Tambien puedes visitar
--
Walter R . [zz]


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Webbrowser control not loading Html string

Thanks Tim, didn't knew about the character limit for Url.

--
--
--
Tambien puedes visitar
--
Walter R . [zz]

"Tim Williams" <timjwilliams at gmail dot com wrote in message
...
There is a limit to the length of a URL in IE - think it's around 2k
characters or just over. If your HTML is longer than this then it won't
load.
Try navigating to "about:blank" then opening the document and writing your
string.

You might want to allow some time for the page to load before opening it
to write the HTML

Haven't looked at your code - most here will not download attachments.

Tim


"zz" wrote in message
...
i have this routine [attached Generate_employee_list.txt --1.32 Kb]

Wich generates a string with the data in a Xl sheet, then i load with
.Navigate from a webbrowser control i have in a form, if the sheet has
only three rows with data the webbrowser works fine [ attached Mypage.Html
530 b], however , if the rows are larger than three, the control doesn't
load the StrURL variable where i keep the string.[attached Mypage2.Html
811 Bytes].

i have already tried changing the Line variable data type [just in case
the memory in the string datatype was not enough for the string to load
the entire amount of characters], Non sucessfull, but i check out the code
in both pages and cannot seem to be anything weird, [ besides the poor
design, to implicate that the document is not well formed]

hereby i let the attachments so somebody can tear my poor programming
skills :(

Gracias /thanks and regards...

--
PD: i also posted this msg to Ms.Public.es.Excel
--
--
Tambien puedes visitar
--
Walter R . [zz]




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I call an Excel VBA function from within a WebBrowser control? John Brock Excel Discussion (Misc queries) 0 October 20th 09 02:16 AM
Problem with webbrowser control Mike NG Excel Programming 5 April 14th 05 10:20 PM
How to open an Excel worksheet in the webBrowser control Gary Excel Programming 0 April 30th 04 05:29 PM
webbrowser control error No Name Excel Programming 0 November 18th 03 05:18 AM
webbrowser control tab navigation Cesar Zapata[_2_] Excel Programming 1 July 11th 03 11:57 PM


All times are GMT +1. The time now is 09:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"