Results 1 to 5 of 5

Thread: How to design html report from vb

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    5

    How to design html report from vb

    Hi..
    How do I design a html report from visual basic 6.0? The report will consist of tables with values from a access database.

    Thanks for you time.

  2. #2
    Hyperactive Member CHAMPGARY's Avatar
    Join Date
    Jul 2002
    Posts
    386

    Re: How to design html report from vb

    Hi sarup_24,

    I have one pretty example of datareport.Downloaded from forum.
    See the attachment , I am sure this will help you a lot
    Attached Files Attached Files
    Regards,
    CHAMPGARY

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    5

    Re: How to design html report from vb

    Hi..

    Thanks a lot.
    I got some idea..but I want to have some control on the design of the html output...I have many tables of data in access and I want them to display in a single html file.

    Please help me.

    Thanks.

  4. #4
    Fanatic Member Bombdrop's Avatar
    Join Date
    Apr 2001
    Location
    St Helens, England, UK
    Posts
    667

    Re: How to design html report from vb

    Try this little function i think this is what you are after, well it will need a bit more work but it's a start.

    Code:
    Public Function RStoHTML(rs As ADODB.Recordset) As String
        
        RStoHTML = rs.GetString(adClipString, -1, "</TD><TD>", _
                    "</TD></TR>" & vbCrLf & "<TR><TD>", "(NULL)")
                    
        RStoHTML = "<TR><TD>" & Left(RStoHTML, Len(RStoHTML) - 8)
        
        RStoHTML = "<TABLE> " & RStoHTML & "</TABLE>"
        
    End Function
    Hope this helps!!

  5. #5

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    5

    Re: How to design html report from vb

    Thanks Bombdrop.. Thanks for the nice function.

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