using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Text; using System.Drawing; using System.Drawing.Printing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using System.Data.SqlClient; using System.Security.Cryptography; using DataDynamics.ActiveReports; using ArExports = DataDynamics.ActiveReports.Export; using DataDynamics.ActiveReports.Export.Pdf; using System .IO ; using LackIS.components; namespace LackIS { /// <summary> /// LackDetialListPrint の概要の説明です。 /// </summary> public class LackDetialListPrint : System.Web.UI.Page { #region 変量 protected ArExports.Pdf.PdfExport pdf=new PdfExport(); protected ActiveReport rpt; //protected string name="欠品明細リスト印刷.PDF"; #endregion private void Page_Load(object sender, System.EventArgs e) { PrintModule rpt1=new PrintModule(); rpt1.PageSettings.Margins.Left =0.2f; rpt1.PageSettings.Margins.Top=0.15f; rpt1.PageSettings.Margins.Right =0.15f; rpt1.PageSettings.Margins.Bottom=0.05f; rpt1.PageSettings .PaperKind =PaperKind .A4 ;//用紙タイプを設定する rpt1.PageSettings .Orientation =DataDynamics.ActiveReports .Document .PageOrientation.Landscape; rpt1.SubReport1.Report=LineItemcount; if(dt!=null) { if(dt.Rows .Count <=0) { Page.RegisterStartupScript("1","<script>alert('ご指定の抽出条件でデータがありません。')</script>"); } else { Response.ContentType = "application/pdf"; Response.AddHeader("content-disposition","attachment; filename=LackList.PDF"); System.IO.MemoryStream memStream = new System.IO.MemoryStream(); rpt1.DataSource = dt ; rpt1.TextBox3.Text=storenm;//店名 rpt1.TextBox4.Text=datatype;//調査時間 if(dt.Rows.Count%15==0) con=dt.Rows.Count/15; else con=dt.Rows.Count/15+1; int bb=dt.Rows.Count-dt.Rows.Count/15*15; if((bb+this.PdfList.Rows.Count)>14) { for(int i=0;i<14-bb;i++) { DataRow dtNew = dt.NewRow(); dtNew[0]=0; dtNew[1]=""; dtNew[2]=""; dtNew[3]=""; dtNew[4]=""; dtNew[5]=""; dtNew[6]=""; //dtNew[7]=1000; //dtNew[8]=1000; //dtNew[9]=0; dt.Rows.Add(dtNew); } } rpt1.TextBox6.Text=this.con.ToString(); rpt1.Run(); pdf.Export(rpt1.Document, memStream); Response.BinaryWrite(memStream.ToArray()); Response.End(); } } else Page.RegisterStartupScript("1","<script>logerror()</script>"); } else//週別、月別 { PrintModuleMW rpt2=new PrintModuleMW(); rpt2.PageSettings.Margins.Left =0.2f; rpt2.PageSettings.Margins.Top=0.15f; rpt2.PageSettings.Margins.Right =0.15f; rpt2.PageSettings.Margins.Bottom=0.1f; rpt2.PageSettings .PaperKind =PaperKind .A4 ;//用紙タイプを設定する rpt2.PageSettings .Orientation =DataDynamics.ActiveReports .Document .PageOrientation.Landscape; rpt2.SubReport1.Report=LineItemcount; if(dt!=null) { if(dt.Rows .Count <=0) { Page.RegisterStartupScript("2","<script>alert('ご指定の抽出条件でデータがありません。')</script>"); } else { Response.ContentType = "application/pdf"; Response.AddHeader("content-disposition","attachment; filename=LackList.PDF"); System.IO.MemoryStream memStream = new System.IO.MemoryStream(); if(dt.Rows.Count%15==0) con=dt.Rows.Count/15; else con=dt.Rows.Count/15+1; int bb=dt.Rows.Count-dt.Rows.Count/15*15; if((bb+this.PdfList.Rows.Count)>14) { for(int i=0;i<14-bb;i++) { DataRow dtNew = dt.NewRow(); dtNew[0]=0; dtNew[1]=""; dtNew[2]=""; dtNew[3]=""; dtNew[4]=""; dtNew[5]=""; dtNew[6]=""; //dtNew[7]=1000; dtNew[8]=0; dt.Rows.Add(dtNew); } } rpt2.DataSource = dt ; rpt2.DataMember = dt.TableName; rpt2.TextBox3.Text=storenm;//店名 rpt2.TextBox4.Text=datatype;//調査時間 rpt2.TextBox6.Text=this.con.ToString(); rpt2.Run(); pdf.Export(rpt2.Document, memStream); Response.BinaryWrite(memStream.ToArray()); Response.End(); } } else Page.RegisterStartupScript("1","<script>logerror()</script>"); } #endregion }
发表评论
-
转载:jquery webservice 跨域
2013-01-28 16:06 1254现在的JQuery中$.ajax方法支持跨域读取json数 ... -
excel 导入导出
2011-10-27 10:32 834excel 导入导出 -
仿google 日历
2011-08-24 23:10 866仿google 日历仿google 日历仿google 日历仿 ... -
DataTime.ToString("xx")
2011-08-12 13:57 1150//2008年4月24日 System.DateTi ... -
ASP.Net 文件上传大小限制IIS7
2011-08-11 09:41 2657ASP.Net 文件上传大小限制解决方案修改IIS7/ ... -
Request
2011-07-12 17:08 930Request.params、Request、Request. ... -
ASP.NET MVC 第五回 ActionResult的其它返回值
2011-06-21 15:38 1800ASP.NET MVC 第五回 ActionResult的 ... -
dbhelper table扩展
2011-06-15 11:00 691dbhelper table扩展 -
C#扩展对象的方法,this关键字
2011-06-15 10:58 1200namespace ConsoleApplication2 ... -
asp.net mvc2.0的Areas多级文件夹问题
2011-06-15 10:53 1319此文只写给遇到同样问题的人看的,因此写得会有点短 ... -
WCF实例(基于TCP协议的配置)
2011-01-10 17:52 1081WCF实例(基于TCP协议的配置) 启动ServerHost ... -
反射机制
2010-06-24 09:39 827反射的定义:审查元 ... -
委托线程
2010-06-24 09:37 767本系列教程主要包括如下内容:1. BeginInvoke ... -
读写图片
2008-11-12 17:33 887<%@ Import Namespace="S ... -
asp.net 自定义web控件
2008-11-11 15:34 832<%@ Register TagPrefix=&quo ... -
xml read -write -update -remove
2008-08-19 14:05 988<?xml version="1.0" ... -
read file directory
2008-08-13 09:31 771using System; using System.Coll ... -
web。config
2008-06-27 10:41 762一、认识Web.config文件 网管下载dl.bitscn. ... -
Application,Session,Cookie,ViewState,Cache
2008-06-26 18:20 1590Application 1. Applicat ... -
构造数据源
2008-06-25 13:23 822DataTable dgTable2=new DataTabl ...
相关推荐
允许您动态的建立和修改报表Report Creation API提供了完整的运行时访问报表对象和成员功能。最终用户报表设计器终端用户设计器为您提供了向您应用程序中加入设计器的功能,同时提供了终端用户报表编辑功能。控件的...
+ [enterprise] added property "Scheduler" - "Active" in server configuration - enable of scheduler + [enterprise] added property "Scheduler" - "Debug" in server configuration - enable writing of ...
ActiveReports includes Adobe PDF export with advanced encryption and international font support, Microsoft Excel export, and Rich Text Format (RTF) export. The extensive API allows fine control over ...
Current version ---------------------------- ...- Fixed active cell for XLS with several sheets in the BIFF8 export - Fixed UTF-8 support for Geodata from DBF * Improved FireDAC DB components
with some report-oriented methods (including complex rtf with `TGDIPages.AppendRichEdit`) - for basic reporting features, it is pretty much the solution. The 2nd and 3rd ways are preferred, for most...
基于分布式抽样的非近视主动信息采集规划技术报告_Technical Report Distributed Sampling-based Planning for Non-Myopic Active Information Gathering.pdf
this report is to provide an overview of active content, its technological underpinnings, and suitable security measures, so that the reader understands the associated security risks and can make an...
ActiveReports includes Adobe PDF export with advanced encryption and international font support, Microsoft Excel export, and Rich Text Format (RTF) export. The extensive API allows fine control over ...
active report 报表开发实列.pdf
DataDynamics ActiveReports ActiveX... Net、PDF文档等。 与Visual Studio用户界面和环境轻松无缝集成。 它拥有所有过程或工作流程中可能需要的工具和功能。 为了更方便,它支持拖放。 您还可以下载Atozed CrossTalk。
ActiveReports includes Adobe PDF export with advanced encryption and international font support, Microsoft Excel export, and Rich Text Format (RTF) export. The extensive API allows fine control over ...
ActiveReports includes Adobe PDF export with advanced encryption and international font support, Microsoft Excel export, and Rich Text Format (RTF) export. The extensive API allows fine control over ...
ActiveReports includes Adobe PDF export with advanced encryption and international font support, Microsoft Excel export, and Rich Text Format (RTF) export. The extensive API allows fine control over ...
ActiveReports includes Adobe PDF export with advanced encryption and international font support, Microsoft Excel export, and Rich Text Format (RTF) export. The extensive API allows fine control over ...
ActiveReports includes Adobe PDF export with advanced encryption and international font support, Microsoft Excel export, and Rich Text Format (RTF) export. The extensive API allows fine control over ...
- Enhanced the mechanism to report memory hardware errors in the Memory torture test. Release 5.3 build 1033 WIN32 release 1 October 2008 - Changes to correct a BurnInTest crash problem on some ...
通过这个可以在新建标签中下载所需要的PDF文件,先需要将代码生成的Report引用进去,才能下载。具体的代码可以参照PDF文章。
- if flag wpDontAddExternalFontLeading is active in property FormatOptionsEx the text will be formatted more like WPTools4/MS-Word. You can alternatively set global variable ...
Abstract Artificial intelligence (AI) researchers have been developing and refining large language models (LLMs) ...of GPT-4, when it was still in active development by OpenAI. We contend t
DISCLAIMER: This documentation is always under active development and as such there may be mistakes and omissions-watch out for these and please report any you find to the developer's mailing list....