Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何在新选项卡上预览PDF格式的Crystal报表而不导出到磁盘_C#_Asp.net_Crystal Reports - Fatal编程技术网

C# 如何在新选项卡上预览PDF格式的Crystal报表而不导出到磁盘

C# 如何在新选项卡上预览PDF格式的Crystal报表而不导出到磁盘,c#,asp.net,crystal-reports,C#,Asp.net,Crystal Reports,我正在一个网站上工作,现在生成的收据直接获取指定路径上的导出 这是Crystal Report ExportToDisk的工作代码 在存储PDF之前,我想预览Crystal Report,所以那时我要么直接打印收据,要么下载收据 可能吗?如果是,那么我如何实现它 我在谷歌上搜索了一下,但没有找到预期的结果 这可能是一个重复的问题。。。如果是,请建议 谢谢如果您使用的是web表单,请创建一个新表单/控件,它的唯一内容应该是CrystalDecisions.web程序集注册和此 <CR:Cry

我正在一个网站上工作,现在生成的收据直接获取指定路径上的导出

这是Crystal Report ExportToDisk的工作代码

在存储PDF之前,我想预览Crystal Report,所以那时我要么直接打印收据,要么下载收据

可能吗?如果是,那么我如何实现它

我在谷歌上搜索了一下,但没有找到预期的结果

这可能是一个重复的问题。。。如果是,请建议


谢谢

如果您使用的是web表单,请创建一个新表单/控件,它的唯一内容应该是
CrystalDecisions.web
程序集注册和此

<CR:CrystalReportViewer ID="CRep" runat="server" AutoDataBind="False" Height="600px"  Width="900px" HasCrystalLogo="False" HasDrillUpButton="False" HasSearchButton="False" HasToggleGroupTreeButton="False" /> 
<CR:CrystalReportViewer ID="CRep" runat="server" AutoDataBind="False" Height="600px"  Width="900px" HasCrystalLogo="False" HasDrillUpButton="False" HasSearchButton="False" HasToggleGroupTreeButton="False" /> 
ExportFormatType type = ExportFormatType.PortableDocFormat;
crystalReport.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, false, "Report name");`