谁能告诉我如何使用mvc中的stimulsoft报告发送电子邮件?
当我阅读手册时,我发现了这段代码:
//剃刀:
========
@ Html.Stimulsoft()。StiMvcViewer(
" MvcViewer1",新的StiMvcViewerOptions(){
行动=
{
EmailReport =" EmailReport"
},
工具栏=
{
ShowSendEmailButton = true
}
})
//控制器:
// ===========
public ActionResult EmailReport()
{
StiEmailOptions options = StiMvcViewer.GetEmailOptions();
//从查看器传递,可以检查和调整
// options.AddressTo ="&#34 ;;
// options.Subject ="&#34 ;;
// options.Body ="&#34 ;;
//应该在这里填写
options.AddressFrom =" admin_address@gmail.com" ;;
options.Host =" smtp.gmail.com&#34 ;;
options.Port = 465;
options.UserName =" admin_address@gmail.com" ;;
options.Password =" admin_password&#34 ;;
返回StiMvcViewer.EmailReportResult(options);
}
我试图将此代码映射到visual basic但我无法找到EmailReportResult()方法,我收到错误:
' EmailReportResult'不是' Stimulsoft.Report.Mvc.StiMvcViewer'的成员。