水晶报表怎么直接打印啊,??急。。。

hxhyuethoi 2005-12-07 05:56:22
水晶报表怎么直接打印啊,??急。。。
我现在是要下载道客户端预览,再打印,能不能直接打印啊
...全文
149 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
nameldw 2005-12-13
  • 打赏
  • 举报
回复
printmode = activex 这个只有CR 10 版本的才有
要不就只能用JS了 windows.print()
woainin 2005-12-11
  • 打赏
  • 举报
回复
设置printmode 为activex
ok?
c11_11_11 2005-12-09
  • 打赏
  • 举报
回复
private void PrintPDF()
{
// DEFINE CRYSTAL REPORTS VARIABLES
//ReportDocument crReportDocument = new ReportDocument();
ExportOptions crExportOptions = new ExportOptions();
DiskFileDestinationOptions crDiskFileDestinationOptions = new DiskFileDestinationOptions();
string sFileName = Request.PhysicalApplicationPath + "Exported\\sample.pdf";

try
{
// SET CRYSTAL REPORT VARIABLES
crDiskFileDestinationOptions.DiskFileName = sFileName;
crReportDocument.ExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
crReportDocument.ExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
crReportDocument.ExportOptions.DestinationOptions = crDiskFileDestinationOptions;
crReportDocument.Export();

// WRITE SAMPLE.PDF FILE TO CLIENTS BROWSER
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType = "application/pdf";
Response.WriteFile(sFileName);
Response.Flush();
Response.Close();
}
catch
{
//客户端未安装pdf viewer,抛出错误
}
finally
{
//DELETE THE EXPORTED FILE FROM DISK
System.IO.File.Delete(sFileName);
}

}
yangyangyy 2005-12-08
  • 打赏
  • 举报
回复
www.wave12.com
h2y3641 2005-12-07
  • 打赏
  • 举报
回复
viewcrv.printreptor

4,819

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 图表区
社区管理员
  • 图表区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧