标题:asp导EXCEL问题
取消只看楼主
gavinshming
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2006-1-17
 问题点数:0 回复次数:5 
asp导EXCEL问题
asp中设置EXCEL打印格式问题,ActiveSheet.PageSetup为什么不能用?
急!!!!!多谢各位大哥!!
搜索更多相关主题的帖子: EXCEL asp 打印 ActiveSheet PageSetup 
2008-04-11 16:35
gavinshming
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2006-1-17
得分:0 
版主救救我啊!1
那位大哥救救我啊!!谢谢!

2008-04-11 16:49
gavinshming
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2006-1-17
得分:0 
EXCEL2000
我用的是Excel2000,vb6.0就可以,asp中不知道为什么不行???

2008-04-11 17:10
gavinshming
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2006-1-17
得分:0 
在ASP导入EXCEL时,在ASP中用代码设置EXCEL的格式,比如设置为横向,还有页边距之类的.

2008-04-11 17:22
gavinshming
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2006-1-17
得分:0 
With ActiveSheet.PageSetup
        .LeftHeader = ""
        .CenterHeader = ""
        .RightHeader = ""
        .LeftFooter = ""
        .CenterFooter = ""
        .RightFooter = ""
        .LeftMargin = Application.InchesToPoints(0.75)
        .RightMargin = Application.InchesToPoints(0.75)
        .TopMargin = Application.InchesToPoints(1)
        .BottomMargin = Application.InchesToPoints(1)
        .HeaderMargin = Application.InchesToPoints(0.5)
        .FooterMargin = Application.InchesToPoints(0.5)
        .PrintHeadings = False
        .PrintGridlines = False
        .PrintComments = xlPrintNoComments
        .PrintQuality = 600
        .CenterHorizontally = False
        .CenterVertically = False
        .Orientation = xlLandscape
        .Draft = False
        .PaperSize = xlPaperA3
        .FirstPageNumber = xlAutomatic
        .Order = xlDownThenOver
        .BlackAndWhite = False
        .Zoom = 100
    End With

2008-04-11 17:25
gavinshming
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2006-1-17
得分:0 
谁救救我啊!
With ActiveSheet.PageSetup        
        .LeftMargin = Application.InchesToPoints(0.75)
        .RightMargin = Application.InchesToPoints(0.75)
        .TopMargin = Application.InchesToPoints(1)
        .BottomMargin = Application.InchesToPoints(1)
        .HeaderMargin = Application.InchesToPoints(0.5)
        .FooterMargin = Application.InchesToPoints(0.5)
        .Zoom = 100
    End With

以上代码在ASP中怎么不能用!

2008-04-11 18:55



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-208443-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.539482 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved