Row*_*haw 20 asp.net outlook internet-explorer crystal-reports-2008
当我们的应用程序中包含Crystal Reports ASP.Net查看器的页面使用Internet Explorer中的"通过电子邮件发送页面"功能时,它会将Outlook中的电子邮件作为附件而不是电子邮件的正文.
使用先前版本的框架(v1.1)和关联的Crystal报表查看器,情况并非如此.鉴于这些旧版本现在不受支持,我想知道是否有任何方法可以"鼓励"Internet Explorer的"通过电子邮件发送页面"功能将我的ASP.Net页面作为正文发送而不是作为附件?
作为参考,查看器的来源很简单:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="GeneralReport.aspx.vb" Inherits="MyApplication.GeneralReportForm"%>
<%@ Register TagPrefix="cr" Namespace="CrystalDecisions.Web" Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title></title>
<meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
<meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="Styles.css" type="text/css" rel="stylesheet">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<div id="contentstart"> </div>
<DIV><CR:CRYSTALREPORTVIEWER id="CrystalReportViewer" runat="server" DisplayToolbar="False" SeparatePages="False"
HasDrillUpButton="False" EnableDrillDown="False" DisplayGroupTree="False" HasSearchButton="False" HasZoomFactorList="False"
HasGotoPageButton="False" Visible="False" Height="50px" Width="350px"></CR:CRYSTALREPORTVIEWER>
</DIV>
<br>
<asp:label id="lblError" runat="server" Width="743px" Font-Size="Larger" ForeColor="Red"></asp:label>
</form>
</body>
</HTML>
Run Code Online (Sandbox Code Playgroud)
在后面的代码中,我们只需:
Dim rpt As New MyReport()
rpt.SetDataSource(ds)
CrystalReportViewer.ReportSource = rpt
CrystalReportViewer.Visible = True
Run Code Online (Sandbox Code Playgroud)
它由协议(文件或 HTTP)和网页内容决定。
您使用“file://”协议访问的网页(例如,本地计算机或局域网上的文件)将作为扩展名为 .htm 的附件发送。如果 HTML 文件在标记前包含较大注释,则使用“http://”协议访问的网页将作为带有 .txt 扩展名的附件发送。
http://support.microsoft.com/kb/304694
| 归档时间: |
|
| 查看次数: |
3246 次 |
| 最近记录: |