Arshas 2009-03-11 11:31
之前有一个页面横向打印没有问题,后来加了一个报表也需要横向打印,却不行,我页面设置什么的都和那个一样,我在本地编译之后运行,查看导出的PDF为横向,但是发布到服务器上之后,新添加的找个页面导出的PDF变成纵向了,之前的那个还是正常。
DataTable dt = ClassDatabaseConn.getrs(sql.ToString()).Tables[0];
SFWMS_MAN_TRANDEPOT_RPT oRpt = new SFWMS_MAN_TRANDEPOT_RPT();
oRpt.SetDataSource(dt);
//---添加横向A4打印设置
oRpt.PrintOptions.PaperSize = PaperSize.PaperA4;
oRpt.PrintOptions.PaperOrientation = PaperOrientation.Landscape;
DiskFileDestinationOptions crDiskFileDestinationOptions = new DiskFileDestinationOptions();
string path = Request.ServerVariables["APPL_PHYSICAL_PATH"];
path = path.Replace("\\", "\\");
string Fname1 = "jh" + System.DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".pdf";
string Fname = path + "temp\\report\\" + Fname1;
crDiskFileDestinationOptions.DiskFileName = Fname;
oRpt.ExportOptions.DestinationOptions = crDiskFileDestinationOptions;
oRpt.ExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
oRpt.ExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
oRpt.Export();
string strUrl = "window.open('../../temp/report/" + Fname1 + "','report_Print','top=0,left=0,height=600,width=800,resizable=1')";
Response.Write("<script language='JavaScript'>" + "\n");
Response.Write(strUrl);
Response.Write("</script>" + "\n");
Arshas 2009-03-11 11:24
我 QQ6552098
drsniper 2009-03-11 10:29
@Arshas
--引用--------------------------------------------------
Arshas: 请教你一个问题,我在本地设置了A4横向打印,也加上了你的两句代码,但是一发布到服务器后,在运行,纸张仍然是纵向打印,找个问题困扰我很久了,也不知道是怎么回事,我也装了同样的打印机驱动了
--------------------------------------------------------
能否让我看看你的代码?
Arshas 2009-03-11 10:13
请教你一个问题,我在本地设置了A4横向打印,也加上了你的两句代码,但是一发布到服务器后,在运行,纸张仍然是纵向打印,找个问题困扰我很久了,也不知道是怎么回事,我也装了同样的打印机驱动了
ttes 2008-10-15 13:07
看过,不错
同感 2008-01-20 15:07
广告太多,速度太慢,但名气却很大
这些驱动本来就是厂家免费供用户下载的,他拿来赚钱也就罢了,但也应该适可而止吧。
搜索到驱动,点击进入,老半天才打开个页面,一看,没有下载连接,还得点一次才行,又等老半天才加载完带连接的页面。哎,难道不能把介绍和下载做在一个页面里吗?简直是在强迫我们看破广告吗!
如果现在谁出面建立一个“清洁”的驱动程序下载网站,绝对能把驱动之家弄垮台。不是不能做广告,可以少一些,或者多采用文字连接广告,页面简洁一些,结构紧凑一些,速度快一些。
像GOOGLE一样,名气大了,就是用文字连接做广告,那商家们还是照样趋之若骛,挣钱大大地,而且还照顾了用户的感受。多好啊!
像驱动之家这样的垃圾网站,就让它见鬼去吧。
qwewqe 2007-11-22 13:13
wqeqwewq
客人 2006-10-16 18:09
aspx:
<asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSource2">
</asp:TreeView>
<asp:SiteMapDataSource ID="SiteMapDataSource2" runat="server" />
XML:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap>
<siteMapNode title="Home">
<siteMapNode title="Products">
<siteMapNode title="Hardware" url="Default.aspx?node=hardware">
<siteMapNode title="Mouse"/>
<siteMapNode title="Keyboard"/>
<siteMapNode title="NetCard"/>
<siteMapNode title="Monitor"/>
<siteMapNode title="PC"/>
</siteMapNode>
<siteMapNode title="Software" url="Default.aspx?node=software">
<siteMapNode title="Spreadsheet"/>
<siteMapNode title="Word Processor"/>
<siteMapNode title="Presentation"/>
<siteMapNode title="Mail"/>
<siteMapNode title="Games"/>
</siteMapNode>
<siteMapNode title="Books" url="Default.aspx?node=books">
<siteMapNode title="Programming"/>
<siteMapNode title="Debugging"/>
<siteMapNode title="Testing"/>
<siteMapNode title="Web Apps"/>
<siteMapNode title="WinForm Apps"/>
</siteMapNode>
</siteMapNode>
<siteMapNode title="Services">
<siteMapNode title="Consulting" url="Default.aspx?node=consulting">
<siteMapNode title="Processes"/>
<siteMapNode title="Management"/>
<siteMapNode title="Recruiting"/>
</siteMapNode>
<siteMapNode title="Development" url="Default.aspx?node=development">
<siteMapNode title="Web Apps"/>
<siteMapNode title="Enterprise Apps"/>
<siteMapNode title="Database"/>
</siteMapNode>
</siteMapNode>
<siteMapNode title="Support">
<siteMapNode title="Drivers" url="Default.aspx?node=drivers">
<siteMapNode title="Audio"/>
<siteMapNode title="Network"/>
<siteMapNode title="Printer"/>
<siteMapNode title="Modem"/>
</siteMapNode>
<siteMapNode title="Manuals" url="Default.aspx?node=manuals">
<siteMapNode title="Applications"/>
<siteMapNode title="Troubleshooting"/>
<siteMapNode title="Installation"/>
<siteMapNode title="Internet"/>
</siteMapNode>
<siteMapNode title="Updates" url="Default.aspx?node=updates">
<siteMapNode title="Release 1"/>
<siteMapNode title="Game Package"/>
</siteMapNode>
</siteMapNode>
</siteMapNode>
</siteMap>
帮助里的
valen 2006-08-05 15:17
就是,慢得出奇!用maxthon的广告过滤全把它过滤
小人物上篮 2006-05-04 15:44
请问有这些控件的例子么,我正在用但是有些不懂,请教!!
有例子的朋友请发xxmzjnu@163.com万分感谢!!
nicklee 2006-01-16 11:03
NickLee.Web.UI.TreeView可以,你可以google下
圣炎¢天乐 2005-12-23 10:08
我觉得也是,找了半天没找到
cs 2005-12-16 22:31
惨不忍睹~~
支持举报!!!!!!!!!!!!!!!!!!!!!!!!!
[丰收景色] 2004-10-22 10:29
唉,原来是错了一个字符。
写程序1/3时间,调程序2/3时间。郁闷!
[丰收景色] 2004-10-20 16:33
大家如果有碰到过的把解决办法写一下啦!