且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用VBA的MS Access打印报告

更新时间:2023-01-19 19:43:25

很久以前,我遇到了一个非常困难的案例.我必须进行一些字段创建,移动和格式化,而这只能以一种方式完成.我采取了大胆的方法,这变成了唯一的方法:我在设计模式下以隐藏状态打开了报表,让vba完成了工作,完成后,报表被更改为普通且可见,以供显示和打印.

long ago, i had a very difficult case. i had to do some field creations, and moving and formatting and this could only be done one way. i took a bold approach and it turned to be the only way: i opened the report hidden and in design mode, had vba do it's stuff, and when done, the report was changed to normal and visible for display and printing.