﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-&lt;font style="font:20px 'Segui'"&gt;Program is My Favor&lt;/font&gt;-最新评论</title><link>http://www.cnblogs.com/drsniper/CommentsRSS.aspx</link><description>&lt;font style="font:12px 微软雅黑,宋体"&gt;[去留无意，望天上云卷云舒；宠辱不惊，看庭前花开花落]&lt;/font&gt;</description><language>zh-cn</language><pubDate>Wed, 02 Nov 2011 06:30:10 GMT</pubDate><lastBuildDate>Wed, 02 Nov 2011 06:30:10 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: [分享]关于水晶报表导出到PDF格式的一个注意事项</title><link>http://www.cnblogs.com/drsniper/archive/2009/03/11/1219336.html#1473798</link><dc:creator>Arshas</dc:creator><author>Arshas</author><pubDate>Wed, 11 Mar 2009 03:31:32 GMT</pubDate><guid>http://www.cnblogs.com/drsniper/archive/2009/03/11/1219336.html#1473798</guid><description><![CDATA[之前有一个页面横向打印没有问题，后来加了一个报表也需要横向打印，却不行，我页面设置什么的都和那个一样，我在本地编译之后运行，查看导出的PDF为横向，但是发布到服务器上之后，新添加的找个页面导出的PDF变成纵向了，之前的那个还是正常。<br/>DataTable dt = ClassDatabaseConn.getrs(sql.ToString()).Tables[0];<br/>SFWMS_MAN_TRANDEPOT_RPT oRpt = new SFWMS_MAN_TRANDEPOT_RPT();<br/><br/>oRpt.SetDataSource(dt);<br/><br/>//---添加横向A4打印设置<br/>oRpt.PrintOptions.PaperSize = PaperSize.PaperA4;<br/>oRpt.PrintOptions.PaperOrientation = PaperOrientation.Landscape;<br/><br/>DiskFileDestinationOptions crDiskFileDestinationOptions = new DiskFileDestinationOptions();<br/>string path = Request.ServerVariables[&quot;APPL_PHYSICAL_PATH&quot;];<br/>path = path.Replace(&quot;\\&quot;, &quot;\\&quot;);<br/>string Fname1 = &quot;jh&quot; + System.DateTime.Now.ToString(&quot;yyyyMMddHHmmssfff&quot;) + &quot;.pdf&quot;;<br/>string Fname = path + &quot;temp\\report\\&quot; + Fname1;<br/><br/>crDiskFileDestinationOptions.DiskFileName = Fname;<br/>oRpt.ExportOptions.DestinationOptions = crDiskFileDestinationOptions;<br/>oRpt.ExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;<br/>oRpt.ExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;<br/>oRpt.Export();<br/>string strUrl = &quot;window.open('../../temp/report/&quot; + Fname1 + &quot;','report_Print','top=0,left=0,height=600,width=800,resizable=1')&quot;;<br/>Response.Write(&quot;&lt;script language='JavaScript'&gt;&quot; + &quot;\n&quot;);<br/>Response.Write(strUrl);<br/>Response.Write(&quot;&lt;/script&gt;&quot; + &quot;\n&quot;);<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/drsniper/" target="_blank">Arshas</a> 2009-03-11 11:31 <a href="http://www.cnblogs.com/drsniper/archive/2009/03/11/1219336.html#1473798#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: [分享]关于水晶报表导出到PDF格式的一个注意事项</title><link>http://www.cnblogs.com/drsniper/archive/2009/03/11/1219336.html#1473782</link><dc:creator>Arshas</dc:creator><author>Arshas</author><pubDate>Wed, 11 Mar 2009 03:24:00 GMT</pubDate><guid>http://www.cnblogs.com/drsniper/archive/2009/03/11/1219336.html#1473782</guid><description><![CDATA[我 QQ6552098<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/drsniper/" target="_blank">Arshas</a> 2009-03-11 11:24 <a href="http://www.cnblogs.com/drsniper/archive/2009/03/11/1219336.html#1473782#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: [分享]关于水晶报表导出到PDF格式的一个注意事项</title><link>http://www.cnblogs.com/drsniper/archive/2009/03/11/1219336.html#1473697</link><dc:creator>drsniper</dc:creator><author>drsniper</author><pubDate>Wed, 11 Mar 2009 02:29:53 GMT</pubDate><guid>http://www.cnblogs.com/drsniper/archive/2009/03/11/1219336.html#1473697</guid><description><![CDATA[@Arshas<br/>--引用--------------------------------------------------<br/>Arshas: 请教你一个问题，我在本地设置了A4横向打印，也加上了你的两句代码，但是一发布到服务器后，在运行，纸张仍然是纵向打印，找个问题困扰我很久了，也不知道是怎么回事，我也装了同样的打印机驱动了<br/>--------------------------------------------------------<br/>能否让我看看你的代码？<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/drsniper/" target="_blank">drsniper</a> 2009-03-11 10:29 <a href="http://www.cnblogs.com/drsniper/archive/2009/03/11/1219336.html#1473697#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: [分享]关于水晶报表导出到PDF格式的一个注意事项</title><link>http://www.cnblogs.com/drsniper/archive/2009/03/11/1219336.html#1473678</link><dc:creator>Arshas</dc:creator><author>Arshas</author><pubDate>Wed, 11 Mar 2009 02:13:09 GMT</pubDate><guid>http://www.cnblogs.com/drsniper/archive/2009/03/11/1219336.html#1473678</guid><description><![CDATA[请教你一个问题，我在本地设置了A4横向打印，也加上了你的两句代码，但是一发布到服务器后，在运行，纸张仍然是纵向打印，找个问题困扰我很久了，也不知道是怎么回事，我也装了同样的打印机驱动了<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/drsniper/" target="_blank">Arshas</a> 2009-03-11 10:13 <a href="http://www.cnblogs.com/drsniper/archive/2009/03/11/1219336.html#1473678#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: [转帖]一民工在火车上的遭遇（笑过后全是泪水)</title><link>http://www.cnblogs.com/drsniper/archive/2008/10/15/1311341.html#1341326</link><dc:creator>ttes</dc:creator><author>ttes</author><pubDate>Wed, 15 Oct 2008 05:07:54 GMT</pubDate><guid>http://www.cnblogs.com/drsniper/archive/2008/10/15/1311341.html#1341326</guid><description><![CDATA[看过，不错<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/drsniper/" target="_blank">ttes</a> 2008-10-15 13:07 <a href="http://www.cnblogs.com/drsniper/archive/2008/10/15/1311341.html#1341326#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 哎呀！实在是巨烦“驱动之家”这个网站！！</title><link>http://www.cnblogs.com/drsniper/archive/2008/01/20/298758.html#1046258</link><dc:creator>同感</dc:creator><author>同感</author><pubDate>Sun, 20 Jan 2008 07:07:00 GMT</pubDate><guid>http://www.cnblogs.com/drsniper/archive/2008/01/20/298758.html#1046258</guid><description><![CDATA[广告太多，速度太慢，但名气却很大<br>这些驱动本来就是厂家免费供用户下载的，他拿来赚钱也就罢了，但也应该适可而止吧。<br>搜索到驱动，点击进入，老半天才打开个页面，一看，没有下载连接，还得点一次才行，又等老半天才加载完带连接的页面。哎，难道不能把介绍和下载做在一个页面里吗？简直是在强迫我们看破广告吗！<br>如果现在谁出面建立一个“清洁”的驱动程序下载网站，绝对能把驱动之家弄垮台。不是不能做广告，可以少一些，或者多采用文字连接广告，页面简洁一些，结构紧凑一些，速度快一些。<br>像GOOGLE一样，名气大了，就是用文字连接做广告，那商家们还是照样趋之若骛，挣钱大大地，而且还照顾了用户的感受。多好啊！<br>像驱动之家这样的垃圾网站，就让它见鬼去吧。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/drsniper/" target="_blank">同感</a> 2008-01-20 15:07 <a href="http://www.cnblogs.com/drsniper/archive/2008/01/20/298758.html#1046258#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: [转]让Web页面中的按钮点击后隐藏 </title><link>http://www.cnblogs.com/drsniper/archive/2007/11/22/240891.html#968463</link><dc:creator>qwewqe</dc:creator><author>qwewqe</author><pubDate>Thu, 22 Nov 2007 05:13:00 GMT</pubDate><guid>http://www.cnblogs.com/drsniper/archive/2007/11/22/240891.html#968463</guid><description><![CDATA[wqeqwewq<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/drsniper/" target="_blank">qwewqe</a> 2007-11-22 13:13 <a href="http://www.cnblogs.com/drsniper/archive/2007/11/22/240891.html#968463#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 哎呀！实在是巨烦“驱动之家”这个网站！！</title><link>http://www.cnblogs.com/drsniper/archive/2006/11/27/298758.html#573799</link><dc:creator>过路人</dc:creator><author>过路人</author><pubDate>Mon, 27 Nov 2006 05:07:00 GMT</pubDate><guid>http://www.cnblogs.com/drsniper/archive/2006/11/27/298758.html#573799</guid><description><![CDATA[路过<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/drsniper/" target="_blank">过路人</a> 2006-11-27 13:07 <a href="http://www.cnblogs.com/drsniper/archive/2006/11/27/298758.html#573799#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 对VS2005的TreeView控件的困惑(或者是建议吧) </title><link>http://www.cnblogs.com/drsniper/archive/2006/10/16/295950.html#530579</link><dc:creator>客人</dc:creator><author>客人</author><pubDate>Mon, 16 Oct 2006 10:09:00 GMT</pubDate><guid>http://www.cnblogs.com/drsniper/archive/2006/10/16/295950.html#530579</guid><description><![CDATA[aspx:<br>        &lt;asp:TreeView ID=&quot;TreeView1&quot; runat=&quot;server&quot; DataSourceID=&quot;SiteMapDataSource2&quot;&gt;<br>        &lt;/asp:TreeView&gt;<br>        &lt;asp:SiteMapDataSource ID=&quot;SiteMapDataSource2&quot; runat=&quot;server&quot; /&gt;<br>XML:<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;<br>&lt;siteMap&gt;<br>  &lt;siteMapNode title=&quot;Home&quot;&gt;<br>    &lt;siteMapNode title=&quot;Products&quot;&gt;<br>      &lt;siteMapNode title=&quot;Hardware&quot; url=&quot;Default.aspx?node=hardware&quot;&gt;<br>        &lt;siteMapNode title=&quot;Mouse&quot;/&gt;<br>        &lt;siteMapNode title=&quot;Keyboard&quot;/&gt;<br>        &lt;siteMapNode title=&quot;NetCard&quot;/&gt;<br>        &lt;siteMapNode title=&quot;Monitor&quot;/&gt;<br>        &lt;siteMapNode title=&quot;PC&quot;/&gt;<br>      &lt;/siteMapNode&gt;<br>      &lt;siteMapNode title=&quot;Software&quot; url=&quot;Default.aspx?node=software&quot;&gt;<br>        &lt;siteMapNode title=&quot;Spreadsheet&quot;/&gt;<br>        &lt;siteMapNode title=&quot;Word Processor&quot;/&gt;<br>        &lt;siteMapNode title=&quot;Presentation&quot;/&gt;<br>        &lt;siteMapNode title=&quot;Mail&quot;/&gt;<br>        &lt;siteMapNode title=&quot;Games&quot;/&gt;<br>      &lt;/siteMapNode&gt;<br>      &lt;siteMapNode title=&quot;Books&quot; url=&quot;Default.aspx?node=books&quot;&gt;<br>        &lt;siteMapNode title=&quot;Programming&quot;/&gt;<br>        &lt;siteMapNode title=&quot;Debugging&quot;/&gt;<br>        &lt;siteMapNode title=&quot;Testing&quot;/&gt;<br>        &lt;siteMapNode title=&quot;Web Apps&quot;/&gt;<br>        &lt;siteMapNode title=&quot;WinForm Apps&quot;/&gt;<br>      &lt;/siteMapNode&gt;<br>    &lt;/siteMapNode&gt;<br>    &lt;siteMapNode title=&quot;Services&quot;&gt;<br>      &lt;siteMapNode title=&quot;Consulting&quot; url=&quot;Default.aspx?node=consulting&quot;&gt;<br>        &lt;siteMapNode title=&quot;Processes&quot;/&gt;<br>        &lt;siteMapNode title=&quot;Management&quot;/&gt;<br>        &lt;siteMapNode title=&quot;Recruiting&quot;/&gt;<br>      &lt;/siteMapNode&gt;<br>      &lt;siteMapNode title=&quot;Development&quot; url=&quot;Default.aspx?node=development&quot;&gt;<br>        &lt;siteMapNode title=&quot;Web Apps&quot;/&gt;<br>        &lt;siteMapNode title=&quot;Enterprise Apps&quot;/&gt;<br>        &lt;siteMapNode title=&quot;Database&quot;/&gt;<br>      &lt;/siteMapNode&gt;<br>    &lt;/siteMapNode&gt;<br>    &lt;siteMapNode title=&quot;Support&quot;&gt;<br>      &lt;siteMapNode title=&quot;Drivers&quot; url=&quot;Default.aspx?node=drivers&quot;&gt;<br>        &lt;siteMapNode title=&quot;Audio&quot;/&gt;<br>        &lt;siteMapNode title=&quot;Network&quot;/&gt;<br>        &lt;siteMapNode title=&quot;Printer&quot;/&gt;<br>        &lt;siteMapNode title=&quot;Modem&quot;/&gt;<br>      &lt;/siteMapNode&gt;<br>      &lt;siteMapNode title=&quot;Manuals&quot; url=&quot;Default.aspx?node=manuals&quot;&gt;<br>        &lt;siteMapNode title=&quot;Applications&quot;/&gt;<br>        &lt;siteMapNode title=&quot;Troubleshooting&quot;/&gt;<br>        &lt;siteMapNode title=&quot;Installation&quot;/&gt;<br>        &lt;siteMapNode title=&quot;Internet&quot;/&gt;<br>      &lt;/siteMapNode&gt;<br>      &lt;siteMapNode title=&quot;Updates&quot; url=&quot;Default.aspx?node=updates&quot;&gt;<br>        &lt;siteMapNode title=&quot;Release 1&quot;/&gt;<br>        &lt;siteMapNode title=&quot;Game Package&quot;/&gt;<br>      &lt;/siteMapNode&gt;<br>    &lt;/siteMapNode&gt;<br>  &lt;/siteMapNode&gt;<br>&lt;/siteMap&gt;<br><br>帮助里的<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/drsniper/" target="_blank">客人</a> 2006-10-16 18:09 <a href="http://www.cnblogs.com/drsniper/archive/2006/10/16/295950.html#530579#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 哎呀！实在是巨烦“驱动之家”这个网站！！</title><link>http://www.cnblogs.com/drsniper/archive/2006/08/05/298758.html#468650</link><dc:creator>valen</dc:creator><author>valen</author><pubDate>Sat, 05 Aug 2006 07:17:00 GMT</pubDate><guid>http://www.cnblogs.com/drsniper/archive/2006/08/05/298758.html#468650</guid><description><![CDATA[就是，慢得出奇！用maxthon的广告过滤全把它过滤<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/drsniper/" target="_blank">valen</a> 2006-08-05 15:17 <a href="http://www.cnblogs.com/drsniper/archive/2006/08/05/298758.html#468650#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>
