Home All Groups Group Topic Archive Search About

Send datagrid via email

Author
1 Jul 2005 6:19 AM
sam
Do anyone know how to apply send datagrid via email?

Any website for reference?

Please advise.

Author
1 Jul 2005 7:42 AM
Ken Tucker [MVP]
Hi,

                I would create an spread sheet from the data and email that.

http://support.microsoft.com/kb/319180/EN-US/

http://support.microsoft.com/default.aspx?scid=kb;en-us;306022

Ken
---------------------
"sam" <samuel***@ajikl.com.my> wrote in message
news:utd2hTgfFHA.3692@TK2MSFTNGP09.phx.gbl...
Do anyone know how to apply send datagrid via email?

Any website for reference?

Please advise.
Author
1 Jul 2005 7:47 AM
sam
I had the coding and it is working fine. But how do I bind data and send it
using email?

Dim objMM As New MailMessage()
ObjMM.To = "s**@hotmail.com"
objMM.From = "s**@hotmail.com"
objMM.BodyFormat = Mailformat.Html
objMM.Priority = MailPriority.Normal
objMM.Subject = "Test Email"
objMM.Body = "Please ignore this email due to testing via vb.net"
Smtpmail.SmtpServer = "hotmail"
Smtpmail.Send(objMM)

Please advise.


Show quoteHide quote
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:uqA1iBhfFHA.1148@TK2MSFTNGP12.phx.gbl...
> Hi,
>
>                I would create an spread sheet from the data and email
> that.
>
> http://support.microsoft.com/kb/319180/EN-US/
>
> http://support.microsoft.com/default.aspx?scid=kb;en-us;306022
>
> Ken
> ---------------------
> "sam" <samuel***@ajikl.com.my> wrote in message
> news:utd2hTgfFHA.3692@TK2MSFTNGP09.phx.gbl...
> Do anyone know how to apply send datagrid via email?
>
> Any website for reference?
>
> Please advise.
>
>
>
Author
1 Jul 2005 8:59 AM
Neo Geshel
sam wrote:
Show quoteHide quote
> "Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
> news:uqA1iBhfFHA.1148@TK2MSFTNGP12.phx.gbl...
>
>>Hi,
>>
>>               I would create an spread sheet from the data and email
>>that.
>>
>>http://support.microsoft.com/kb/319180/EN-US/
>>
>>http://support.microsoft.com/default.aspx?scid=kb;en-us;306022
>>
>>Ken
>>---------------------
>>"sam" <samuel***@ajikl.com.my> wrote in message
>>news:utd2hTgfFHA.3692@TK2MSFTNGP09.phx.gbl...
>>Do anyone know how to apply send datagrid via email?
>>
>>Any website for reference?
>>
>>Please advise.
>>
> I had the coding and it is working fine. But how do I bind data and send it
> using email?
>
> Dim objMM As New MailMessage()
> ObjMM.To = "s**@hotmail.com"
> objMM.From = "s**@hotmail.com"
> objMM.BodyFormat = Mailformat.Html
> objMM.Priority = MailPriority.Normal
> objMM.Subject = "Test Email"
> objMM.Body = "Please ignore this email due to testing via vb.net"
> Smtpmail.SmtpServer = "hotmail"
> Smtpmail.Send(objMM)
>
> Please advise.
>

Well, I do believe that you might be going about this all wrong. The
primary use of a DataGrid is for easy addition of highly advanced
features (paging, sorting, etc.). What you might want to look at is the
repeater control, although I am also mystified as to how its end result
might appear in the content of an e-mail.

What you might want to do is "import" or "include" a separate web page
as the body of the e-mail. Then, you can use that separate web page,
pass variables on to it, and have it render properly *before* it is used
as the body of the e-mail. The tricky part is getting it to fully render
before the "send e-mail" script gets to it, but some screen scraping
might be the thing to use. That is, the collection of data or content
from a remote web page via HTTP. By using screen scraping, you ensure
that the DataGrid (or Repeater, or whatever you're gonna use) gets fully
rendered as desired before it is plunked down and used as the body of
the e-mail.

Don't ask me for an example, I'm just going out on a limb here...

....Geshel
--
**********************************************************************
My reply-to is an automatically monitored spam honeypot. Do not use it
unless you want to be blacklisted by SpamCop. Please reply to my first
name at my last name dot org.
**********************************************************************
Author
1 Jul 2005 10:55 AM
Cor Ligthert
Sam,

When you use a dataset as the datasource. Than you can just serialize that
using this simple serialize/deserialize method on our website.

http://www.windowsformsdatagridhelp.com/default.aspx?ID=06d9730e-9e33-404c-947a-c891846eaf0b

I hope this helps,

Cor
Author
1 Jul 2005 11:30 AM
Chad Z. Hower aka Kudzu
"sam" <samuel***@ajikl.com.my> wrote in news:utd2hTgfFHA.3692@TK2MSFTNGP09.phx.gbl:
> Do anyone know how to apply send datagrid via email?

What is the source of your data grid?


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
      "Programming is an art form that fights back"

Empower ASP.NET with IntraWeb
  http://www.atozed.com/IntraWeb/