可以使用此类向打印机发出打印命令,而无需预览报表查看器的记录。我有来自客户端的要求,我不得不在我的 windows 应用程序中实现。我花了很多类似的解决方案在网络上搜索的时间。我发现你可别想到底什么我想要却从不同的来源获得的信息的信息碎片。所以我把我自己要打印微软此类报告已设计我的应用程序而无需预览打印前的报告。我希望它会对一些人有用。
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001005s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.079540s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.000962s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001115s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001043s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003162s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000875s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003727s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.015709s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001063s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 330359 [ RunTime:0.031325s ]