Stephen Lebans modReportToPDF [英] Stephen Lebans modReportToPDF

查看:48
本文介绍了Stephen Lebans modReportToPDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到了Stephen Lebans modReportToPDF并且一直试图让它在我的应用程序中运行。我已经下载了他的数据库,当我运行他的测试时它运行正常。然后我将它添加到我的应用程序中,它可以创建snp文件。然后应用程序不会继续。如果任何人有modReportToPDF它停止的位置是''将所选报告导出为SnapShot格式。

Docmd.output到acoutputreport,RptName," SnapshotFormat(* .sprp) " _

strpathandfilename

''确保流程有时间完成

DoEvents

我的应用永远不会到达DoEvents,当我在目录中查找snp文件时,它不存在。

我检查了他的参考文献,我们是一样的。我确实在默认目录中找到了他的snp文件但不是我的。

这就像我的应用程序没有输出snp文件。

我肯定想用这个如果有人有任何想法让我知道。

感谢您的帮助。

汤姆

解决方案

我自己不会用它,但这里有一些你可以检查的东西。


1.您将模块从示例数据库复制到您的应用程序?

2.您是否将包含的dll文件复制到\system32文件夹?

3.看起来像他已经设置了对Microsoft DAO 3.6 Object Library的引用,你也这样做了吗?


Don


我做了所有这些,但我认为我有另一个问题。我使用的一些报告我使用openargs更改了记录源:我不知道是否有任何方法可以实现这一点,除非你能对这个主题有所了解。我能够让它在不同的报告上工作,我可以看到两者之间唯一的区别是openargs:但我仍然应该得到一份原始记录源的报告。任何其他想法将不胜感激。


汤姆


这里有一个有趣的问题,我有一个报告,根据选择, user使记录源更改,这是通过使用docmd.openreport命令中的openargs:=命令来实现的。但我想将该报告发送到将创建PDF的模块,现在我将它发送到PrimoPDF,但问题是没有地方可以更改docmd.outputto中的记录源。所以我想的是有一种方法可以使用代码编辑报告并更改记录源,然后使用新的记录源保存报告。我不想为每个记录源创建11个不同的报告。我在许多不同的报告中这样做,除了记录来源之外,我最终会得到数百份报告。

任何帮助都将受到赞赏。

汤姆

I found Stephen Lebans modReportToPDF and have been trying to get it to work in my application. I''ve downloaded his database and when I run his test it works fine. I then added it to my application and it works up to the point where it creates the snp file.then the app doesn''t continue. If anybody has the modReportToPDF where it stops is at the point where he has the ''Export the selected Report to SnapShot Format.
Docmd.output to acoutputreport, RptName, "SnapshotFormat(*.snp)" _
strpathandfilename
''make sure the process has time to complete
DoEvents
My app never gets to the DoEvents and when I look in the directory for the snp file it isn''t there.
I''ve checked his references and we are the same. I do find his snp file in the default directory but not mine.
It''s like my application doesn''t output snp files.
I''d sure like to use this so If someone has any ideas let me know.
Thanks for all your help.
Tom

解决方案

I don''t use it myself but here are some things that you could check.

1. Did you copy the modules from the example database over to your application?
2. Did you copy the included dll files over to your \system32 folder?
3. Looks like he has set a reference to Microsoft DAO 3.6 Object Library, did you do that as well?

Don


I did all those but I think I have another problem. Some of the reports I use I change the recordsource using the openargs: I don''t know if there is anyway to accomplish this, unless you can have some ideas on the subject. I was able to get it to work on a different report the only difference I can see between the two is the openargs: but still I should get a report with the original record source. Any other ideas would be greatly appreciated.

Tom


Here''s an interesting problem, I have a report that depending on the selection the user makes the record source changes, this is working by using the openargs:= command in the docmd.openreport command. But I want to send that report to a module that will create a PDF, right now I''m sending it to PrimoPDF but the problem is that there is no place to change the record source in the docmd.outputto. So what I was thinking was is there a way using code to edit the report and change the record source then save the report with the new record source. I don''t want to create 11 different reports one for each record source. I do this in many different reports and I''d end up with hundreds of reports all the same except for the record source.
Any help would be appreciated.
Tom


这篇关于Stephen Lebans modReportToPDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆