且构网

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

报告不打印任何数据,但在打印预览中显示正确

更新时间:2022-10-19 09:50:48

justinet123,


欢迎来到字节!您的任何其他报告是否仍然打印,或者只是这一个报告无法打印。


我没有任何具体见解,除了我知道有时Access可以有自己的想法。在最坏的情况下,我会尝试这样做:


创建 报告,然后复制并粘贴所有控件旧报告到新报告( 只是复制并粘贴整个报告)。这听起来很荒谬,但我在过去遇到过类似的问题,在Access中只有一些奇怪的错误导致这样的事情发生,我发现的唯一解决方案是重新创建不起作用的报表或表单。


希望这有帮助。


您好,感谢您的快速回复。我会像你建议的那样尝试,因为我完全没有想法。

我的所有报告都出现了同样的问题。


你的问题听起来比特定的报道更大,我的建议可能没什么帮助。


任何 您的数据库发生了其他更改?什么都没有?更新?升级? 任何吗?

I''ve used MS Access 2003 to create a Plumbers database. It worked fine for a year but suddenly the Invoices wont print, they look fine in print preview but no data is printed only the design that is saved as part of the report. I''ve tried old versions of the Db and on another computer with a different printer but same result, no data printing. I can''t think what else to try, I''ve done detect and repair and uninstalled and installed printer again. Its seems very strange its affected all copies of the database on 2 computers.
Any help would be galdly received as Plumber needs to send out invoices.
Thanks

justinet123,

Welcome to Bytes! Do any of your other reports still print, or is it only this one report that fails to print.

I don''t have any specific insight, other than I know that sometimes Access can have a mind of its own. In a worst case, I would try this:

Create a new report and then copy and paste all of the controls from the old report onto the new one (do not just copy and paste the report as a whole). This sounds ridiculous, but I have encountered similar problems in the past, and there is just some weird bug in Access that causes things like this to happen and the only solution I have found is to re-create the report or form that is not working.

Hope this helps.


Hi Thanks for your speedy reply. I will try as you suggested as I''m all out of ideas.
The same problem is happening in all of my reports.


Your problem sounds bigger than just the particular report, and my suggestions may not help.

Have any other changes occurs to your db? Anyhting at all? Updates? Upgrades? Anything?