妳可以動態的把查詢語句傳給數据環境設計器中的COmmand
De.Command(n).commandtext=strSQL
然后再刷新報表

解决方案 »

  1.   

    http://www.playyuer.com 提供
    《vb 6之数据报表使用技巧》
    http://media.ccidnet.com/media/ciw/871/b1301.htm
    《VB6之Data Report全面解决方案(1)》
    http://microinfo.top263.net/Txt/DRptPlus.txt
    《巧用 VB6 之 Data Report 实现图片(Picture)、图表(MsChart)的打印及预览》
    http://microinfo.top263.net/Txt/ImageRpt.txt
    下载例程
    http://microinfo.top263.net/Zip/DatGrdRpt.zip
    http://microinfo.top263.net/Zip/ImageRpt.exe
    http://microinfo.top263.net/Zip/FmtDatRpt.zip 
    http://microinfo.top263.net/Zip/ShapeTree.zip 
    http://microinfo.top263.net/Zip/ShapeNew.zip