We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Private Sub MailReport(report As Telerik.Reporting.Report, from As String, [to] As String, subject As String, body As String) Dim reportProcessor As New ReportProcessor() Dim result As RenderingResult = reportProcessor.RenderReport("PDF", report, Nothing) Dim ms As New MemoryStream(result.DocumentBytes) ms.Position = 0 Dim attachment As New Attachment(ms, report.Name + ".pdf") Dim msg As New MailMessage(from, [to], subject, body) msg.Attachments.Add(attachment) 'smtp host is the name or IP of the host computer used for sending the email Dim smtpHost As String = "255.255.255.0" Dim client As New SmtpClient(smtpHost) client.Send(msg) End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|vb.net 'Newtonsoft' is not declared. It may be inaccessible due to its protection level.||5||144|
|Create simple VB.net Add-in for Excel in Office 365||2||61|
|reading an excel file vb.net||2||47|
|Datagriview cell not show all data||4||12|
Join the community of 500,000 technology professionals and ask your questions.