标题:asp导EXCEL问题
只看楼主
gavinshming
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2006-1-17
 问题点数:0 回复次数:10 
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
yms123
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
得分:0 
没设置过,楼主用的是Excel2000还是2003或2007?
2008-04-11 17:05
gavinshming
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2006-1-17
得分:0 
EXCEL2000
我用的是Excel2000,vb6.0就可以,asp中不知道为什么不行???

2008-04-11 17:10
yms123
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
得分:0 
楼主想做什么功能?
2008-04-11 17:12
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
xinlvchwen86
Rank: 1
等 级:新手上路
帖 子:17
专家分:0
注 册:2008-4-1
得分:0 
能不能的清楚点这样让人觉得很模糊
2008-05-04 21:36
jamesxiaoyao
Rank: 1
等 级:新手上路
威 望:2
帖 子:173
专家分:0
注 册:2007-5-21
得分:0 
直接右键,不就可以导入到EXCEL嘛
2008-05-05 15:31



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




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

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