focus 专栏

--专注于.NET Web开发技术
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  ASP.NET 2.0

摘要:关键是要设置打印机的名称 ActiveReport3 rpt = new ActiveReport3(); //设置打印机 rpt.Document.Printer.PrinterSettings.PrinterName = "hp LaserJet 1300"; rpt.Run(); rpt.Document.Print(false,false); 阅读全文

posted @ 2008-01-08 09:21 focus 阅读(607) 评论(0) 推荐(0)

摘要:解决方法:在web.config文件中添加上下面一行 阅读全文

posted @ 2007-01-13 20:55 focus 阅读(695) 评论(0) 推荐(0)

摘要:前面发过两篇关于自适应 iframe 高度的问题方法在公司机器上测试都通过原来以为这样已经没什么问题了不过今天拿到客户那一看,哦靠, iframe 里面居然还是出现了滚动条!!!回来一番折腾我跟踪脚本查看 document.body 的 offsetHeight,clientHeight,scrollHeight 这三个属性值晕,居然三个值都是 1140 (我们的显示器分辨率是 1280 * 10... 阅读全文

posted @ 2006-12-20 15:15 focus 阅读(294) 评论(0) 推荐(0)

摘要:递归方法: private TreeNode GetNode(TreeNode node, string strValue){ if (node.Text == strValue) { return node; } TreeNode targetNode = null; ... 阅读全文

posted @ 2006-12-05 16:12 focus 阅读(441) 评论(0) 推荐(0)