|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Send datagrid via emailDo anyone know how to apply send datagrid via email?
Any website for reference? Please advise. 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 Do anyone know how to apply send datagrid via email?news:utd2hTgfFHA.3692@TK2MSFTNGP09.phx.gbl... 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. 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. > > > sam wrote:
Show quoteHide quote > "Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message Well, I do believe that you might be going about this all wrong. The > 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. > 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. ********************************************************************** 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 "sam" <samuel***@ajikl.com.my> wrote in news:utd2hTgfFHA.3692@TK2MSFTNGP09.phx.gbl: What is the source of your data grid?> Do anyone know how to apply send datagrid via email? -- 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/
System.Web.Mail.Smtp namespace
Intellisense question How to convert this code from C# to VB.NET? Need Help With Translation C#? to VB Change Value of Existing Element How To? import vb net forms ??? reference dependency warnings during build MessageBox coming up with blank message and blank buttons. how pass data between forms Panel like Visual Studio .NET |
|||||||||||||||||||||||