动态打印优惠券 [英] Dynamci Printing of coupon

查看:63
本文介绍了动态打印优惠券的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一种优惠券的格式,其中包含要打印在pdf或所选打印机中的单词上的名称,值和有效期字段.
我可以一次在一个文档中打印.

但是,如果我需要在同一页面中多次打印相同的格式,该怎么办.

我正在从数据库中获取名称,值和有效性的值.

这是到目前为止我得到的:

Hi,

I have a format of a coupon which consists of name, value and Validity fields to be printed on a pdf or a word from the printer selected.
I am able to print it in a single document single time.

But what if I need to print the same format multiple times in a single page.

I am taking the values of name, value and validity from datatbase.

This is what I got so far:

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
        Button1.Attributes.Add("onClick", "window.print()")
End Sub



但是使用它,我可以在一页中打印一次.



But using this I can print one time in one page.

推荐答案

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
        For GetCounter = 0 TO StopCounter 
        Button1.Attributes.Add("onClick", 
"window.print()")
        Loop
End Sub


这篇关于动态打印优惠券的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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