在同一报表的多个副本的文本框中打印不同的值 [英] Printing a different value in a text box on multiple copies of same report

查看:92
本文介绍了在同一报表的多个副本的文本框中打印不同的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我相信之前有人管理过这个。

我有一个报告,我从表格上的按钮调用,调用打印4份报告。我想在报告上有一个打印Office Copy的框。在第一页上,P.O.B。在第二页等。


副本的数量在表格按钮的代码中设置。我在On Print中尝试了以下内容。报告中的事件。

Hi,
I am sure someone has managed this one before.
I have a report, which I call from a button on a form, which invokes the printing of 4 copies of a report. I would like to have a box on the report which prints "Office Copy" on the first page, "P.O.B." on the second pages etc.

The number of copies is set in the code on the Forms button. I have tried the following in the "On Print " Event on the report.

展开 | 选择 | Wrap | 行号

推荐答案

当然可以嵌套4个文本框相互依赖,并使用Me.Visible设置,但必须有更有说服力的方法来实现这一点。
Off course it would be possible to have 4 text boxes nested on top of one another, and Use Me.Visible settings, however there must be a more eloquent way to achieve this.


在报告的OnOpen事件中,你可以做各种各样的事情影响报告的工作方式。

这里的另一个问题是访问来电者知道的信息(IE。计数)。

你可以用酒吧做到这一点模块中的lic变量(对于调用者和被调用者都应该是可见的),或者您可以定义一个Function来处理设置和返回值。
In the OnOpen event of the report you can do all sorts of things to affect how the report works.
Another problem here though is accessing the information that the caller knows (IE. the count number).
You can do this with a Public variable in a module (which should be visible to both caller and callee), or you can define a Function to handle setting and returning value(s).



在报告的OnOpen事件中,你可以做各种各样的事情来影响报告的工作方式。

这里的另一个问题是访问调用者知道的信息(IE。计数数量。

您可以使用模块中的Public变量(调用者和被调用者都可以看到)来执行此操作,或者您可以定义一个函数来处理设置和返回值(s )。
In the OnOpen event of the report you can do all sorts of things to affect how the report works.
Another problem here though is accessing the information that the caller knows (IE. the count number).
You can do this with a Public variable in a module (which should be visible to both caller and callee), or you can define a Function to handle setting and returning value(s).



这解释了来自另一个的帖子论坛,建议你需要设置一个包含你想要使用的描述符的表,然后在OpenArgs中引用它们。然后显示代码,按照您的建议设置,模块中的公共变量。这对我来说都是梨形的,因为我不确定Module,这是否意味着设置一个单独的报告模块,以及调用它的表单。或者它是一个模块,用于报告中的特定控制。我将获得建议的代码。

JDS

This explains the post from "another" forum, suggesting you would need to set-up a table with the descriptors you want to use, and then refer to them in the OpenArgs. It then shows code, setting up just as you have suggested, a Public Variable in a module. This is where it all goes pear shaped for me, as I am not to sure by Module, does this mean setting up a module seperate to the Report, and the form that calls it. Or is it a module, for the specific control within the report. I will go get the suggested code.
JDS


这篇关于在同一报表的多个副本的文本框中打印不同的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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