Results 1 to 11 of 11

Thread: CommonDialog printer?

  1. #1

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205

    CommonDialog printer?

    I'm using the CommonDialog.ShowPrinter method in an application, and strangely, the printer dialog doesn't always appear. Sometimes, though the code runs, I never see the printer dialog...?


    Any tips?
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  2. #2
    Addicted Member aldinator's Avatar
    Join Date
    May 2002
    Location
    Canada - better than all the rest!
    Posts
    216
    what is ur code?

  3. #3

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    CommonDialog1.ShowPrinter




    It's under a menu item, and that's all there is...
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  4. #4
    Addicted Member aldinator's Avatar
    Join Date
    May 2002
    Location
    Canada - better than all the rest!
    Posts
    216
    well the code works so something strange is going on... maybe it shows but other code call attention to ur form and makes the dialog kinda invisible?

  5. #5

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    I thought that, but the dialog is bigger than the form, and it doesn't appear behind it - I checked...
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  6. #6
    Addicted Member aldinator's Avatar
    Join Date
    May 2002
    Location
    Canada - better than all the rest!
    Posts
    216
    and ur sure the code is executing?? use this to test whats going on

    VB Code:
    1. MsgBox "Start"
    2. CommonDialog1.ShowPrinter
    3. MsgBox "Finish"

  7. #7

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Everytime I step through it, no probs.

    I often have this problem with VB. When the code is running, various things just don't happen. But when I put in debug statements, or step through, it works....

    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  8. #8
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    Chuck in some doevents maybe?
    Don't Rate my posts.

  9. #9
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    Sounds screwy but try this. Cut your code form your project, sub by sub and paste in a texfile. Save your project. Post your code back from the text file, but rearrange the sub order. I had this similiar problem awhile ago, and when debugging the code seemed to jump all over, and bypass certain areas of code. After I did this, it seems to fix it (some possible bug)?
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  10. #10

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Will give this a try.

    Cheers
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  11. #11
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    No problem
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

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