Results 1 to 9 of 9

Thread: Graphics in the Net

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2002
    Posts
    24

    Question Graphics in the Net

    I have an application in VB 6.0 that fecth records from Oracle DB and Plot a Graphic, Students (enrolled/droped etc) vs Time. This application use Picture Control methods and properties.

    I was wondering what will be the best approach to make this available to Internet users.

    I have experience developing ASP pages, however, never converted a VB application to the Internet.

    Thank you in advance for your help and very Happy new year.
    mch

  2. #2
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    You can either use Java (which means a rewrite) or build an ActiveX control and implement it in an HTML page. Its actually not too hard to do once the control works in a normal app. There are many tutorials out there on how to embed ActiveX controls in a web page.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2002
    Posts
    24
    Thanks, I was thinking in that direction, create an Internet enable control, perhaps. I don't think I will have much problems building the Activex. However embeding it in the HTML I have never done it.

    I will appreciate if you can you point me to the tutorial.

    Regards
    mch

  4. #4
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    I probably wouldn't download a whole ActiveX object (much less a VB-created one) for something that could be done in a way that doesn't require me to download anything. And ActiveX objects don't work in Mozilla anyway.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  6. #6
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Have it export a PNG/JPEG/GIF/TIFF/whatever with the filename being the ID of the current session. Next page, simply load the image that has the sessionid, and that will be the last image that was requested by your session (phew).

    There are many ways to save these formats. The best way is with modFreeImage. Search it on google and you'll get the results you need.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  7. #7
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    This being a plotted graph I guess PNG is best.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Mar 2002
    Posts
    24
    Let see if I copy you correctly.

    The VB application should plot the graphis as it is doing now in a picture control then:

    - save it in PNG format

    - Load it back up to the HTML page from the server

    But any way I have to contact the server to run the VB application some how ?

    Is that the plan ?
    mch

  9. #9
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    You create a DLL project, and make an instance of the project in your ASP page to expose it's functionality (or if it's a public class module simply use it). Then, it can generate the file on the server, and another ASP page can link an IMG tag to it.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

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