• <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

        时间:2023-07-10

          • <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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:尝试使用 VB6 表单调用 OLEDB 提供程序时应用程序消失 下一篇:来自字节数组的水晶报表图像不打印

                  相关文章

                    <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>

                    2. <small id='m5FhJ'></small><noframes id='m5FhJ'>