• <legend id='WnqzH'><style id='WnqzH'><dir id='WnqzH'><q id='WnqzH'></q></dir></style></legend>

    1. <small id='WnqzH'></small><noframes id='WnqzH'>

        <bdo id='WnqzH'></bdo><ul id='WnqzH'></ul>
      <i id='WnqzH'><tr id='WnqzH'><dt id='WnqzH'><q id='WnqzH'><span id='WnqzH'><b id='WnqzH'><form id='WnqzH'><ins id='WnqzH'></ins><ul id='WnqzH'></ul><sub id='WnqzH'></sub></form><legend id='WnqzH'></legend><bdo id='WnqzH'><pre id='WnqzH'><center id='WnqzH'></center></pre></bdo></b><th id='WnqzH'></th></span></q></dt></tr></i><div id='WnqzH'><tfoot id='WnqzH'></tfoot><dl id='WnqzH'><fieldset id='WnqzH'></fieldset></dl></div>
        <tfoot id='WnqzH'></tfoot>

      1. 在asp net中以编程方式将水晶报告导出为没有临时文件的pdf

        export crystal report to pdf without temp file programmatically in asp net(在asp net中以编程方式将水晶报告导出为没有临时文件的pdf)

          • <small id='NdQIP'></small><noframes id='NdQIP'>

              <tbody id='NdQIP'></tbody>
            <tfoot id='NdQIP'></tfoot>

              • <legend id='NdQIP'><style id='NdQIP'><dir id='NdQIP'><q id='NdQIP'></q></dir></style></legend>

                  <bdo id='NdQIP'></bdo><ul id='NdQIP'></ul>
                  <i id='NdQIP'><tr id='NdQIP'><dt id='NdQIP'><q id='NdQIP'><span id='NdQIP'><b id='NdQIP'><form id='NdQIP'><ins id='NdQIP'></ins><ul id='NdQIP'></ul><sub id='NdQIP'></sub></form><legend id='NdQIP'></legend><bdo id='NdQIP'><pre id='NdQIP'><center id='NdQIP'></center></pre></bdo></b><th id='NdQIP'></th></span></q></dt></tr></i><div id='NdQIP'><tfoot id='NdQIP'></tfoot><dl id='NdQIP'><fieldset id='NdQIP'></fieldset></dl></div>
                  本文介绍了在asp net中以编程方式将水晶报告导出为没有临时文件的pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何在没有临时文件的情况下在 asp 网络中以编程方式将水晶报告导出为 pdf 从服务器到最终用户.如果我们删除临时文件夹的写访问权限,则会导致错误.我们的管理员不授予访问权限.是否可以为最终用户将水晶报告导出为 pdf 的任何选项.请提出建议.

                  how to export crystal report to pdf without temp file programmatically in asp net from server to end user. If we remove write access of temp folder , then it will cause error.Our admin not giving access to it.Is that any option to export crystal report to pdf for end user. Please suggest.

                          reportDocument.Load(this.MapPath("xyz.rpt"));
                          reportDocument.Database.Tables[0].SetDataSource(dsReport.Tables[0]);           
                          rptviewer.ReportSource = Salary_reportDocument;
                          rptviewer.Visible = true;
                          rptviewer.DataBind();
                          reportDocument.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Response, true, "XYZReport");
                  

                  推荐答案

                  像这样的

                   {
                          ExportOptions CrExportOptions ;
                          DiskFileDestinationOptions CrDiskFileDestinationOptions = new DiskFileDestinationOptions();
                          PdfRtfWordFormatOptions CrFormatTypeOptions = new PdfRtfWordFormatOptions();
                          CrDiskFileDestinationOptions.DiskFileName = "c:\csharp.net-informations.pdf";
                          CrExportOptions = cryRpt.ExportOptions;
                          {
                              CrExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
                              CrExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
                              CrExportOptions.DestinationOptions = CrDiskFileDestinationOptions;
                              CrExportOptions.FormatOptions = CrFormatTypeOptions;
                          }
                          cryRpt.Export();
                      }
                      catch (Exception ex)
                      {
                          MessageBox.Show(ex.ToString());
                      }
                  

                  这篇关于在asp net中以编程方式将水晶报告导出为没有临时文件的pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Migrate html helpers to ASP.NET Core(将 html 帮助程序迁移到 ASP.NET Core)
                  Conditional validation in MVC.NET Core (RequiredIf)(MVC.NET Core 中的条件验证(RequiredIf))
                  Is it possible to serve static files from outside the wwwroot folder?(是否可以从 wwwroot 文件夹外部提供静态文件?)
                  Working with multiple resultset in .net core(在 .net 核心中使用多个结果集)
                  Where all types for http headers gone in ASP.NET 5?(ASP.NET 5 中所有类型的 http 标头都去了哪里?)
                  Failed to Authenticate HTTPS connection when attempting GET from WebAPI(尝试从 WebAPI 获取时无法验证 HTTPS 连接)

                    <legend id='m5FhJ'><style id='m5FhJ'><dir id='m5FhJ'><q id='m5FhJ'></q></dir></style></legend>

                      <i id='m5FhJ'><tr id='m5FhJ'><dt id='m5FhJ'><q id='m5FhJ'><span id='m5FhJ'><b id='m5FhJ'><form id='m5FhJ'><ins id='m5FhJ'></ins><ul id='m5FhJ'></ul><sub id='m5FhJ'></sub></form><legend id='m5FhJ'></legend><bdo id='m5FhJ'><pre id='m5FhJ'><center id='m5FhJ'></center></pre></bdo></b><th id='m5FhJ'></th></span></q></dt></tr></i><div id='m5FhJ'><tfoot id='m5FhJ'></tfoot><dl id='m5FhJ'><fieldset id='m5FhJ'></fieldset></dl></div>
                    1. <tfoot id='m5FhJ'></tfoot>
                        <bdo id='m5FhJ'></bdo><ul id='m5FhJ'></ul>

                              <tbody id='m5FhJ'></tbody>

                          • <small id='m5FhJ'></small><noframes id='m5FhJ'>