Posted on: 10/20/2012 12:43:14 AM | Views : 420

Dear All,
Please see the below code..
The is working perfect on Button click event, but when
we set this code in loop for say 5 or 6 iteration at that time
only once the code is executing...

I am using this code for printing reciepts, where more than reciepts is required to be generated
on one Button click event...
Please suggest the changes..
CODE:::
public void printcpn()
    {
        Label30.Text = MyGlobalStuff.evalue;
        Label31.Text = MyGlobalStuff.print1;
        Label32.Text = ("Rs " + Convert.ToString(MyGlobalStuff.lbl2));

        Panel5.DataBind();

        StringWriter sw = new StringWriter();

        HtmlTextWrite ...

Go to the complete details ...