Results 1 to 4 of 4

Thread: Exporting VB Data to HTML, Creating an Object, or is there one ?

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2002
    Location
    Indianapolis In, lookin for a Good Woman !~
    Posts
    48

    Exporting VB Data to HTML, Creating an Object, or is there one ?

    Greetings !

    First Post on this site, i just found it today ! it's lookin prety skippy !
    i might be here a while !!! hehehe

    ok, jsut some background. i have been programming for 21 years, i can write in 7 languages including VB, HTML, javascript, VBScript... and if any of you have heard of it... Mumps

    I am creating a VB application, retrieving data into this app. i am in the process of creating an Object (currently only a module) to take teh info i have and export it to HTML format.

    basically i am "printing to file" (HTML format)
    does anyone know of existing source code that will already do this ?
    i am eventually going to compile teh mod into a full stand alone Object to reuse it.
    i can easily do all of this, but didnt want to have to re-invent the wheel if it is already out there...

    BTW, i need the source code. i can not just use an existing DLL, or OCX. with the job i do, i have to validate the integrity of the software before it is put into production.

    also, i will be adding in additional information to it so the document (once created as HTML) is self validating. if it is ever moved to a different location than it was originally written to on the network, the HTML doc pops up a message when tried to be viewed saying that it was moved, and it closes back down. (its a QC thing...) (this part is already working)

    anyway... anyone know where i can get something like this ?

  2. #2
    Addicted Member
    Join Date
    Aug 2002
    Location
    England
    Posts
    165
    Try... here, my friend gave me this earlier, might be what you're after.
    _____

    Hehehe

  3. #3
    Addicted Member
    Join Date
    Aug 2002
    Location
    England
    Posts
    165
    Sorry he changed it :-/
    Attached Files Attached Files
    _____

    Hehehe

  4. #4

    Thread Starter
    Member
    Join Date
    Aug 2002
    Location
    Indianapolis In, lookin for a Good Woman !~
    Posts
    48

    thanks. but pretty basic.

    thanks for your rapid reply.
    i took a look at it, but that is really pretty basic to what i am looking for.

    i am referring to creating a resueable DLL file, an Object, that will have Methods and Properties....
    Example :

    Object module : ExportToHTML

    Public Sub TableCreateNew(intWidth As Integer, blnBorder As Boolean, intBackColor As Integer)
    &nbsp;&nbsp;&nbsp;&nbsp;Print #1, "<table "
    &nbsp;&nbsp;&nbsp;&nbsp;If Len(intWidth) > 0 Then Print #1, "width=" & intWidth & " "
    &nbsp;&nbsp;&nbsp;&nbsp;If blnBorder = True Then Print #1, "border=1 "
    &nbsp;&nbsp;&nbsp;&nbsp;If Len(intBackColor) > 0 Then Print #1, "bgcolor=" & intBackColor
    &nbsp;&nbsp;&nbsp;&nbsp;Print #1, ">"
    End Sub

    Public Sub TableEnd()
    &nbsp;&nbsp;&nbsp;&nbsp;Print #1, "</table>" & Chr(13)
    End Sub

    once running, you would be able to access the object with the methods :

    ExportToHTML.TableCreateNew (400, 1, 15)
    ExportToHTML.TableEnd

    TableCreateNew, would create a new table in the HTML document, make it 400 pixels wide, with a border and give it a black background.

    once you compile it to a DLL Object, any VB program can access it and dump information out to an HTML file simply by passing it the info you want as parameters, to create as an HTML document.

    i am looking for the source code to all of the different HTML tags for object oriented design...

    but seriously.. thanks for your input !!!!!!

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