摘要:
引用using iTextSharp.text;using iTextSharp.text.pdf;using iTextSharp;using System.IO;using System.Drawing; //Document:(文档)生成pdf必备的一个对象,生成一个Document示例 Document document = new Document(PageSize.A4, 30, 30, 5, 5); //为该Document创建一个Writer实例: PdfWriter.GetInstance(document, new FileStream("Chap0101.pdf 阅读全文
摘要:
需要添加的命名空间: using System.Xml; 定义几个公共对象: XmlDocument xmldoc ; XmlNode xmlnode ; XmlElement xmlelem ; 1,创建到服务器 同名目录下的xml文件: 方法一: xmldoc = new XmlDocument ( ) ; //加入XML的声明段落 xmlnode = xmldoc.CreateNode ( XmlNodeType.XmlDeclaration , "" , "" ) ; xmldoc.AppendChild ( xmlnode ) ; //加入一个 阅读全文
摘要:
voidMain(){DataTabledt=newDataTable();dt.Columns.Add("flightno");dt.Columns.Add("flightTime",typeof(DateTime));dt.Columns.Add("arrivalTime",typeof(DateTime));dt.Columns.Add("passenger");dt.Rows.Add("AU123",Convert.ToDateTime("2010-12-2012:30&quo 阅读全文
摘要:
var pram = windows.location.search 阅读全文
摘要:
$(function() { overlay_init(); });function overlay_init() { rightOverlay_write() $("#r_overlay").hide();}//在右上角显示加载动画function rightOverlay_write() { $('body').append('<div id="r_overlay" style="z-index:999999;padding:2px 10px;position:fixed !important; positio 阅读全文