学习型 ASP/PHP/ASP.NET 主机 30元/年全能 ASP/PHP/ASP.NET 主机,支持月付专业 MSSQL 数据库空间,支持月付专业 MySQL 数据库空间,支持月付
 11 12
发新话题
打印

asp导EXCEL问题

asp导EXCEL问题

asp中设置EXCEL打印格式问题,ActiveSheet.PageSetup为什么不能用?
急!!!!!多谢各位大哥!!

TOP

版主救救我啊!1

那位大哥救救我啊!!谢谢!

TOP

没设置过,楼主用的是Excel2000还是2003或2007?
http://www.lxzhcn.net
版块版主招募中
网站论坛发帖无问题,欢迎发帖。

TOP

EXCEL2000

我用的是Excel2000,vb6.0就可以,asp中不知道为什么不行???

TOP

楼主想做什么功能?
http://www.lxzhcn.net
版块版主招募中
网站论坛发帖无问题,欢迎发帖。

TOP

在ASP导入EXCEL时,在ASP中用代码设置EXCEL的格式,比如设置为横向,还有页边距之类的.

TOP

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

TOP

谁救救我啊!
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中怎么不能用!

TOP

能不能的清楚点这样让人觉得很模糊

TOP

直接右键,不就可以导入到EXCEL嘛

TOP

 11 12
发新话题