Description: 用 vsFlexGrid 时,如果用 Add 方法逐个添加数据,跟在 Excel 中用Range()设置单元格的数据一样的慢,所以需要有些技巧,举例来说:在Excel中填写一个数据区域,可以将将要填写进去的数据按单元格的排列事先加入相应的制表符以及回车符号,组合成一个大的字符串,然后帖进去,会很快。
VsFlexGrid 在需要填充的数据多时会比较慢,同样条件的前提下,VB会明显快些!
数据加载速度慢可以通过直接绑定ADO的记录集,那样会很快,只是显得没有个性。比如从后台取回的数据是个数字,在前台需要根据这个数字分情况来显示各种不同的字符,如果用RecordSet我不知道怎么搞了。。
vsFlexGrid 的慢是一个问题,也许还比较好避免,也许这并不是他本身的问题,好像很多的控件只要是逐个ADD的都不会快多少,除非用直接绑定!
更麻烦的还是从vsFlexGrid到vsPrinter的报表显示显得有点牵强~~,不过常规的报表都还可以应付,象我们的工资明细表、汇总表、储备金汇总、储备金明细、计件工资、花名册、考勤报表乃至工资条等都可以用vsFlexGrid解决,而且能做出比较漂亮的效果,尤其那个表格的合并效果,以及所见所得。。。
-with vsFlexGrid, when used individually Add method to add data with Excel using Range () set up the cell for the same data slow, there is a need in some skills, for example : Excel to fill in a data area can be filled out to be of the data into cells with the prior joining the corresponding tabs and carriage return symbols, as a large portfolio of strings, and then into TIE will soon. VsFlexGrid need to fill in the data for some time will be relatively slow and the same conditions, under the premise of VB will be significantly faster! Data loading slow through direct bonding ADO record set, as it will soon, it is not personality. For example, to recover from the background information is in the number of prospects according to the breakdown of the figures to show a variety of characters, i Platform: |
Size: 602351 |
Author:胡先生 |
Hits: