⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imagesamplepage.aspx.cs

📁 在网页上显示pdf文件的类库,可以将pdf文件显示的网页上面
💻 CS
字号:
using Root.Reports;
using ReportSamples;
using System;

// Creation date: 21.06.2004
// Checked: 08.11.2004
// Author: Otto Mayer (mot@root.ch)
// Version: 1.03

// Report.NET copyright 2002-2004 root-software ag, B黵glen Switzerland - Otto Mayer, Stefan Spirig, all rights reserved
// This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation, version 2.1 of the License.
// This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You
// should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA www.opensource.org/licenses/lgpl-license.html

namespace ReportSamplesASP {
  /// <summary>Image Sample Page: The PDF document will be created with code-behind technology in ImageSamplePage.aspx.cs.</summary>
  public class ImageSamplePage : System.Web.UI.Page {
    /// <summary>Load Event: Occurs when the page will be loaded.</summary>
    /// <param name="ea">Event argument</param>
    /// <remarks>
    /// This method calls <see cref="Root.Reports.RT.ResponsePDF">RT.ResponsePDF</see> that will create the PDF response stream.
    /// </remarks>
    override protected void OnLoad(EventArgs ea) {
      base.OnLoad(ea);
      if (!IsPostBack) {
        RT.ResponsePDF(new ImageSample(), this);
      }
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -