Results 1 to 6 of 6

Thread: error when i click the button

  1. #1

    Thread Starter
    Fanatic Member popskie's Avatar
    Join Date
    Jul 2005
    Location
    In my chair
    Posts
    666

    error when i click the button

    hi,

    The problem i encounter when i clicked again the procudure. pls take a look .doc attachement.

    popskie
    Last edited by popskie; Mar 22nd, 2007 at 02:21 AM.

  2. #2
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: error when i click the button

    Can you please post the code for that function...I can't see it behind the msgbox.


    And BTW, you can attach pictures to your post...


    - ØØ -

  3. #3

    Thread Starter
    Fanatic Member popskie's Avatar
    Join Date
    Jul 2005
    Location
    In my chair
    Posts
    666

    Re: error when i click the button

    for (counter = 0;counter<p.Length; counter++)
    {
    if (sender.Equals(p[counter]))
    break;
    }
    filename.Text = flpath;
    pb[counter].Image.Save(flpath);
    pd1.Document= pd;
    pd.PrintPage += new PrintPageEventHandler(pqr);
    pd1.ShowDialog();

  4. #4
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: error when i click the button

    Where did the line with the error go?

  5. #5

    Thread Starter
    Fanatic Member popskie's Avatar
    Join Date
    Jul 2005
    Location
    In my chair
    Posts
    666

    Re: error when i click the button

    for (counter = 0;counter<p.Length; counter++)
    {
    if (sender.Equals(p[counter]))
    break;
    }
    filename.Text = flpath;
    pb[counter].Image.Save(flpath);
    pd1.Document= pd; // this error occurs when i execute twice this procedure.
    pd.PrintPage += new PrintPageEventHandler(pqr);
    pd1.ShowDialog();

  6. #6

    Thread Starter
    Fanatic Member popskie's Avatar
    Join Date
    Jul 2005
    Location
    In my chair
    Posts
    666

    Re: error when i click the button

    I realize the document I use was not close. but how?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width