您现在的位置: 军旅同心-旅游自驾-军旅文学 >> 读书赏析 >> 学习园地 >> 电脑网络 >> 技术文章 >> 正文
客户端用ASP+rds+VBA参生报表
作者:采集员 文章来源:来源于网络 点击数: 更新时间:2005-9-10 13:31:58
& vbCr & _
"End With" & vbCr & _
"With Range(""A""+trim(BgnCnt)+"":D""+trim(BgnCnt+HeadRowCnt-1))" & vbCr & _
" .Font.Size = 11" & vbCr & _
" .Font.Bold = True" & vbCr & _
" .Borders.LineStyle = xlLineStyleNone" & vbCr & _
" .VerticalAlignment = xlCenter" & vbCr & _
" .HorizontalAlignment = xlCenter" & vbCr & _
" .Orientation = xlHorizontal" & vbCr & _
"End With" & vbCr & _
"With Range(""A""+trim(BgnCnt+HeadRowCnt)+"":D""+trim(BgnCnt+HeadRowCnt+TitleRowCnt-1))" & vbCr & _
" .WrapText = True" & vbCr & _
" .Font.Size = 9" & vbCr & _
" .Font.Bold = True" & vbCr & _
" .VerticalAlignment = xlCenter" & vbCr & _
" .HorizontalAlignment = xlCenter" & vbCr & _
" .Orientation = xlHorizontal" & vbCr & _
"end With" & vbCr & _
"With Range(""A""+trim(BgnCnt+HeadRowCnt+TitleRowCnt+ContentRowCnt)+"":D""+trim(BgnCnt+HeadRowCnt+TitleRowCnt+ContentRowCnt+FootRowCnt-1))" & vbCr & _
" .Font.Size = 9" & vbCr & _
" .Font.Bold = True" & vbCr & _
" .Borders.LineStyle = xlLineStyleNone" & vbCr & _
" .VerticalAlignment = xlCenter" & vbCr & _
" .HorizontalAlignment = xlLeft" & vbCr & _
" .Orientation = xlHorizontal" & vbCr & _
"end With" & vbCr & _
"PageNo=PageNo+1" & vbCr & _
"BgnCnt=BgnCnt+PageRowCnt" & vbCr & _
"loop" & vbCr & _
"With Sheet1.PageSetup" & vbCr & _
" .HeaderMargin = application.CentimetersToPoints(0)" & vbCr & _
" .LeftMargin = application.CentimetersToPoints(2)" & vbCr & _
" .RightMargin =application.CentimetersToPoints(2)" & vbCr & _
" .TopMargin = application.CentimetersToPoints(1)" & vbCr & _
" .BottomMargin = application.CentimetersToPoints(1)" & vbCr & _
" .FooterMargin = application.CentimetersToPoints(0)" & vbCr & _
"' .Orientation = xlLandscape" & vbCr & _
" .Orientation = xlPortrait" & vbCr & _
" .CenterHorizontally = True" & vbCr & _
" .CenterVertically = False" & vbCr & _
" .PaperSize = xlPaperA4" & vbCr & _
"End With" & vbCr & _
"Range(""A1"").Select" & vbCr & _
"end sub"
xlmodule.CodeModule.AddFromString (strCode)
xlApp.Run "MyMacro"
end sub
</script>


上一页  [1] [2] 


更多
免责声明:作品版权归所属媒体与作者所有!!本站刊载此文不代表同意其说法或描述,仅为提供更多信息。如果您认为我们侵犯了您的版权,请告知!本站立即删除。有异议请联系我们。
文章录入:烟灰缸    责任编辑:烟灰缸 
网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
| 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 网站地图 | 版权申明 | 网站公告 | 管理登录 |