Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Send xy plot by email

Send xy plot by email

Scheduled Pinned Locked Moved C / C++ / MFC
javahtmltutorialquestiondiscussion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BambooMoon
    wrote on last edited by
    #1

    I have a program that sends an email if a certain alarm condition arises. Currently, the email only contains a text message, but I'd like it also to include an xy plot of about 400 points. Trouble is, I don't know how to put that plot into an email. I know I could create an image in a file and attach that to the email, but I prefer not to do that. Is there some kind of html or something else that can go in an email that will display a plot given the set of xy points? I know that java classes on a web page can plot given the points, but can email clients like Outlook and Outlook Express run java applets? Any other thoughts? One thing someone suggested to me was to make a plot using ASCII codes. But my plot needs to be very precise for the points given, not some rough approximation, so I don't think that would work.

    C J J 3 Replies Last reply
    0
    • B BambooMoon

      I have a program that sends an email if a certain alarm condition arises. Currently, the email only contains a text message, but I'd like it also to include an xy plot of about 400 points. Trouble is, I don't know how to put that plot into an email. I know I could create an image in a file and attach that to the email, but I prefer not to do that. Is there some kind of html or something else that can go in an email that will display a plot given the set of xy points? I know that java classes on a web page can plot given the points, but can email clients like Outlook and Outlook Express run java applets? Any other thoughts? One thing someone suggested to me was to make a plot using ASCII codes. But my plot needs to be very precise for the points given, not some rough approximation, so I don't think that would work.

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      there's a client-side graphics package called SVG[^], but i'm not sure if email clients will like it, plus it requires a client-side install (the same way you need a PDF-reader to read PDF) Cleek | Image Toolkits | Thumbnail maker

      1 Reply Last reply
      0
      • B BambooMoon

        I have a program that sends an email if a certain alarm condition arises. Currently, the email only contains a text message, but I'd like it also to include an xy plot of about 400 points. Trouble is, I don't know how to put that plot into an email. I know I could create an image in a file and attach that to the email, but I prefer not to do that. Is there some kind of html or something else that can go in an email that will display a plot given the set of xy points? I know that java classes on a web page can plot given the points, but can email clients like Outlook and Outlook Express run java applets? Any other thoughts? One thing someone suggested to me was to make a plot using ASCII codes. But my plot needs to be very precise for the points given, not some rough approximation, so I don't think that would work.

        J Offline
        J Offline
        James R Twine
        wrote on last edited by
        #3

        If you do not want to attach, and I would worry security-wise about readers that will just go an automatically execute script and/or applets, I would suggest one of two things:    1: Use some fancy (D)HTML to draw your graph.  It might be as simple as a table containing non-whitespace characters with a specific background/fill color.    2: Go old-school and create an ASCII Art drawing.  (Anyone remember "The Draw"?) :)    Peace! -=- James


        If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
        Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
        DeleteFXPFiles & CheckFavorites (Please rate this post!)

        1 Reply Last reply
        0
        • B BambooMoon

          I have a program that sends an email if a certain alarm condition arises. Currently, the email only contains a text message, but I'd like it also to include an xy plot of about 400 points. Trouble is, I don't know how to put that plot into an email. I know I could create an image in a file and attach that to the email, but I prefer not to do that. Is there some kind of html or something else that can go in an email that will display a plot given the set of xy points? I know that java classes on a web page can plot given the points, but can email clients like Outlook and Outlook Express run java applets? Any other thoughts? One thing someone suggested to me was to make a plot using ASCII codes. But my plot needs to be very precise for the points given, not some rough approximation, so I don't think that would work.

          J Offline
          J Offline
          Jun Du
          wrote on last edited by
          #4

          To clarify your question, what is the form of your plot, a hard-copy printout or an electronic file? If saved in an electronic file, is it a raw data format or image format such as BMP, PDF, JPEG, etc? - It's easier to make than to correct a mistake.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups