using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.Data;
using System.Drawing;
using System.Windows.Forms.PrintDialog;
using System.Windows.Forms;using JSJD.Data.DbProvider.Tender;
using JSJD.Common;
using JSJD.Data;
using JSJD.Web.Common;
using System.Drawing.Printing;
using System.IO;
namespace JSJD.Web.Manage.Module.TenderManage
以上是引用的命名空间。             PrintDialog PrintDialog1 = new PrintDialog();
            //创建一个PrintDialog的实例。
            PrintDialog1.AllowSomePages = true;
            PrintDialog1.Document = docToPrint;那些属性点不出的,而且PrintDialog 没变色。
创建其他实例 可以"."快捷  出他的所有属性