首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VB >

vsPrinter中用代码打印表格有关问题

2012-12-15 
vsPrinter中用代码打印表格问题就是无论怎么设置CurrentX属性,它总是从默认的X位置画表With VP.Zoom 100

vsPrinter中用代码打印表格问题
就是无论怎么设置CurrentX属性,它总是从默认的X位置画表
    With VP
        .Zoom = 100
        .StartDoc

        .CurrentX = 1000
        .CurrentY = 1700
        .Paragraph = "花名册序号:"
        
        '小框
        .CurrentX = 2280
        .CurrentY = 1700
        .TableBorder = tbAll
        .StartTable
            .TableCell(tcRows) = 1
            .TableCell(tcCols) = 1
            .TableCell(tcRowHeight) = 300
            .TableCell(tcColWidth) = 1440
        .EndTable
        .EndDoc
    End With
Debug.Print "x:" & .CurrentX & "  y:" & .CurrentY

出来的结果是小框的左边框在名和册之间,而没在花名册序号之后画表
画表后,X值为0,Y正常
[解决办法]
自己顶一下,顶着有分

热点排行