Results 1 to 9 of 9

Thread: vb6 add table rows webbrowser

  1. #1

    Thread Starter
    Member k7l2010's Avatar
    Join Date
    Feb 2017
    Posts
    58

    vb6 add table rows webbrowser

    Please Help
    Add web page table lines

    code html

    HTML Code:
    <html dir="rtl">
    
    <head>
    <meta http-equiv="Content-Language" content="en-us">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>aa</title>
    </head>
    
    <body>
    
    <div align="center">
    	<table border="1" id="ss" cellpadding="0" style="border-collapse: collapse" width="13%" dir="rtl">
    		<tr>
    			<td style="color: #FFFFFF" bgcolor="#669999">
    			<p align="center">name</td>
    		</tr>
    		<tr>
    			<td>&nbsp;</td>
    		</tr>
    		</table>
    </div>
    
    </body>
    
    </html>
    code vb

    set table = WebBrowser1.document.getElementById("ss");


    row = table.insertRow(0);


    cell1 = row.insertCell(0);


    cell1.innerHTML = "NEW CELL1";

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    106,287

    Re: vb6 add table rows webbrowser

    Please be careful and post in the correct forum. CodeBank forums are for sharing working code snippets, not for asking questions. I have asked the mods to move this thread.

  3. #3

    Thread Starter
    Member k7l2010's Avatar
    Join Date
    Feb 2017
    Posts
    58

    Re: vb6 add table rows webbrowser

    Verbose that works code VB6

    There is an example attached, please modify it
    Attached Files Attached Files

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    33,213

    Re: vb6 add table rows webbrowser

    If it works, why does it need to be modified?

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5

    Thread Starter
    Member k7l2010's Avatar
    Join Date
    Feb 2017
    Posts
    58

    Re: vb6 add table rows webbrowser

    techgnome

    The code does not work sir
    Please help for the code to work
    Last edited by k7l2010; Feb 25th, 2021 at 03:29 AM.

  6. #6

    Thread Starter
    Member k7l2010's Avatar
    Join Date
    Feb 2017
    Posts
    58

    Re: vb6 add table rows webbrowser

    where are you?

  7. #7
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    33,213

    Re: vb6 add table rows webbrowser

    I'm in the office at work, where are you?
    I don't jsut download the code of random people. Heck I don't even download the code of most people I do know on here.
    Downloading code and fixing it on demand isn't how it works here. You've been a member for 4 years, and have nearly 60 posts... you should know this by now. We're all volunteers here, we're not on-demand developers. That's not how it works. How it does work is you post code, you provide a CLEAR explanation of what it should do, what it does do, and if applicable, input data and expected output. If you need help with this, there's a much more detail guide in my signature block about removing eels from your hovercraft.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  8. #8
    Hyperactive Member
    Join Date
    Aug 2016
    Posts
    496

    Re: vb6 add table rows webbrowser

    Quote Originally Posted by k7l2010 View Post
    Verbose that works code VB6

    There is an example attached, please modify it
    Code:
    Private Sub Command1_Click()
    Set Table = WebBrowser1.Document.getElementById("ss")
    
    
    Set row = Table.insertRow(0)
    
    
    Set cell1 = row.insertCell(0)
    
    
    cell1.innerHTML = "NEW CELL1"
    End Sub
    
    Private Sub Form_Load()
    WebBrowser1.Navigate App.Path & "\index.htm"
    
    End Sub
    now work ok in my system 10

  9. #9

    Thread Starter
    Member k7l2010's Avatar
    Join Date
    Feb 2017
    Posts
    58

    Re: vb6 add table rows webbrowser

    Thank you, engineer xxdoc123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width