|
-
Sep 3rd, 2002, 06:10 PM
#1
Thread Starter
PowerPoster
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]
-----------------------------------------
-
Sep 3rd, 2002, 07:24 PM
#2
Addicted Member
-
Sep 3rd, 2002, 07:26 PM
#3
Thread Starter
PowerPoster
CommonDialog1.ShowPrinter
It's under a menu item, and that's all there is...
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
Sep 3rd, 2002, 07:56 PM
#4
Addicted Member
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?
-
Sep 3rd, 2002, 08:03 PM
#5
Thread Starter
PowerPoster
I thought that, but the dialog is bigger than the form, and it doesn't appear behind it - I checked...
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
Sep 3rd, 2002, 08:15 PM
#6
Addicted Member
and ur sure the code is executing?? use this to test whats going on
VB Code:
MsgBox "Start"
CommonDialog1.ShowPrinter
MsgBox "Finish"
-
Sep 3rd, 2002, 08:19 PM
#7
Thread Starter
PowerPoster
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]
-----------------------------------------
-
Sep 3rd, 2002, 08:39 PM
#8
PowerPoster
Chuck in some doevents maybe?
-
Sep 3rd, 2002, 08:42 PM
#9
PowerPoster
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....
-
Sep 3rd, 2002, 08:48 PM
#10
Thread Starter
PowerPoster
Will give this a try.
Cheers
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
Sep 3rd, 2002, 08:55 PM
#11
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|